32 #ifndef __SYSCON_1125_H_
33 #define __SYSCON_1125_H_
52 __I uint32_t RESERVED1[4];
58 __I uint32_t RESERVED3[3];
61 __I uint32_t RESERVED4[10];
67 __I uint32_t RESERVED6[4];
73 __I uint32_t RESERVED7[10];
81 __I uint32_t RESERVED9[5];
82 __I uint32_t PIOPORCAP[2];
83 __I uint32_t RESERVED10[18];
86 __I uint32_t RESERVED11[6];
89 __IO uint32_t RESERVED12[34];
94 __I uint32_t RESERVED13[8];
103 typedef enum CHIP_SYSCON_BOOT_MODE_REMAP {
137 LPC_SYSCON->PRESETCTRL &= ~(1 << (uint32_t) periph);
147 LPC_SYSCON->PRESETCTRL |= (1 << (uint32_t) periph);
164 #define SYSCON_RST_POR (1 << 0)
165 #define SYSCON_RST_EXTRST (1 << 1)
166 #define SYSCON_RST_WDT (1 << 2)
167 #define SYSCON_RST_BOD (1 << 3)
168 #define SYSCON_RST_SYSRST (1 << 4)
173 #define SYSCON_NMISRC_ENABLE ((uint32_t) 1 << 31)
180 STATIC INLINE uint32_t Chip_SYSCON_GetSystemRSTStatus(void)
210 typedef enum CHIP_SYSCON_BODRSTLVL {
220 typedef enum CHIP_SYSCON_BODRINTVAL {
238 LPC_SYSCON->BODCTRL = ((uint32_t) rstlvl) | (((uint32_t) intlvl) << 2);
379 return (
bool) ((
LPC_SYSCON->STARTSRP0 & (1 << pin)) != 0);
385 #define SYSCON_DEEPSLP_BOD_PD (1 << 3)
386 #define SYSCON_DEEPSLP_WDTOSC_PD (1 << 6)
398 void Chip_SYSCON_SetDeepSleepPD(uint32_t sleepmask);
413 #define SYSCON_SLPWAKE_IRCOUT_PD (1 << 0)
414 #define SYSCON_SLPWAKE_IRC_PD (1 << 1)
415 #define SYSCON_SLPWAKE_FLASH_PD (1 << 2)
416 #define SYSCON_SLPWAKE_BOD_PD (1 << 3)
417 #define SYSCON_SLPWAKE_ADC_PD (1 << 4)
418 #define SYSCON_SLPWAKE_SYSOSC_PD (1 << 5)
419 #define SYSCON_SLPWAKE_WDTOSC_PD (1 << 6)
420 #define SYSCON_SLPWAKE_SYSPLL_PD (1 << 7)
432 void Chip_SYSCON_SetWakeup(uint32_t wakeupmask);
447 #define SYSCON_POWERDOWN_IRCOUT_PD (1 << 0)
448 #define SYSCON_POWERDOWN_IRC_PD (1 << 1)
449 #define SYSCON_POWERDOWN_FLASH_PD (1 << 2)
450 #define SYSCON_POWERDOWN_BOD_PD (1 << 3)
451 #define SYSCON_POWERDOWN_ADC_PD (1 << 4)
452 #define SYSCON_POWERDOWN_SYSOSC_PD (1 << 5)
453 #define SYSCON_POWERDOWN_WDTOSC_PD (1 << 6)
454 #define SYSCON_POWERDOWN_SYSPLL_PD (1 << 7)
461 void Chip_SYSCON_PowerDown(uint32_t powerdownmask);