41 #error CORE_M0 is not defined for the LPC11xx architecture 42 #error CORE_M0 should be defined as part of your compiler define list 45 #if !defined(ENABLE_UNTESTED_CODE) 46 #if defined(CHIP_LPC110X) 47 #warning The LCP110X code has not been tested with a platform. This code should \ 48 build without errors but may not work correctly for the device. To disable this \ 49 #warning message, define ENABLE_UNTESTED_CODE. 51 #if defined(CHIP_LPC11XXLV) 52 #warning The LPC11XXLV code has not been tested with a platform. This code should \ 53 build without errors but may not work correctly for the device. To disable this \ 54 #warning message, define ENABLE_UNTESTED_CODE. 56 #if defined(CHIP_LPC11AXX) 57 #warning The LPC11AXX code has not been tested with a platform. This code should \ 58 build without errors but may not work correctly for the device. To disable this \ 59 #warning message, define ENABLE_UNTESTED_CODE. 61 #if defined(CHIP_LPC11EXX) 62 #warning The LPC11EXX code has not been tested with a platform. This code should \ 63 build without errors but may not work correctly for the device. To disable this \ 64 warning message, define ENABLE_UNTESTED_CODE. 68 #if !defined(CHIP_LPC110X) && !defined(CHIP_LPC11XXLV) && !defined(CHIP_LPC11AXX) && \ 69 !defined(CHIP_LPC11CXX) && !defined(CHIP_LPC11EXX) && !defined(CHIP_LPC11UXX) && \ 70 !defined(CHIP_LPC1125) 71 #error CHIP_LPC110x/CHIP_LPC11XXLV/CHIP_LPC11AXX/CHIP_LPC11CXX/CHIP_LPC11EXX/CHIP_LPC11UXX/CHIP_LPC1125 is not defined! 116 #define LPC_I2C_BASE 0x40000000 117 #define LPC_WWDT_BASE 0x40004000 118 #define LPC_USART_BASE 0x40008000 119 #define LPC_TIMER16_0_BASE 0x4000C000 120 #define LPC_TIMER16_1_BASE 0x40010000 121 #define LPC_TIMER32_0_BASE 0x40014000 122 #define LPC_TIMER32_1_BASE 0x40018000 123 #define LPC_ADC_BASE 0x4001C000 124 #define LPC_DAC_BASE 0x40024000 125 #define LPC_ACMP_BASE 0x40028000 126 #define LPC_PMU_BASE 0x40038000 127 #define LPC_FLASH_BASE 0x4003C000 128 #define LPC_SSP0_BASE 0x40040000 129 #define LPC_IOCON_BASE 0x40044000 130 #define LPC_SYSCTL_BASE 0x40048000 131 #define LPC_USB0_BASE 0x40080000 132 #define LPC_CAN0_BASE 0x40050000 133 #define LPC_SSP1_BASE 0x40058000 134 #if defined(CHIP_LPC1125) 135 #define LPC_USART1_BASE 0x40020000 136 #define LPC_USART2_BASE 0x40024000 138 #if defined(CHIP_LPC11UXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11AXX) 139 #define LPC_GPIO_PIN_INT_BASE 0x4004C000 140 #define LPC_GPIO_GROUP_INT0_BASE 0x4005C000 141 #define LPC_GPIO_GROUP_INT1_BASE 0x40060000 142 #define LPC_GPIO_PORT_BASE 0x50000000 144 #define LPC_GPIO_PORT0_BASE 0x50000000 145 #define LPC_GPIO_PORT1_BASE 0x50010000 146 #if defined(CHIP_LPC11XXLV) || defined(CHIP_LPC11CXX) || defined(CHIP_LPC1125) 147 #define LPC_GPIO_PORT2_BASE 0x50020000 148 #define LPC_GPIO_PORT3_BASE 0x50030000 151 #define IAP_ENTRY_LOCATION 0X1FFF1FF1 152 #define LPC_ROM_API_BASE_LOC 0x1FFF1FF8 154 #if !defined(CHIP_LPC110x) 155 #define LPC_I2C ((LPC_I2C_T *) LPC_I2C_BASE) 158 #define LPC_WWDT ((LPC_WWDT_T *) LPC_WWDT_BASE) 159 #define LPC_USART ((LPC_USART_T *) LPC_USART_BASE) 160 #define LPC_TIMER16_0 ((LPC_TIMER_T *) LPC_TIMER16_0_BASE) 161 #define LPC_TIMER16_1 ((LPC_TIMER_T *) LPC_TIMER16_1_BASE) 162 #define LPC_TIMER32_0 ((LPC_TIMER_T *) LPC_TIMER32_0_BASE) 163 #define LPC_TIMER32_1 ((LPC_TIMER_T *) LPC_TIMER32_1_BASE) 164 #define LPC_ADC ((LPC_ADC_T *) LPC_ADC_BASE) 166 #if defined(CHIP_LPC1125) 167 #define LPC_USART0 LPC_USART 168 #define LPC_USART1 ((LPC_USART_T *) LPC_USART1_BASE) 169 #define LPC_USART2 ((LPC_USART_T *) LPC_USART2_BASE) 172 #if defined(CHIP_LPC11AXX) 173 #define LPC_DAC ((LPC_DAC_T *) LPC_DAC_BASE) 174 #define LPC_CMP ((LPC_CMP_T *) LPC_ACMP_BASE) 177 #define LPC_PMU ((LPC_PMU_T *) LPC_PMU_BASE) 178 #define LPC_FMC ((LPC_FMC_T *) LPC_FLASH_BASE) 179 #define LPC_SSP0 ((LPC_SSP_T *) LPC_SSP0_BASE) 180 #define LPC_IOCON ((LPC_IOCON_T *) LPC_IOCON_BASE) 181 #define LPC_SYSCTL ((LPC_SYSCTL_T *) LPC_SYSCTL_BASE) 182 #if defined(CHIP_LPC11CXX) || defined(CHIP_LPC11UXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11AXX) || defined(CHIP_LPC1125) 183 #define LPC_SSP1 ((LPC_SSP_T *) LPC_SSP1_BASE) 185 #define LPC_USB ((LPC_USB_T *) LPC_USB0_BASE) 187 #if defined(CHIP_LPC11UXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11AXX) 188 #define LPC_PININT ((LPC_PIN_INT_T *) LPC_GPIO_PIN_INT_BASE) 189 #define LPC_GPIOGROUP ((LPC_GPIOGROUPINT_T *) LPC_GPIO_GROUP_INT0_BASE) 190 #define LPC_GPIO ((LPC_GPIO_T *) LPC_GPIO_PORT_BASE) 192 #define LPC_GPIO ((LPC_GPIO_T *) LPC_GPIO_PORT0_BASE) 195 #define LPC_ROM_API (*((LPC_ROM_API_T * *) LPC_ROM_API_BASE_LOC)) 243 #if !defined(CHIP_LPC1125) 249 #include "adc_1125.h" 253 #if defined(CHIP_LPC11CXX) || defined(CHIP_LPC110X) || defined(CHIP_LPC11XXLV) || defined(CHIP_LPC1125) 256 #include "gpio_11xx_1.h" 262 #if defined(CHIP_LPC11AXX) 263 #include "acmp_11xx.h" 264 #include "dac_11xx.h" 266 #if !defined(CHIP_LPC110X) 269 #if defined(CHIP_LPC11CXX) 272 #if defined(CHIP_LPC11UXX) 273 #include "usbd_11xx.h"
const uint32_t OscRateIn
System oscillator rate This value is defined externally to the chip layer and contains the value in H...
uint32_t SystemCoreClock
Current system clock rate, mainly used for sysTick.
void Chip_SystemInit(void)
Set up and initialize hardware prior to call to main()
void SystemCoreClockUpdate(void)
Update system core clock rate, should be called if the system has a clock rate change.
const uint32_t ExtRateIn
Clock rate on the CLKIN pin This value is defined externally to the chip layer and contains the value...