summaryrefslogtreecommitdiffstats
path: root/reg/sim.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-05-19 21:56:41 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-05-19 21:56:45 +0100
commit2e905b72626d991c12637978a873cc6702d0c501 (patch)
tree5a7326bf53f936807f8d5e9e659926ace4cf2982 /reg/sim.h
parent7d7f3daeba7f07808e3e01d5f8d9fb649509d66a (diff)
downloadmk20dx256-2e905b72626d991c12637978a873cc6702d0c501.tar.gz
mk20dx256-2e905b72626d991c12637978a873cc6702d0c501.tar.xz
mk20dx256-2e905b72626d991c12637978a873cc6702d0c501.zip
fix issues introduced by enum change
Using enums for everything exposed some bugs. Additionally, some masks can't fit in enums, maybe all masks should be done using #define, that will have to wait.
Diffstat (limited to 'reg/sim.h')
-rw-r--r--reg/sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reg/sim.h b/reg/sim.h
index 9a10eaf..be9b585 100644
--- a/reg/sim.h
+++ b/reg/sim.h
@@ -87,7 +87,7 @@ enum {
#define SIM_CLKDIV1 REG_32(0x40048044)
enum {
CLKDIV1_OUTDIV1 = 28, // Clock 1 output divider value
- CLKDIV1_OUTDIV1_M = REG_32_M(CLKDIV1_OUTDIV1, 4),
+#define CLKDIV1_OUTDIV1_M REG_32_M(CLKDIV1_OUTDIV1, 4)
CLKDIV1_OUTDIV2 = 24, // Clock 2 output divider value
CLKDIV1_OUTDIV2_M = REG_32_M(CLKDIV1_OUTDIV2, 4),
CLKDIV1_OUTDIV4 = 16, // Clock 4 output divider value