LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sysctl_17xx_40xx.h File Reference

Go to the source code of this file.

Data Structures

struct  SYSCTL_PLL_REGS_T
 LPC17XX/40XX Clock and Power PLL register block structure. More...
 
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_PD_SMFLAG   (1 << 8)
 
#define SYSCTL_PD_DSFLAG   (1 << 9)
 
#define SYSCTL_PD_PDFLAG   (1 << 10)
 
#define SYSCTL_PD_DPDFLAG   (1 << 11)
 

Enumerations

enum  CHIP_SYSCTL_PLL_T { SYSCTL_MAIN_PLL, SYSCTL_USB_PLL }
 
enum  CHIP_SYSCTL_BOOT_MODE_REMAP_T {
  REMAP_BOOT_LOADER_MODE, REMAP_USER_RAM_MODE, REMAP_USER_FLASH_MODE, REMAP_BOOT_LOADER_MODE,
  REMAP_USER_RAM_MODE, REMAP_USER_FLASH_MODE, REMAP_BOOT_LOADER_MODE, REMAP_USER_FLASH_MODE,
  REMAP_BOOT_LOADER_MODE, REMAP_USER_RAM_MODE, REMAP_USER_FLASH_MODE
}
 
enum  CHIP_SYSCTL_RESET_T {
  SYSCTL_RESET_LCD, SYSCTL_RESET_TIMER0, SYSCTL_RESET_TIMER1, SYSCTL_RESET_UART0,
  SYSCTL_RESET_UART1, SYSCTL_RESET_PWM0, SYSCTL_RESET_PWM1, SYSCTL_RESET_I2C0,
  SYSCTL_RESET_UART4, SYSCTL_RESET_RTC, SYSCTL_RESET_SSP1, SYSCTL_RESET_EMC,
  SYSCTL_RESET_ADC, SYSCTL_RESET_CAN1, SYSCTL_RESET_CAN2, SYSCTL_RESET_GPIO,
  SYSCTL_RESET_SPIFI, SYSCTL_RESET_MCPWM, SYSCTL_RESET_QEI, SYSCTL_RESET_I2C1,
  SYSCTL_RESET_SSP2, SYSCTL_RESET_SSP0, SYSCTL_RESET_TIMER2, SYSCTL_RESET_TIMER3,
  SYSCTL_RESET_UART2, SYSCTL_RESET_UART3, SYSCTL_RESET_I2C2, SYSCTL_RESET_I2S,
  SYSCTL_RESET_PCSDC, SYSCTL_RESET_GPDMA, SYSCTL_RESET_ENET, SYSCTL_RESET_USB,
  SYSCTL_RESET_IOCON, SYSCTL_RESET_DAC, SYSCTL_RESET_CANACC
}
 

Functions

STATIC INLINE void Chip_SYSCTL_Map (CHIP_SYSCTL_BOOT_MODE_REMAP_T remap)
 Re-map interrupt vectors.
 
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 void Chip_SYSCTL_EnableBOD (void)
 Enable brown-out detection.
 
STATIC INLINE void Chip_SYSCTL_DisableBOD (void)
 Disable brown-out detection.
 
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_EnableBODRPM (void)
 Enable brown-out detection reduced power mode.
 
STATIC INLINE void Chip_SYSCTL_DisableBODRPM (void)
 Disable brown-out detection reduced power mode.
 
uint32_t Chip_SYSCTL_GetClrSleepFlags (uint32_t flags)
 Returns and clears the current sleep mode entry flags.
 
STATIC INLINE void Chip_SYSCTL_EnableBoost (void)
 Enable power boost for clock operation over 100MHz.
 
STATIC INLINE void Chip_SYSCTL_DisableBoost (void)
 Disable power boost for clock operation under 100MHz.
 
void Chip_SYSCTL_PeriphReset (CHIP_SYSCTL_RESET_T periph)
 Resets a peripheral.