diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-19 21:29:39 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-19 21:29:39 +0100 |
commit | 07cce2f4e910bba661c4d60542a2333cae9cbfda (patch) | |
tree | 78de04944006ede35241dc57e6ccd7a1ec997744 /reg/pmc.h | |
parent | 4eab550b3b19345d271b4a93d34374a0dae867da (diff) | |
download | mk20dx256-07cce2f4e910bba661c4d60542a2333cae9cbfda.tar.gz mk20dx256-07cce2f4e910bba661c4d60542a2333cae9cbfda.tar.xz mk20dx256-07cce2f4e910bba661c4d60542a2333cae9cbfda.zip |
cleanup
Diffstat (limited to 'reg/pmc.h')
-rw-r--r-- | reg/pmc.h | 45 |
1 files changed, 27 insertions, 18 deletions
@@ -3,25 +3,34 @@ #include <reg/regdefs.h> -#define PMC_LVDSC1 REG_8(0x4007D000) /* Low Voltage Detect Status And Control 1 register */ -#define LVDSC1_LVDF 7 /* Low-Voltage Detect Flag */ -#define LVDSC1_LVDACK 6 /* Low-Voltage Detect Acknowledge */ -#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 REG_8_M(LVDSC1_LVDV, 2) +// Low Voltage Detect Status And Control 1 register +#define PMC_LVDSC1 REG_8(0x4007D000) +enum { + LVDSC1_LVDF = 7, // Low-Voltage Detect Flag + LVDSC1_LVDACK = 6, // Low-Voltage Detect Acknowledge + LVDSC1_LVDIE = 5, // Low-Voltage Detect Interrupt Enable + LVDSC1_LVDRE = 4, // Low-Voltage Detect Reset Enable + LVDSC1_LVDV = 0, // Low-Voltage Detect Voltage Select + 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 REG_8_M(LVDSC2_LVWV, 2) +// Low Voltage Detect Status And Control 2 register +#define PMC_LVDSC2 REG_8(0x4007D001) +enum { + LVDSC2_LVWF = 7, // Low-Voltage Warning Flag + LVDSC2_LVWACK = 6, // Low-Voltage Warning Acknowledge + LVDSC2_LVWIE = 5, // Low-Voltage Warning Interrupt Enable + LVDSC2_LVWV = 0, // Low-Voltage Warning Voltage Select + 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 */ -#define REGSC_ACKISO 3 /* Acknowledge Isolation */ -#define REGSC_REGONS 2 /* Regulator In Run Regulation Status */ -#define REGSC_BGBE 1 /* Bandgap Buffer Enable */ +// Regulator Status And Control register +#define PMC_REGSC REG_8(0x4007D002) +enum { + REGSC_BGEN = 4, // Bandgap Enable In VLPx Operation + REGSC_ACKISO = 3, // Acknowledge Isolation + REGSC_REGONS = 2, // Regulator In Run Regulation Status + REGSC_BGBE = 1, // Bandgap Buffer Enable +}; #endif /* MK20DX256_REG_PMC_H */ |