![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Data Structures | |
| struct | LPC_SYSCTL_T |
| LPC11XX System Control block structure. More... | |
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 (int index) |
| 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_SetStartPinRising (uint8_t index, uint32_t pins) |
| Set rising edge for PIO start logic (APRP0) | |
| STATIC INLINE void | Chip_SYSCTL_SetStartPinFalling (uint8_t index, uint32_t pins) |
| Set falling edge for PIO start logic (APRP0) | |
| STATIC INLINE void | Chip_SYSCTL_EnableStartPin (uint8_t index, uint32_t pins) |
| Enables start signal for PIO start logic. | |
| STATIC INLINE void | Chip_SYSCTL_DisableStartPin (uint8_t index, uint32_t pins) |
| Disables start signal for PIO start logic. | |
| STATIC INLINE void | Chip_SYSCTL_ResetStartPin (uint8_t index, uint32_t pins) |
| Resets start logic state for PIO start logic. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetStartPinStatus (uint8_t index) |
| Returns start logic state for PIO pins. | |
| void | Chip_SYSCTL_SetDeepSleepPD (uint32_t sleepmask) |
| Setup deep sleep behaviour for power down. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetDeepSleepPD (void) |
| Returns current deep sleep mask. | |
| void | Chip_SYSCTL_SetWakeup (uint32_t wakeupmask) |
| Setup wakeup behaviour from deep sleep. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetWakeup (void) |
| Return current wakeup mask. | |
| 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. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetPowerStates (void) |
| Get power status. | |
| STATIC INLINE uint32_t | Chip_SYSCTL_GetDeviceID (void) |
| Return the device ID. | |
| #define SYSCTL_DEEPSLP_BOD_PD (1 << 3) |
Deep sleep setup valuesBOD power-down control in Deep-sleep mode, powered down
Definition at line 585 of file sysctl_13xx.h.
| #define SYSCTL_DEEPSLP_WDTOSC_PD (1 << 6) |
Watchdog oscillator power control in Deep-sleep, powered down
Definition at line 586 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_ADC_PD (1 << 4) |
ADC power down
Definition at line 653 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_BOD_PD (1 << 3) |
BOD power down
Definition at line 652 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_FLASH_PD (1 << 2) |
Flash power down
Definition at line 651 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_IRC_PD (1 << 1) |
IRC oscillator power-down
Definition at line 650 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_IRCOUT_PD (1 << 0) |
Power down configuration valuesIRC oscillator output power down
Definition at line 649 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_SYSOSC_PD (1 << 5) |
System oscillator power down
Definition at line 654 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_SYSPLL_PD (1 << 7) |
System PLL power down
Definition at line 656 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_USBPAD_PD (1 << 10) |
USB transceiver power-down
Definition at line 658 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_USBPLL_PD (1 << 8) |
USB PLL power-down
Definition at line 657 of file sysctl_13xx.h.
| #define SYSCTL_POWERDOWN_WDTOSC_PD (1 << 6) |
Watchdog oscillator power down
Definition at line 655 of file sysctl_13xx.h.
| #define SYSCTL_RST_BOD (1 << 3) |
Brown-out detect reset status
Definition at line 227 of file sysctl_13xx.h.
| #define SYSCTL_RST_EXTRST (1 << 1) |
External reset status
Definition at line 225 of file sysctl_13xx.h.
| #define SYSCTL_RST_POR (1 << 0) |
System reset statusPOR reset status
Definition at line 224 of file sysctl_13xx.h.
| #define SYSCTL_RST_SYSRST (1 << 4) |
software system reset status
Definition at line 228 of file sysctl_13xx.h.
| #define SYSCTL_RST_WDT (1 << 2) |
Watchdog reset status
Definition at line 226 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_ADC_PD (1 << 4) |
ADC wake-up configuration
Definition at line 617 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_BOD_PD (1 << 3) |
BOD wake-up configuration
Definition at line 616 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_FLASH_PD (1 << 2) |
Flash wake-up configuration
Definition at line 615 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_IRC_PD (1 << 1) |
IRC oscillator power-down wake-up configuration
Definition at line 614 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_IRCOUT_PD (1 << 0) |
Deep sleep to wakeup setup valuesIRC oscillator output wake-up configuration
Definition at line 613 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_SYSOSC_PD (1 << 5) |
System oscillator wake-up configuration
Definition at line 618 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_SYSPLL_PD (1 << 7) |
System PLL wake-up configuration
Definition at line 620 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_USBPAD_PD (1 << 10) |
USB transceiver wake-up configuration
Definition at line 622 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_USBPLL_PD (1 << 8) |
USB PLL wake-up configuration
Definition at line 621 of file sysctl_13xx.h.
| #define SYSCTL_SLPWAKE_WDTOSC_PD (1 << 6) |
Watchdog oscillator wake-up configuration
Definition at line 619 of file sysctl_13xx.h.
| #define SYSCTL_STARTST_PIN | ( | port, | |
| pin | |||
| ) | (1 << (SYSCTL_STARTST_PIN_BIT(port,pin)%32)) |
Definition at line 476 of file sysctl_13xx.h.
| #define SYSCTL_STARTST_PIN_BIT | ( | port, | |
| pin | |||
| ) | (((port) * 12) + pin) |
Definition at line 474 of file sysctl_13xx.h.
| #define SYSCTL_STARTST_PIN_INDEX | ( | port, | |
| pin | |||
| ) | (SYSCTL_STARTST_PIN_BIT(port,pin)/32) |
Definition at line 475 of file sysctl_13xx.h.
Brown-out detector interrupt level
Definition at line 274 of file sysctl_13xx.h.
Brown-out detector reset level
Definition at line 264 of file sysctl_13xx.h.
System memory remap modes used to remap interrupt vectors
Definition at line 163 of file sysctl_13xx.h.
Peripheral reset identifiers, not available on all devices
Definition at line 182 of file sysctl_13xx.h.
| STATIC INLINE void Chip_SYSCTL_AssertPeriphReset | ( | CHIP_SYSCTL_PERIPH_RESET_T | periph | ) |
Assert reset for a peripheral.
| periph | : Peripheral to assert reset for |
Definition at line 195 of file sysctl_13xx.h.
Clear system reset status.
| reset | : An Or'ed value of SYSCTL_RST_* status to clear |
Definition at line 245 of file sysctl_13xx.h.
| STATIC INLINE void Chip_SYSCTL_DeassertPeriphReset | ( | CHIP_SYSCTL_PERIPH_RESET_T | periph | ) |
De-assert reset for a peripheral.
| periph | : Peripheral to de-assert reset for |
Definition at line 205 of file sysctl_13xx.h.
Disables start signal for PIO start logic.
| index | : register index (0/1) |
| pins | : PIO pin(s) mask for disabling start (see note) |
Definition at line 546 of file sysctl_13xx.h.
Enables start signal for PIO start logic.
| index | : register index (0/1) |
| pins | : PIO pin(s) mask for enabling start (see note) |
Definition at line 529 of file sysctl_13xx.h.
Returns current deep sleep mask.
Definition at line 605 of file sysctl_13xx.h.
Read POR captured PIO status.
| index | : POR register index, 0 or 1 |
Definition at line 256 of file sysctl_13xx.h.
Get power status.
Definition at line 679 of file sysctl_13xx.h.
Returns start logic state for PIO pins.
Definition at line 576 of file sysctl_13xx.h.
Get system reset status.
Definition at line 235 of file sysctl_13xx.h.
Return current wakeup mask.
Definition at line 641 of file sysctl_13xx.h.
| STATIC INLINE void Chip_SYSCTL_Map | ( | CHIP_SYSCTL_BOOT_MODE_REMAP_T | remap | ) |
Re-map interrupt vectors.
| remap | : system memory map value |
Definition at line 174 of file sysctl_13xx.h.
| STATIC INLINE void Chip_SYSCTL_PeriphReset | ( | CHIP_SYSCTL_PERIPH_RESET_T | periph | ) |
Resets a peripheral.
| periph | : Peripheral to reset |
Definition at line 215 of file sysctl_13xx.h.
| void Chip_SYSCTL_PowerDown | ( | uint32_t | powerdownmask | ) |
Power down one or more blocks or peripherals.
| powerdownmask | : OR'ed values of SYSCTL_POWERDOWN_* values |
Definition at line 98 of file sysctl_11xx.c.
| void Chip_SYSCTL_PowerUp | ( | uint32_t | powerupmask | ) |
Power up one or more blocks or peripherals.
| powerupmask | : OR'ed values of SYSCTL_POWERDOWN_* values |
Definition at line 109 of file sysctl_11xx.c.
Resets start logic state for PIO start logic.
| index | : register index (0/1) |
| pins | : PIO pin(s) mask for resetting state (see note) |
Definition at line 563 of file sysctl_13xx.h.
| STATIC INLINE void Chip_SYSCTL_SetBODLevels | ( | CHIP_SYSCTL_BODRSTLVL_T | rstlvl, |
| CHIP_SYSCTL_BODRINTVAL_T | intlvl | ||
| ) |
Set brown-out detection interrupt and reset levels.
| rstlvl | : Brown-out detector reset level |
| intlvl | : Brown-out interrupt level |
Definition at line 293 of file sysctl_13xx.h.
| void Chip_SYSCTL_SetDeepSleepPD | ( | uint32_t | sleepmask | ) |
Setup deep sleep behaviour for power down.
| sleepmask | : OR'ed values of SYSCTL_DEEPSLP_* values (high to powerdown on deepsleep) |
Definition at line 82 of file sysctl_11xx.c.
Set falling edge for PIO start logic (APRP0)
| index | : register index (0/1) |
| pins | : PIO pin(s) mask for setting falling edge start (see note) |
Definition at line 512 of file sysctl_13xx.h.
Set rising edge for PIO start logic (APRP0)
| index | : register index (0/1) |
| pins | : PIO pin(s) mask for setting rising edge start (see note) |
Definition at line 493 of file sysctl_13xx.h.
Set System tick timer calibration value.
| sysCalVal | : System tick timer calibration value |
Definition at line 322 of file sysctl_13xx.h.
| void Chip_SYSCTL_SetWakeup | ( | uint32_t | wakeupmask | ) |
Setup wakeup behaviour from deep sleep.
| wakeupmask | : OR'ed values of SYSCTL_SLPWAKE_* values (high is powered down) |
Definition at line 89 of file sysctl_11xx.c.