![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Go to the source code of this file.
Data Structures | |
| struct | LPC_SYSCTL_T |
| LPC11XX System Control block structure. More... | |
Macros | |
| #define | SYSCTL_RST_POR (1 << 0) |
| #define | SYSCTL_RST_EXTRST (1 << 1) |
| #define | SYSCTL_RST_WDT (1 << 2) |
| #define | SYSCTL_RST_BOD (1 << 3) |
| #define | SYSCTL_RST_SYSRST (1 << 4) |
| #define | SYSCTL_WAKEUP_SPI0TINT (1 << 0) |
| #define | SYSCTL_WAKEUP_SPI1INT (1 << 1) |
| #define | SYSCTL_WAKEUP_USART0INT (1 << 3) |
| #define | SYSCTL_WAKEUP_USART1INT (1 << 4) |
| #define | SYSCTL_WAKEUP_USART2INT (1 << 5) |
| #define | SYSCTL_WAKEUP_I2CINT (1 << 8) |
| #define | SYSCTL_WAKEUP_WWDTINT (1 << 12) |
| #define | SYSCTL_WAKEUP_BODINT (1 << 13) |
| #define | SYSCTL_WAKEUP_WKTINT (1 << 15) |
| #define | SYSCTL_DEEPSLP_BOD_PD (1 << 3) |
| #define | SYSCTL_DEEPSLP_WDTOSC_PD (1 << 6) |
| #define | SYSCTL_SLPWAKE_IRCOUT_PD (1 << 0) |
| #define | SYSCTL_SLPWAKE_IRC_PD (1 << 1) |
| #define | SYSCTL_SLPWAKE_FLASH_PD (1 << 2) |
| #define | SYSCTL_SLPWAKE_BOD_PD (1 << 3) |
| #define | SYSCTL_SLPWAKE_SYSOSC_PD (1 << 5) |
| #define | SYSCTL_SLPWAKE_WDTOSC_PD (1 << 6) |
| #define | SYSCTL_SLPWAKE_SYSPLL_PD (1 << 7) |
| #define | SYSCTL_SLPWAKE_ACMP_PD (1 << 15) |
| #define | SYSCTL_NMISRC_ENABLE ((uint32_t) 1 << 31) |
Functions | |
| STATIC INLINE void | Chip_SYSCTL_Map (CHIP_SYSCTL_BOOT_MODE_REMAP_T remap) |
| Re-map interrupt vectors. | |
| STATIC INLINE void | Chip_SYSCTL_AssertPeriphReset (CHIP_SYSCTL_PERIPH_RESET_T periph) |
| Assert reset for a peripheral. | |
| STATIC INLINE void | Chip_SYSCTL_DeassertPeriphReset (CHIP_SYSCTL_PERIPH_RESET_T periph) |
| De-assert reset for a peripheral. | |
| STATIC INLINE void | Chip_SYSCTL_PeriphReset (CHIP_SYSCTL_PERIPH_RESET_T periph) |
| Resets a peripheral. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetSystemRSTStatus (void) |
| Get system reset status. | |
| STATIC INLINE void | Chip_SYSCTL_ClearSystemRSTStatus (uint32_t reset) |
| Clear system reset status. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetPORPIOStatus (void) |
| Read POR captured PIO status. | |
| STATIC INLINE void | Chip_SYSCTL_SetBODLevels (CHIP_SYSCTL_BODRSTLVL_T rstlvl, CHIP_SYSCTL_BODRINTVAL_T intlvl) |
| Set brown-out detection interrupt and reset levels. | |
| STATIC INLINE void | Chip_SYSCTL_EnableBODReset (void) |
| Enable brown-out detection reset. | |
| STATIC INLINE void | Chip_SYSCTL_DisableBODReset (void) |
| Disable brown-out detection reset. | |
| STATIC INLINE void | Chip_SYSCTL_SetSYSTCKCAL (uint32_t sysCalVal) |
| Set System tick timer calibration value. | |
| STATIC INLINE void | Chip_SYSCTL_SetIRQLatency (uint32_t latency) |
| Set System IRQ latency. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetIRQLatency (void) |
| Get System IRQ latency value. | |
| STATIC INLINE void | Chip_SYSCTL_SetNMISource (uint32_t intsrc) |
| Set source for non-maskable interrupt (NMI) | |
| STATIC INLINE void | Chip_SYSCTL_EnableNMISource (void) |
| Enable interrupt used for NMI source. | |
| STATIC INLINE void | Chip_SYSCTL_DisableNMISource (void) |
| Disable interrupt used for NMI source. | |
| STATIC INLINE void | Chip_SYSCTL_SetPinInterrupt (uint32_t intno, uint32_t pin) |
| Setup a pin source for the pin interrupts (0-7) | |
| STATIC INLINE void | Chip_SYSCTL_EnablePINTWakeuup (uint32_t pin) |
| Enables a pin's (PINT) wakeup logic. | |
| STATIC INLINE void | Chip_SYSCTL_DisablePINTWakeup (uint32_t pin) |
| Disables a pin's (PINT) wakeup logic. | |
| STATIC INLINE void | Chip_SYSCTL_EnablePeriphWakeup (uint32_t periphmask) |
| Enables peripheral's wakeup logic. | |
| STATIC INLINE void | Chip_SYSCTL_DisablePeriphWakeup (uint32_t periphmask) |
| Disables peripheral's wakeup logic. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetDeepSleepPD (void) |
| Returns current deep sleep mask. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetWakeup (void) |
| Return current wakup mask. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetPowerStates (void) |
| Power up one or more blocks or peripherals. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetDeviceID (void) |
| Return the device ID. | |
| STATIC INLINE void | Chip_SYSCTL_SetUSARTFRGDivider (uint8_t div) |
| Set The USART Fractional Generator Divider. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetUSARTFRGDivider (void) |
| Set The USART Fractional Generator Divider. | |
| STATIC INLINE void | Chip_SYSCTL_SetUSARTFRGMultiplier (uint8_t mult) |
| Set The USART Fractional Generator Multiplier. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetUSARTFRGMultiplier (void) |
| Get The USART Fractional Generator Multiplier. | |
| void | Chip_SYSCTL_SetDeepSleepPD (uint32_t sleepmask) |
| Setup deep sleep behaviour for power down. | |
| void | Chip_SYSCTL_SetWakeup (uint32_t wakeupmask) |
| Setup wakeup behaviour from deep sleep. | |
| void | Chip_SYSCTL_PowerDown (uint32_t powerdownmask) |
| Power down one or more blocks or peripherals. | |
| void | Chip_SYSCTL_PowerUp (uint32_t powerupmask) |
| Power up one or more blocks or peripherals. | |