![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
Go to the source code of this file.
Data Structures | |
struct | LPC_SYSCON_T |
LPC1125 System Control block structure. More... | |
Macros | |
#define | SYSCON_RST_POR (1 << 0) |
#define | SYSCON_RST_EXTRST (1 << 1) |
#define | SYSCON_RST_WDT (1 << 2) |
#define | SYSCON_RST_BOD (1 << 3) |
#define | SYSCON_RST_SYSRST (1 << 4) |
#define | SYSCON_NMISRC_ENABLE ((uint32_t) 1 << 31) |
#define | SYSCON_DEEPSLP_BOD_PD (1 << 3) |
#define | SYSCON_DEEPSLP_WDTOSC_PD (1 << 6) |
#define | SYSCON_SLPWAKE_IRCOUT_PD (1 << 0) |
#define | SYSCON_SLPWAKE_IRC_PD (1 << 1) |
#define | SYSCON_SLPWAKE_FLASH_PD (1 << 2) |
#define | SYSCON_SLPWAKE_BOD_PD (1 << 3) |
#define | SYSCON_SLPWAKE_ADC_PD (1 << 4) |
#define | SYSCON_SLPWAKE_SYSOSC_PD (1 << 5) |
#define | SYSCON_SLPWAKE_WDTOSC_PD (1 << 6) |
#define | SYSCON_SLPWAKE_SYSPLL_PD (1 << 7) |
#define | SYSCON_POWERDOWN_IRCOUT_PD (1 << 0) |
#define | SYSCON_POWERDOWN_IRC_PD (1 << 1) |
#define | SYSCON_POWERDOWN_FLASH_PD (1 << 2) |
#define | SYSCON_POWERDOWN_BOD_PD (1 << 3) |
#define | SYSCON_POWERDOWN_ADC_PD (1 << 4) |
#define | SYSCON_POWERDOWN_SYSOSC_PD (1 << 5) |
#define | SYSCON_POWERDOWN_WDTOSC_PD (1 << 6) |
#define | SYSCON_POWERDOWN_SYSPLL_PD (1 << 7) |
Functions | |
STATIC INLINE void | Chip_SYSCON_Map (CHIP_SYSCON_BOOT_MODE_REMAP_T remap) |
Re-map interrupt vectors. More... | |
STATIC INLINE void | Chip_SYSCON_AssertPeriphReset (CHIP_SYSCON_PERIPH_RESET_T periph) |
Assert reset for a peripheral. More... | |
STATIC INLINE void | Chip_SYSCON_DeassertPeriphReset (CHIP_SYSCON_PERIPH_RESET_T periph) |
De-assert reset for a peripheral. More... | |
STATIC INLINE void | Chip_SYSCON_PeriphReset (CHIP_SYSCON_PERIPH_RESET_T periph) |
Resets a peripheral. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetSystemRSTStatus (void) |
Get system reset status. More... | |
STATIC INLINE void | Chip_SYSCON_ClearSystemRSTStatus (uint32_t reset) |
Clear system reset status. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetPORPIOStatus (int index) |
Read POR captured PIO status. More... | |
STATIC INLINE void | Chip_SYSCON_SetBODLevels (CHIP_SYSCON_BODRSTLVL_T rstlvl, CHIP_SYSCON_BODRINTVAL_T intlvl) |
Set brown-out detection interrupt and reset levels. More... | |
STATIC INLINE void | Chip_SYSCON_EnableBODReset (void) |
Enable brown-out detection reset. More... | |
STATIC INLINE void | Chip_SYSCON_DisableBODReset (void) |
Disable brown-out detection reset. More... | |
STATIC INLINE void | Chip_SYSCON_SetSYSTCKCAL (uint32_t sysCalVal) |
Set System tick timer calibration value. More... | |
STATIC INLINE void | Chip_SYSCON_SetIRQLatency (uint32_t latency) |
Set System IRQ latency. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetIRQLatency (void) |
Get System IRQ latency. More... | |
STATIC INLINE void | Chip_SYSCON_SetNMISource (uint32_t intsrc) |
Set source for non-maskable interrupt (NMI) More... | |
STATIC INLINE void | Chip_SYSCON_EnableNMISource (void) |
Enable interrupt used for NMI source. More... | |
STATIC INLINE void | Chip_SYSCON_DisableNMISource (void) |
Disable interrupt used for NMI source. More... | |
STATIC INLINE void | Chip_SYSCON_SetStartPin (uint32_t pin, uint32_t edge) |
Set edge for PIO start logic. More... | |
STATIC INLINE void | Chip_SYSCON_EnableStartPin (uint32_t pin) |
Enable PIO start logic for a pin. More... | |
STATIC INLINE void | Chip_SYSCON_DisableStartPin (uint32_t pin) |
Disable PIO start logic for a pin. More... | |
STATIC INLINE void | Chip_SYSCON_ResetStartPin (uint32_t pin) |
Clear PIO start logic state. More... | |
STATIC INLINE bool | Chip_SYSCON_GetStartPinStatus (uint32_t pin) |
Returns status of pin wakeup. More... | |
void | Chip_SYSCON_SetDeepSleepPD (uint32_t sleepmask) |
Setup deep sleep behaviour for power down. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetDeepSleepPD (void) |
Returns current deep sleep mask. More... | |
void | Chip_SYSCON_SetWakeup (uint32_t wakeupmask) |
Setup wakeup behaviour from deep sleep. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetWakeup (void) |
Return current wakeup mask. More... | |
void | Chip_SYSCON_PowerDown (uint32_t powerdownmask) |
Power down one or more blocks or peripherals. More... | |
void | Chip_SYSCON_PowerUp (uint32_t powerupmask) |
Power up one or more blocks or peripherals. More... | |
STATIC INLINE uint32_t | Chip_SYSCON_GetPowerStates (void) |
Get power status. More... | |