summaryrefslogtreecommitdiffstats
path: root/reg/pmc.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@kyriasis.com>2017-03-27 15:20:36 +0100
committerTomasz Kramkowski <tk@kyriasis.com>2017-03-27 15:20:36 +0100
commitfa2eda4bbf5f25b46dde84acdd1ed977bd2ee25b (patch)
tree22b7175b1b9cdbb70bdd0c028a47da2ca5d28ddc /reg/pmc.h
parentbd749066a4a0019631fcef0c02f033da137c2e55 (diff)
downloadmk20dx256-fa2eda4bbf5f25b46dde84acdd1ed977bd2ee25b.tar.gz
mk20dx256-fa2eda4bbf5f25b46dde84acdd1ed977bd2ee25b.tar.xz
mk20dx256-fa2eda4bbf5f25b46dde84acdd1ed977bd2ee25b.zip
reg/{mcg,pmc,wdog}: Use _M macros.
Diffstat (limited to 'reg/pmc.h')
-rw-r--r--reg/pmc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/reg/pmc.h b/reg/pmc.h
index 3bfa128..cb045ea 100644
--- a/reg/pmc.h
+++ b/reg/pmc.h
@@ -9,14 +9,14 @@
#define LVDSC1_LVDIE 5 /* Low-Voltage Detect Interrupt Enable */
#define LVDSC1_LVDRE 4 /* Low-Voltage Detect Reset Enable */
#define LVDSC1_LVDV 0 /* Low-Voltage Detect Voltage Select */
-#define LVDSC1_LVDV_M (uint8_t)(BITS(2) << LVDSC1_LVDV)
+#define LVDSC1_LVDV_M REG_8_M(LVDSC1_LVDV, 2)
#define PMC_LVDSC2 REG_8(0x4007D001) /* Low Voltage Detect Status And Control 2 register */
#define LVDSC2_LVWF 7 /* Low-Voltage Warning Flag */
#define LVDSC2_LVWACK 6 /* Low-Voltage Warning Acknowledge */
#define LVDSC2_LVWIE 5 /* Low-Voltage Warning Interrupt Enable */
#define LVDSC2_LVWV 0 /* Low-Voltage Warning Voltage Select */
-#define LVDSC2_LVWV_M (uint8_t)(BITS(2) << LVDSC2_LVWV)
+#define LVDSC2_LVWV_M REG_8_M(LVDSC2_LVWV, 2)
#define PMC_REGSC REG_8(0x4007D002) /* Regulator Status And Control register */
#define REGSC_BGEN 4 /* Bandgap Enable In VLPx Operation */