1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* Power Management Controller (Chapter 15) */
#ifndef MK20DX256_REG_PMC_H
#define MK20DX256_REG_PMC_H
#include <reg/regdefs.h>
// 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),
};
// 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),
};
// 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 */
|