Go to the documentation of this file.
98 #define __MPU_PRESENT 1
99 #define __NVIC_PRIO_BITS 5
100 #define __Vendor_SysTickConfig 0
103 #include "core_cm3.h"
111 #if defined ( __CC_ARM )
120 uint32_t RESERVED0[31];
125 uint32_t RESERVED1[4];
130 uint32_t RESERVED2[4];
133 uint32_t RESERVED3[15];
139 uint32_t RESERVED4[10];
144 uint32_t RESERVED6[12];
146 uint32_t RESERVED7[7];
151 uint32_t RESERVED8[4];
172 uint32_t RESERVED0[5];
208 uint32_t RESERVED0[3];
272 uint32_t RESERVED0[3];
297 uint32_t RESERVED0[2];
299 uint32_t RESERVED1[12];
328 uint32_t RESERVED1[7];
351 uint8_t RESERVED1[7];
353 uint8_t RESERVED2[7];
355 uint8_t RESERVED3[3];
358 uint8_t RESERVED4[3];
360 uint8_t RESERVED5[7];
362 uint8_t RESERVED6[39];
384 uint8_t RESERVED1[7];
386 uint8_t RESERVED2[7];
388 uint8_t RESERVED3[3];
391 uint8_t RESERVED4[3];
393 uint8_t RESERVED5[7];
395 uint8_t RESERVED6[39];
417 uint8_t RESERVED1[3];
419 uint8_t RESERVED2[3];
421 uint8_t RESERVED3[3];
423 uint8_t RESERVED4[3];
425 uint8_t RESERVED5[3];
431 uint8_t RESERVED8[27];
433 uint8_t RESERVED9[3];
435 uint8_t RESERVED10[3];
437 uint8_t RESERVED11[3];
449 uint32_t RESERVED0[3];
518 uint8_t RESERVED0[3];
527 uint8_t RESERVED0[7];
529 uint8_t RESERVED1[3];
531 uint8_t RESERVED2[3];
533 uint8_t RESERVED3[3];
538 uint8_t RESERVED4[3];
540 uint8_t RESERVED5[3];
542 uint8_t RESERVED6[3];
544 uint8_t RESERVED7[3];
546 uint8_t RESERVED8[3];
550 uint8_t RESERVED10[3];
560 uint8_t RESERVED12[3];
562 uint8_t RESERVED13[3];
564 uint8_t RESERVED14[3];
566 uint8_t RESERVED15[3];
568 uint8_t RESERVED16[3];
570 uint8_t RESERVED17[3];
572 uint8_t RESERVED18[3];
576 uint8_t RESERVED20[3];
586 uint8_t RESERVED0[3];
589 uint8_t RESERVED1[3];
679 uint32_t RESERVED0[998];
805 uint32_t RESERVED0[40];
814 uint32_t RESERVED1[58];
844 uint32_t RESERVED2[9];
851 uint32_t RESERVED3[2];
861 uint32_t RESERVED4[15];
871 uint32_t RESERVED5[824];
901 uint32_t RESERVED0[2];
905 uint32_t RESERVED1[45];
918 uint32_t RESERVED2[10];
922 uint32_t RESERVED3[3];
925 uint32_t RESERVED4[34];
932 uint32_t RESERVED6[882];
944 #if defined ( __CC_ARM )
945 #pragma no_anon_unions
953 #define LPC_FLASH_BASE (0x00000000UL)
954 #define LPC_RAM_BASE (0x10000000UL)
955 #ifdef __LPC17XX_REV00
956 #define LPC_AHBRAM0_BASE (0x20000000UL)
957 #define LPC_AHBRAM1_BASE (0x20004000UL)
959 #define LPC_AHBRAM0_BASE (0x2007C000UL)
960 #define LPC_AHBRAM1_BASE (0x20080000UL)
962 #define LPC_GPIO_BASE (0x2009C000UL)
963 #define LPC_APB0_BASE (0x40000000UL)
964 #define LPC_APB1_BASE (0x40080000UL)
965 #define LPC_AHB_BASE (0x50000000UL)
966 #define LPC_CM3_BASE (0xE0000000UL)
969 #define LPC_WDT_BASE (LPC_APB0_BASE + 0x00000)
970 #define LPC_TIM0_BASE (LPC_APB0_BASE + 0x04000)
971 #define LPC_TIM1_BASE (LPC_APB0_BASE + 0x08000)
972 #define LPC_UART0_BASE (LPC_APB0_BASE + 0x0C000)
973 #define LPC_UART1_BASE (LPC_APB0_BASE + 0x10000)
974 #define LPC_PWM1_BASE (LPC_APB0_BASE + 0x18000)
975 #define LPC_I2C0_BASE (LPC_APB0_BASE + 0x1C000)
976 #define LPC_SPI_BASE (LPC_APB0_BASE + 0x20000)
977 #define LPC_RTC_BASE (LPC_APB0_BASE + 0x24000)
978 #define LPC_GPIOINT_BASE (LPC_APB0_BASE + 0x28080)
979 #define LPC_PINCON_BASE (LPC_APB0_BASE + 0x2C000)
980 #define LPC_SSP1_BASE (LPC_APB0_BASE + 0x30000)
981 #define LPC_ADC_BASE (LPC_APB0_BASE + 0x34000)
982 #define LPC_CANAF_RAM_BASE (LPC_APB0_BASE + 0x38000)
983 #define LPC_CANAF_BASE (LPC_APB0_BASE + 0x3C000)
984 #define LPC_CANCR_BASE (LPC_APB0_BASE + 0x40000)
985 #define LPC_CAN1_BASE (LPC_APB0_BASE + 0x44000)
986 #define LPC_CAN2_BASE (LPC_APB0_BASE + 0x48000)
987 #define LPC_I2C1_BASE (LPC_APB0_BASE + 0x5C000)
990 #define LPC_SSP0_BASE (LPC_APB1_BASE + 0x08000)
991 #define LPC_DAC_BASE (LPC_APB1_BASE + 0x0C000)
992 #define LPC_TIM2_BASE (LPC_APB1_BASE + 0x10000)
993 #define LPC_TIM3_BASE (LPC_APB1_BASE + 0x14000)
994 #define LPC_UART2_BASE (LPC_APB1_BASE + 0x18000)
995 #define LPC_UART3_BASE (LPC_APB1_BASE + 0x1C000)
996 #define LPC_I2C2_BASE (LPC_APB1_BASE + 0x20000)
997 #define LPC_I2S_BASE (LPC_APB1_BASE + 0x28000)
998 #define LPC_RIT_BASE (LPC_APB1_BASE + 0x30000)
999 #define LPC_MCPWM_BASE (LPC_APB1_BASE + 0x38000)
1000 #define LPC_QEI_BASE (LPC_APB1_BASE + 0x3C000)
1001 #define LPC_SC_BASE (LPC_APB1_BASE + 0x7C000)
1004 #define LPC_EMAC_BASE (LPC_AHB_BASE + 0x00000)
1005 #define LPC_GPDMA_BASE (LPC_AHB_BASE + 0x04000)
1006 #define LPC_GPDMACH0_BASE (LPC_AHB_BASE + 0x04100)
1007 #define LPC_GPDMACH1_BASE (LPC_AHB_BASE + 0x04120)
1008 #define LPC_GPDMACH2_BASE (LPC_AHB_BASE + 0x04140)
1009 #define LPC_GPDMACH3_BASE (LPC_AHB_BASE + 0x04160)
1010 #define LPC_GPDMACH4_BASE (LPC_AHB_BASE + 0x04180)
1011 #define LPC_GPDMACH5_BASE (LPC_AHB_BASE + 0x041A0)
1012 #define LPC_GPDMACH6_BASE (LPC_AHB_BASE + 0x041C0)
1013 #define LPC_GPDMACH7_BASE (LPC_AHB_BASE + 0x041E0)
1014 #define LPC_USB_BASE (LPC_AHB_BASE + 0x0C000)
1017 #define LPC_GPIO0_BASE (LPC_GPIO_BASE + 0x00000)
1018 #define LPC_GPIO1_BASE (LPC_GPIO_BASE + 0x00020)
1019 #define LPC_GPIO2_BASE (LPC_GPIO_BASE + 0x00040)
1020 #define LPC_GPIO3_BASE (LPC_GPIO_BASE + 0x00060)
1021 #define LPC_GPIO4_BASE (LPC_GPIO_BASE + 0x00080)
1026 #define LPC_SC ((LPC_SC_TypeDef *) LPC_SC_BASE )
1027 #define LPC_GPIO0 ((LPC_GPIO_TypeDef *) LPC_GPIO0_BASE )
1028 #define LPC_GPIO1 ((LPC_GPIO_TypeDef *) LPC_GPIO1_BASE )
1029 #define LPC_GPIO2 ((LPC_GPIO_TypeDef *) LPC_GPIO2_BASE )
1030 #define LPC_GPIO3 ((LPC_GPIO_TypeDef *) LPC_GPIO3_BASE )
1031 #define LPC_GPIO4 ((LPC_GPIO_TypeDef *) LPC_GPIO4_BASE )
1032 #define LPC_WDT ((LPC_WDT_TypeDef *) LPC_WDT_BASE )
1033 #define LPC_TIM0 ((LPC_TIM_TypeDef *) LPC_TIM0_BASE )
1034 #define LPC_TIM1 ((LPC_TIM_TypeDef *) LPC_TIM1_BASE )
1035 #define LPC_TIM2 ((LPC_TIM_TypeDef *) LPC_TIM2_BASE )
1036 #define LPC_TIM3 ((LPC_TIM_TypeDef *) LPC_TIM3_BASE )
1037 #define LPC_RIT ((LPC_RIT_TypeDef *) LPC_RIT_BASE )
1038 #define LPC_UART0 ((LPC_UART_TypeDef *) LPC_UART0_BASE )
1039 #define LPC_UART1 ((LPC_UART1_TypeDef *) LPC_UART1_BASE )
1040 #define LPC_UART2 ((LPC_UART_TypeDef *) LPC_UART2_BASE )
1041 #define LPC_UART3 ((LPC_UART_TypeDef *) LPC_UART3_BASE )
1042 #define LPC_PWM1 ((LPC_PWM_TypeDef *) LPC_PWM1_BASE )
1043 #define LPC_I2C0 ((LPC_I2C_TypeDef *) LPC_I2C0_BASE )
1044 #define LPC_I2C1 ((LPC_I2C_TypeDef *) LPC_I2C1_BASE )
1045 #define LPC_I2C2 ((LPC_I2C_TypeDef *) LPC_I2C2_BASE )
1046 #define LPC_I2S ((LPC_I2S_TypeDef *) LPC_I2S_BASE )
1047 #define LPC_SPI ((LPC_SPI_TypeDef *) LPC_SPI_BASE )
1048 #define LPC_RTC ((LPC_RTC_TypeDef *) LPC_RTC_BASE )
1049 #define LPC_GPIOINT ((LPC_GPIOINT_TypeDef *) LPC_GPIOINT_BASE )
1050 #define LPC_PINCON ((LPC_PINCON_TypeDef *) LPC_PINCON_BASE )
1051 #define LPC_SSP0 ((LPC_SSP_TypeDef *) LPC_SSP0_BASE )
1052 #define LPC_SSP1 ((LPC_SSP_TypeDef *) LPC_SSP1_BASE )
1053 #define LPC_ADC ((LPC_ADC_TypeDef *) LPC_ADC_BASE )
1054 #define LPC_DAC ((LPC_DAC_TypeDef *) LPC_DAC_BASE )
1055 #define LPC_CANAF_RAM ((LPC_CANAF_RAM_TypeDef *) LPC_CANAF_RAM_BASE)
1056 #define LPC_CANAF ((LPC_CANAF_TypeDef *) LPC_CANAF_BASE )
1057 #define LPC_CANCR ((LPC_CANCR_TypeDef *) LPC_CANCR_BASE )
1058 #define LPC_CAN1 ((LPC_CAN_TypeDef *) LPC_CAN1_BASE )
1059 #define LPC_CAN2 ((LPC_CAN_TypeDef *) LPC_CAN2_BASE )
1060 #define LPC_MCPWM ((LPC_MCPWM_TypeDef *) LPC_MCPWM_BASE )
1061 #define LPC_QEI ((LPC_QEI_TypeDef *) LPC_QEI_BASE )
1062 #define LPC_EMAC ((LPC_EMAC_TypeDef *) LPC_EMAC_BASE )
1063 #define LPC_GPDMA ((LPC_GPDMA_TypeDef *) LPC_GPDMA_BASE )
1064 #define DMAREQSEL (*(__IO uint32_t *) ( 0x4000C1C4))
1065 #define LPC_GPDMACH0 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH0_BASE )
1066 #define LPC_GPDMACH1 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH1_BASE )
1067 #define LPC_GPDMACH2 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH2_BASE )
1068 #define LPC_GPDMACH3 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH3_BASE )
1069 #define LPC_GPDMACH4 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH4_BASE )
1070 #define LPC_GPDMACH5 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH5_BASE )
1071 #define LPC_GPDMACH6 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH6_BASE )
1072 #define LPC_GPDMACH7 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH7_BASE )
1073 #define LPC_USB ((LPC_USB_TypeDef *) LPC_USB_BASE )
1079 #endif // __LPC17xx_H__