/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }
Fork of mbed by
TARGET_LPC4088/LPC407x_8x_177x_8x.h@66:9c8f0e3462fb, 2013-08-19 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 19 13:34:54 2013 +0300
- Revision:
- 66:9c8f0e3462fb
- Parent:
- 65:5798e58a58b1
- Child:
- 68:f37f3b9c9f0b
New mbed library build with support for LPC1114.
Built from github tag 'mbed_lib_rev66'
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 66:9c8f0e3462fb | 1 | /****************************************************************************************************//** |
bogdanm | 66:9c8f0e3462fb | 2 | * $Id$ LPC407x_8x_177x_8x.h 2012-04-25 |
bogdanm | 66:9c8f0e3462fb | 3 | *//** |
bogdanm | 66:9c8f0e3462fb | 4 | * @file LPC407x_8x_177x_8x.h |
bogdanm | 66:9c8f0e3462fb | 5 | * |
bogdanm | 66:9c8f0e3462fb | 6 | * @brief CMSIS Cortex-M4 Cortex-M3 Peripheral Access Layer Header File for |
bogdanm | 66:9c8f0e3462fb | 7 | * NXP LPC407x_8x_177x_8x. |
bogdanm | 66:9c8f0e3462fb | 8 | * @version V0.7 |
bogdanm | 66:9c8f0e3462fb | 9 | * @date 20. June 2012 |
bogdanm | 66:9c8f0e3462fb | 10 | * @author NXP MCU SW Application Team |
bogdanm | 66:9c8f0e3462fb | 11 | * |
bogdanm | 66:9c8f0e3462fb | 12 | * Copyright(C) 2012, NXP Semiconductor |
bogdanm | 66:9c8f0e3462fb | 13 | * All rights reserved. |
bogdanm | 66:9c8f0e3462fb | 14 | * |
bogdanm | 66:9c8f0e3462fb | 15 | *********************************************************************** |
bogdanm | 66:9c8f0e3462fb | 16 | * Software that is described herein is for illustrative purposes only |
bogdanm | 66:9c8f0e3462fb | 17 | * which provides customers with programming information regarding the |
bogdanm | 66:9c8f0e3462fb | 18 | * products. This software is supplied "AS IS" without any warranties. |
bogdanm | 66:9c8f0e3462fb | 19 | * NXP Semiconductors assumes no responsibility or liability for the |
bogdanm | 66:9c8f0e3462fb | 20 | * use of the software, conveys no license or title under any patent, |
bogdanm | 66:9c8f0e3462fb | 21 | * copyright, or mask work right to the product. NXP Semiconductors |
bogdanm | 66:9c8f0e3462fb | 22 | * reserves the right to make changes in the software without |
bogdanm | 66:9c8f0e3462fb | 23 | * notification. NXP Semiconductors also make no representation or |
bogdanm | 66:9c8f0e3462fb | 24 | * warranty that such application will be suitable for the specified |
bogdanm | 66:9c8f0e3462fb | 25 | * use without further testing or modification. |
bogdanm | 66:9c8f0e3462fb | 26 | * Permission to use, copy, modify, and distribute this software and its |
bogdanm | 66:9c8f0e3462fb | 27 | * documentation is hereby granted, under NXP Semiconductors' |
bogdanm | 66:9c8f0e3462fb | 28 | * relevant copyright in the software, without fee, provided that it |
bogdanm | 66:9c8f0e3462fb | 29 | * is used in conjunction with NXP Semiconductors microcontrollers. This |
bogdanm | 66:9c8f0e3462fb | 30 | * copyright, permission, and disclaimer notice must appear in all copies of |
bogdanm | 66:9c8f0e3462fb | 31 | * this code. |
bogdanm | 66:9c8f0e3462fb | 32 | **********************************************************************/ |
bogdanm | 66:9c8f0e3462fb | 33 | |
bogdanm | 66:9c8f0e3462fb | 34 | #ifndef __LPC407x_8x_177x_8x_H__ |
bogdanm | 66:9c8f0e3462fb | 35 | #define __LPC407x_8x_177x_8x_H__ |
bogdanm | 66:9c8f0e3462fb | 36 | |
bogdanm | 66:9c8f0e3462fb | 37 | #define CORE_M4 |
bogdanm | 66:9c8f0e3462fb | 38 | |
bogdanm | 66:9c8f0e3462fb | 39 | // ################## |
bogdanm | 66:9c8f0e3462fb | 40 | // Code Red - excluded extern "C" as unrequired |
bogdanm | 66:9c8f0e3462fb | 41 | // ################## |
bogdanm | 66:9c8f0e3462fb | 42 | #if 0 |
bogdanm | 66:9c8f0e3462fb | 43 | #ifdef __cplusplus |
bogdanm | 66:9c8f0e3462fb | 44 | extern "C" { |
bogdanm | 66:9c8f0e3462fb | 45 | #endif |
bogdanm | 66:9c8f0e3462fb | 46 | #endif |
bogdanm | 66:9c8f0e3462fb | 47 | |
bogdanm | 66:9c8f0e3462fb | 48 | |
bogdanm | 66:9c8f0e3462fb | 49 | /* ------------------------- Interrupt Number Definition ------------------------ */ |
bogdanm | 66:9c8f0e3462fb | 50 | |
bogdanm | 66:9c8f0e3462fb | 51 | typedef enum IRQn |
bogdanm | 66:9c8f0e3462fb | 52 | { |
bogdanm | 66:9c8f0e3462fb | 53 | /****** Cortex-M4 Processor Exceptions Numbers ***************************************************/ |
bogdanm | 66:9c8f0e3462fb | 54 | Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */ |
bogdanm | 66:9c8f0e3462fb | 55 | NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 56 | HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */ |
bogdanm | 66:9c8f0e3462fb | 57 | MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 58 | BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 59 | UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 60 | SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 61 | DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 62 | PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 63 | SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 64 | |
bogdanm | 66:9c8f0e3462fb | 65 | /****** LPC407x_8x_177x_8x Specific Interrupt Numbers *******************************************************/ |
bogdanm | 66:9c8f0e3462fb | 66 | WDT_IRQn = 0, /*!< Watchdog Timer Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 67 | TIMER0_IRQn = 1, /*!< Timer0 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 68 | TIMER1_IRQn = 2, /*!< Timer1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 69 | TIMER2_IRQn = 3, /*!< Timer2 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 70 | TIMER3_IRQn = 4, /*!< Timer3 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 71 | UART0_IRQn = 5, /*!< UART0 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 72 | UART1_IRQn = 6, /*!< UART1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 73 | UART2_IRQn = 7, /*!< UART2 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 74 | UART3_IRQn = 8, /*!< UART3 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 75 | PWM1_IRQn = 9, /*!< PWM1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 76 | I2C0_IRQn = 10, /*!< I2C0 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 77 | I2C1_IRQn = 11, /*!< I2C1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 78 | I2C2_IRQn = 12, /*!< I2C2 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 79 | Reserved0_IRQn = 13, /*!< Reserved */ |
bogdanm | 66:9c8f0e3462fb | 80 | SSP0_IRQn = 14, /*!< SSP0 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 81 | SSP1_IRQn = 15, /*!< SSP1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 82 | PLL0_IRQn = 16, /*!< PLL0 Lock (Main PLL) Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 83 | RTC_IRQn = 17, /*!< Real Time Clock Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 84 | EINT0_IRQn = 18, /*!< External Interrupt 0 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 85 | EINT1_IRQn = 19, /*!< External Interrupt 1 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 86 | EINT2_IRQn = 20, /*!< External Interrupt 2 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 87 | EINT3_IRQn = 21, /*!< External Interrupt 3 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 88 | ADC_IRQn = 22, /*!< A/D Converter Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 89 | BOD_IRQn = 23, /*!< Brown-Out Detect Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 90 | USB_IRQn = 24, /*!< USB Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 91 | CAN_IRQn = 25, /*!< CAN Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 92 | DMA_IRQn = 26, /*!< General Purpose DMA Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 93 | I2S_IRQn = 27, /*!< I2S Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 94 | ENET_IRQn = 28, /*!< Ethernet Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 95 | MCI_IRQn = 29, /*!< SD/MMC card I/F Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 96 | MCPWM_IRQn = 30, /*!< Motor Control PWM Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 97 | QEI_IRQn = 31, /*!< Quadrature Encoder Interface Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 98 | PLL1_IRQn = 32, /*!< PLL1 Lock (USB PLL) Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 99 | USBActivity_IRQn = 33, /*!< USB Activity interrupt */ |
bogdanm | 66:9c8f0e3462fb | 100 | CANActivity_IRQn = 34, /*!< CAN Activity interrupt */ |
bogdanm | 66:9c8f0e3462fb | 101 | UART4_IRQn = 35, /*!< UART4 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 102 | SSP2_IRQn = 36, /*!< SSP2 Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 103 | LCD_IRQn = 37, /*!< LCD Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 104 | GPIO_IRQn = 38, /*!< GPIO Interrupt */ |
bogdanm | 66:9c8f0e3462fb | 105 | PWM0_IRQn = 39, /*!< 39 PWM0 */ |
bogdanm | 66:9c8f0e3462fb | 106 | EEPROM_IRQn = 40, /*!< 40 EEPROM */ |
bogdanm | 66:9c8f0e3462fb | 107 | CMP0_IRQn = 41, /*!< 41 CMP0 */ |
bogdanm | 66:9c8f0e3462fb | 108 | CMP1_IRQn = 42 /*!< 42 CMP1 */ |
bogdanm | 66:9c8f0e3462fb | 109 | } IRQn_Type; |
bogdanm | 66:9c8f0e3462fb | 110 | |
bogdanm | 66:9c8f0e3462fb | 111 | /* ================================================================================ */ |
bogdanm | 66:9c8f0e3462fb | 112 | /* ================ Processor and Core Peripheral Section ================ */ |
bogdanm | 66:9c8f0e3462fb | 113 | /* ================================================================================ */ |
bogdanm | 66:9c8f0e3462fb | 114 | #ifdef CORE_M4 |
bogdanm | 66:9c8f0e3462fb | 115 | /* ----------------Configuration of the cm4 Processor and Core Peripherals---------------- */ |
bogdanm | 66:9c8f0e3462fb | 116 | #define __CM4_REV 0x0000 /*!< Cortex-M4 Core Revision */ |
bogdanm | 66:9c8f0e3462fb | 117 | #define __MPU_PRESENT 1 /*!< MPU present or not */ |
bogdanm | 66:9c8f0e3462fb | 118 | #define __NVIC_PRIO_BITS 5 /*!< Number of Bits used for Priority Levels */ |
bogdanm | 66:9c8f0e3462fb | 119 | #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ |
bogdanm | 66:9c8f0e3462fb | 120 | #define __FPU_PRESENT 1 /*!< FPU present or not */ |
bogdanm | 66:9c8f0e3462fb | 121 | |
bogdanm | 66:9c8f0e3462fb | 122 | |
bogdanm | 66:9c8f0e3462fb | 123 | #include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */ |
bogdanm | 66:9c8f0e3462fb | 124 | #else |
bogdanm | 66:9c8f0e3462fb | 125 | /* Configuration of the Cortex-M3 Processor and Core Peripherals */ |
bogdanm | 66:9c8f0e3462fb | 126 | #define __MPU_PRESENT 1 /*!< MPU present or not */ |
bogdanm | 66:9c8f0e3462fb | 127 | #define __NVIC_PRIO_BITS 5 /*!< Number of Bits used for Priority Levels */ |
bogdanm | 66:9c8f0e3462fb | 128 | #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ |
bogdanm | 66:9c8f0e3462fb | 129 | |
bogdanm | 66:9c8f0e3462fb | 130 | |
bogdanm | 66:9c8f0e3462fb | 131 | #include "core_cm3.h" /* Cortex-M3 processor and core peripherals */ |
bogdanm | 66:9c8f0e3462fb | 132 | |
bogdanm | 66:9c8f0e3462fb | 133 | #endif |
bogdanm | 66:9c8f0e3462fb | 134 | |
bogdanm | 66:9c8f0e3462fb | 135 | #include "system_LPC407x_8x_177x_8x.h" /*!< LPC408x_7x System */ |
bogdanm | 66:9c8f0e3462fb | 136 | |
bogdanm | 66:9c8f0e3462fb | 137 | |
bogdanm | 66:9c8f0e3462fb | 138 | |
bogdanm | 66:9c8f0e3462fb | 139 | |
bogdanm | 66:9c8f0e3462fb | 140 | |
bogdanm | 66:9c8f0e3462fb | 141 | |
bogdanm | 66:9c8f0e3462fb | 142 | /* ================================================================================ */ |
bogdanm | 66:9c8f0e3462fb | 143 | /* ================ Device Specific Peripheral Section ================ */ |
bogdanm | 66:9c8f0e3462fb | 144 | /* ================================================================================ */ |
bogdanm | 66:9c8f0e3462fb | 145 | |
bogdanm | 66:9c8f0e3462fb | 146 | #if defined ( __CC_ARM ) |
bogdanm | 66:9c8f0e3462fb | 147 | #pragma anon_unions |
bogdanm | 66:9c8f0e3462fb | 148 | #endif |
bogdanm | 66:9c8f0e3462fb | 149 | |
bogdanm | 66:9c8f0e3462fb | 150 | /*------------- General Purpose Direct Memory Access (GPDMA) -----------------*/ |
bogdanm | 66:9c8f0e3462fb | 151 | typedef struct /* Common Registers */ |
bogdanm | 66:9c8f0e3462fb | 152 | { |
bogdanm | 66:9c8f0e3462fb | 153 | __I uint32_t IntStat; |
bogdanm | 66:9c8f0e3462fb | 154 | __I uint32_t IntTCStat; |
bogdanm | 66:9c8f0e3462fb | 155 | __O uint32_t IntTCClear; |
bogdanm | 66:9c8f0e3462fb | 156 | __I uint32_t IntErrStat; |
bogdanm | 66:9c8f0e3462fb | 157 | __O uint32_t IntErrClr; |
bogdanm | 66:9c8f0e3462fb | 158 | __I uint32_t RawIntTCStat; |
bogdanm | 66:9c8f0e3462fb | 159 | __I uint32_t RawIntErrStat; |
bogdanm | 66:9c8f0e3462fb | 160 | __I uint32_t EnbldChns; |
bogdanm | 66:9c8f0e3462fb | 161 | __IO uint32_t SoftBReq; |
bogdanm | 66:9c8f0e3462fb | 162 | __IO uint32_t SoftSReq; |
bogdanm | 66:9c8f0e3462fb | 163 | __IO uint32_t SoftLBReq; |
bogdanm | 66:9c8f0e3462fb | 164 | __IO uint32_t SoftLSReq; |
bogdanm | 66:9c8f0e3462fb | 165 | __IO uint32_t Config; |
bogdanm | 66:9c8f0e3462fb | 166 | __IO uint32_t Sync; |
bogdanm | 66:9c8f0e3462fb | 167 | } LPC_GPDMA_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 168 | |
bogdanm | 66:9c8f0e3462fb | 169 | typedef struct /* Channel Registers */ |
bogdanm | 66:9c8f0e3462fb | 170 | { |
bogdanm | 66:9c8f0e3462fb | 171 | __IO uint32_t CSrcAddr; |
bogdanm | 66:9c8f0e3462fb | 172 | __IO uint32_t CDestAddr; |
bogdanm | 66:9c8f0e3462fb | 173 | __IO uint32_t CLLI; |
bogdanm | 66:9c8f0e3462fb | 174 | __IO uint32_t CControl; |
bogdanm | 66:9c8f0e3462fb | 175 | __IO uint32_t CConfig; |
bogdanm | 66:9c8f0e3462fb | 176 | } LPC_GPDMACH_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 177 | |
bogdanm | 66:9c8f0e3462fb | 178 | /*------------- System Control (SC) ------------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 179 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 180 | { |
bogdanm | 66:9c8f0e3462fb | 181 | __IO uint32_t FLASHCFG; /*!< Offset: 0x000 (R/W) Flash Accelerator Configuration Register */ |
bogdanm | 66:9c8f0e3462fb | 182 | uint32_t RESERVED0[31]; |
bogdanm | 66:9c8f0e3462fb | 183 | __IO uint32_t PLL0CON; /*!< Offset: 0x080 (R/W) PLL0 Control Register */ |
bogdanm | 66:9c8f0e3462fb | 184 | __IO uint32_t PLL0CFG; /*!< Offset: 0x084 (R/W) PLL0 Configuration Register */ |
bogdanm | 66:9c8f0e3462fb | 185 | __I uint32_t PLL0STAT; /*!< Offset: 0x088 (R/ ) PLL0 Status Register */ |
bogdanm | 66:9c8f0e3462fb | 186 | __O uint32_t PLL0FEED; /*!< Offset: 0x08C ( /W) PLL0 Feed Register */ |
bogdanm | 66:9c8f0e3462fb | 187 | uint32_t RESERVED1[4]; |
bogdanm | 66:9c8f0e3462fb | 188 | __IO uint32_t PLL1CON; /*!< Offset: 0x0A0 (R/W) PLL1 Control Register */ |
bogdanm | 66:9c8f0e3462fb | 189 | __IO uint32_t PLL1CFG; /*!< Offset: 0x0A4 (R/W) PLL1 Configuration Register */ |
bogdanm | 66:9c8f0e3462fb | 190 | __I uint32_t PLL1STAT; /*!< Offset: 0x0A8 (R/ ) PLL1 Status Register */ |
bogdanm | 66:9c8f0e3462fb | 191 | __O uint32_t PLL1FEED; /*!< Offset: 0x0AC ( /W) PLL1 Feed Register */ |
bogdanm | 66:9c8f0e3462fb | 192 | uint32_t RESERVED2[4]; |
bogdanm | 66:9c8f0e3462fb | 193 | __IO uint32_t PCON; /*!< Offset: 0x0C0 (R/W) Power Control Register */ |
bogdanm | 66:9c8f0e3462fb | 194 | __IO uint32_t PCONP; /*!< Offset: 0x0C4 (R/W) Power Control for Peripherals Register */ |
bogdanm | 66:9c8f0e3462fb | 195 | __IO uint32_t PCONP1; /*!< Offset: 0x0C8 (R/W) Power Control for Peripherals Register */ |
bogdanm | 66:9c8f0e3462fb | 196 | uint32_t RESERVED3[13]; |
bogdanm | 66:9c8f0e3462fb | 197 | __IO uint32_t EMCCLKSEL; /*!< Offset: 0x100 (R/W) External Memory Controller Clock Selection Register */ |
bogdanm | 66:9c8f0e3462fb | 198 | __IO uint32_t CCLKSEL; /*!< Offset: 0x104 (R/W) CPU Clock Selection Register */ |
bogdanm | 66:9c8f0e3462fb | 199 | __IO uint32_t USBCLKSEL; /*!< Offset: 0x108 (R/W) USB Clock Selection Register */ |
bogdanm | 66:9c8f0e3462fb | 200 | __IO uint32_t CLKSRCSEL; /*!< Offset: 0x10C (R/W) Clock Source Select Register */ |
bogdanm | 66:9c8f0e3462fb | 201 | __IO uint32_t CANSLEEPCLR; /*!< Offset: 0x110 (R/W) CAN Sleep Clear Register */ |
bogdanm | 66:9c8f0e3462fb | 202 | __IO uint32_t CANWAKEFLAGS; /*!< Offset: 0x114 (R/W) CAN Wake-up Flags Register */ |
bogdanm | 66:9c8f0e3462fb | 203 | uint32_t RESERVED4[10]; |
bogdanm | 66:9c8f0e3462fb | 204 | __IO uint32_t EXTINT; /*!< Offset: 0x140 (R/W) External Interrupt Flag Register */ |
bogdanm | 66:9c8f0e3462fb | 205 | uint32_t RESERVED5[1]; |
bogdanm | 66:9c8f0e3462fb | 206 | __IO uint32_t EXTMODE; /*!< Offset: 0x148 (R/W) External Interrupt Mode Register */ |
bogdanm | 66:9c8f0e3462fb | 207 | __IO uint32_t EXTPOLAR; /*!< Offset: 0x14C (R/W) External Interrupt Polarity Register */ |
bogdanm | 66:9c8f0e3462fb | 208 | uint32_t RESERVED6[12]; |
bogdanm | 66:9c8f0e3462fb | 209 | __IO uint32_t RSID; /*!< Offset: 0x180 (R/W) Reset Source Identification Register */ |
bogdanm | 66:9c8f0e3462fb | 210 | uint32_t RESERVED7[7]; |
bogdanm | 66:9c8f0e3462fb | 211 | __IO uint32_t SCS; /*!< Offset: 0x1A0 (R/W) System Controls and Status Register */ |
bogdanm | 66:9c8f0e3462fb | 212 | __IO uint32_t IRCTRIM; /*!< Offset: 0x1A4 (R/W) Clock Dividers */ |
bogdanm | 66:9c8f0e3462fb | 213 | __IO uint32_t PCLKSEL; /*!< Offset: 0x1A8 (R/W) Peripheral Clock Selection Register */ |
bogdanm | 66:9c8f0e3462fb | 214 | uint32_t RESERVED8; |
bogdanm | 66:9c8f0e3462fb | 215 | __IO uint32_t PBOOST; /*!< Offset: 0x1B0 (R/W) Power Boost control register */ |
bogdanm | 66:9c8f0e3462fb | 216 | __IO uint32_t SPIFICLKSEL; |
bogdanm | 66:9c8f0e3462fb | 217 | __IO uint32_t LCD_CFG; /*!< Offset: 0x1B8 (R/W) LCD Configuration and clocking control Register */ |
bogdanm | 66:9c8f0e3462fb | 218 | uint32_t RESERVED10[1]; |
bogdanm | 66:9c8f0e3462fb | 219 | __IO uint32_t USBIntSt; /*!< Offset: 0x1C0 (R/W) USB Interrupt Status Register */ |
bogdanm | 66:9c8f0e3462fb | 220 | __IO uint32_t DMAREQSEL; /*!< Offset: 0x1C4 (R/W) DMA Request Select Register */ |
bogdanm | 66:9c8f0e3462fb | 221 | __IO uint32_t CLKOUTCFG; /*!< Offset: 0x1C8 (R/W) Clock Output Configuration Register */ |
bogdanm | 66:9c8f0e3462fb | 222 | __IO uint32_t RSTCON0; /*!< Offset: 0x1CC (R/W) RESET Control0 Register */ |
bogdanm | 66:9c8f0e3462fb | 223 | __IO uint32_t RSTCON1; /*!< Offset: 0x1D0 (R/W) RESET Control1 Register */ |
bogdanm | 66:9c8f0e3462fb | 224 | uint32_t RESERVED11[2]; |
bogdanm | 66:9c8f0e3462fb | 225 | __IO uint32_t EMCDLYCTL; /*!< Offset: 0x1DC (R/W) SDRAM programmable delays */ |
bogdanm | 66:9c8f0e3462fb | 226 | __IO uint32_t EMCCAL; /*!< Offset: 0x1E0 (R/W) Calibration of programmable delays */ |
bogdanm | 66:9c8f0e3462fb | 227 | } LPC_SC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 228 | /*------------- Ethernet Media Access Controller (EMAC) ----------------------*/ |
bogdanm | 66:9c8f0e3462fb | 229 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 230 | { |
bogdanm | 66:9c8f0e3462fb | 231 | __IO uint32_t MAC1; /* MAC Registers */ |
bogdanm | 66:9c8f0e3462fb | 232 | __IO uint32_t MAC2; |
bogdanm | 66:9c8f0e3462fb | 233 | __IO uint32_t IPGT; |
bogdanm | 66:9c8f0e3462fb | 234 | __IO uint32_t IPGR; |
bogdanm | 66:9c8f0e3462fb | 235 | __IO uint32_t CLRT; |
bogdanm | 66:9c8f0e3462fb | 236 | __IO uint32_t MAXF; |
bogdanm | 66:9c8f0e3462fb | 237 | __IO uint32_t SUPP; |
bogdanm | 66:9c8f0e3462fb | 238 | __IO uint32_t TEST; |
bogdanm | 66:9c8f0e3462fb | 239 | __IO uint32_t MCFG; |
bogdanm | 66:9c8f0e3462fb | 240 | __IO uint32_t MCMD; |
bogdanm | 66:9c8f0e3462fb | 241 | __IO uint32_t MADR; |
bogdanm | 66:9c8f0e3462fb | 242 | __O uint32_t MWTD; |
bogdanm | 66:9c8f0e3462fb | 243 | __I uint32_t MRDD; |
bogdanm | 66:9c8f0e3462fb | 244 | __I uint32_t MIND; |
bogdanm | 66:9c8f0e3462fb | 245 | uint32_t RESERVED0[2]; |
bogdanm | 66:9c8f0e3462fb | 246 | __IO uint32_t SA0; |
bogdanm | 66:9c8f0e3462fb | 247 | __IO uint32_t SA1; |
bogdanm | 66:9c8f0e3462fb | 248 | __IO uint32_t SA2; |
bogdanm | 66:9c8f0e3462fb | 249 | uint32_t RESERVED1[45]; |
bogdanm | 66:9c8f0e3462fb | 250 | __IO uint32_t Command; /* Control Registers */ |
bogdanm | 66:9c8f0e3462fb | 251 | __I uint32_t Status; |
bogdanm | 66:9c8f0e3462fb | 252 | __IO uint32_t RxDescriptor; |
bogdanm | 66:9c8f0e3462fb | 253 | __IO uint32_t RxStatus; |
bogdanm | 66:9c8f0e3462fb | 254 | __IO uint32_t RxDescriptorNumber; |
bogdanm | 66:9c8f0e3462fb | 255 | __I uint32_t RxProduceIndex; |
bogdanm | 66:9c8f0e3462fb | 256 | __IO uint32_t RxConsumeIndex; |
bogdanm | 66:9c8f0e3462fb | 257 | __IO uint32_t TxDescriptor; |
bogdanm | 66:9c8f0e3462fb | 258 | __IO uint32_t TxStatus; |
bogdanm | 66:9c8f0e3462fb | 259 | __IO uint32_t TxDescriptorNumber; |
bogdanm | 66:9c8f0e3462fb | 260 | __IO uint32_t TxProduceIndex; |
bogdanm | 66:9c8f0e3462fb | 261 | __I uint32_t TxConsumeIndex; |
bogdanm | 66:9c8f0e3462fb | 262 | uint32_t RESERVED2[10]; |
bogdanm | 66:9c8f0e3462fb | 263 | __I uint32_t TSV0; |
bogdanm | 66:9c8f0e3462fb | 264 | __I uint32_t TSV1; |
bogdanm | 66:9c8f0e3462fb | 265 | __I uint32_t RSV; |
bogdanm | 66:9c8f0e3462fb | 266 | uint32_t RESERVED3[3]; |
bogdanm | 66:9c8f0e3462fb | 267 | __IO uint32_t FlowControlCounter; |
bogdanm | 66:9c8f0e3462fb | 268 | __I uint32_t FlowControlStatus; |
bogdanm | 66:9c8f0e3462fb | 269 | uint32_t RESERVED4[34]; |
bogdanm | 66:9c8f0e3462fb | 270 | __IO uint32_t RxFilterCtrl; /* Rx Filter Registers */ |
bogdanm | 66:9c8f0e3462fb | 271 | __I uint32_t RxFilterWoLStatus; |
bogdanm | 66:9c8f0e3462fb | 272 | __O uint32_t RxFilterWoLClear; |
bogdanm | 66:9c8f0e3462fb | 273 | uint32_t RESERVED5; |
bogdanm | 66:9c8f0e3462fb | 274 | __IO uint32_t HashFilterL; |
bogdanm | 66:9c8f0e3462fb | 275 | __IO uint32_t HashFilterH; |
bogdanm | 66:9c8f0e3462fb | 276 | uint32_t RESERVED6[882]; |
bogdanm | 66:9c8f0e3462fb | 277 | __I uint32_t IntStatus; /* Module Control Registers */ |
bogdanm | 66:9c8f0e3462fb | 278 | __IO uint32_t IntEnable; |
bogdanm | 66:9c8f0e3462fb | 279 | __O uint32_t IntClear; |
bogdanm | 66:9c8f0e3462fb | 280 | __O uint32_t IntSet; |
bogdanm | 66:9c8f0e3462fb | 281 | uint32_t RESERVED7; |
bogdanm | 66:9c8f0e3462fb | 282 | __IO uint32_t PowerDown; |
bogdanm | 66:9c8f0e3462fb | 283 | uint32_t RESERVED8; |
bogdanm | 66:9c8f0e3462fb | 284 | __IO uint32_t Module_ID; |
bogdanm | 66:9c8f0e3462fb | 285 | } LPC_EMAC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 286 | |
bogdanm | 66:9c8f0e3462fb | 287 | /*------------- LCD controller (LCD) -----------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 288 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 289 | { |
bogdanm | 66:9c8f0e3462fb | 290 | __IO uint32_t TIMH; /* LCD Registers */ |
bogdanm | 66:9c8f0e3462fb | 291 | __IO uint32_t TIMV; |
bogdanm | 66:9c8f0e3462fb | 292 | __IO uint32_t POL; |
bogdanm | 66:9c8f0e3462fb | 293 | __IO uint32_t LE; |
bogdanm | 66:9c8f0e3462fb | 294 | __IO uint32_t UPBASE; |
bogdanm | 66:9c8f0e3462fb | 295 | __IO uint32_t LPBASE; |
bogdanm | 66:9c8f0e3462fb | 296 | __IO uint32_t CTRL; |
bogdanm | 66:9c8f0e3462fb | 297 | __IO uint32_t INTMSK; |
bogdanm | 66:9c8f0e3462fb | 298 | __I uint32_t INTRAW; |
bogdanm | 66:9c8f0e3462fb | 299 | __I uint32_t INTSTAT; |
bogdanm | 66:9c8f0e3462fb | 300 | __O uint32_t INTCLR; |
bogdanm | 66:9c8f0e3462fb | 301 | __I uint32_t UPCURR; |
bogdanm | 66:9c8f0e3462fb | 302 | __I uint32_t LPCURR; |
bogdanm | 66:9c8f0e3462fb | 303 | uint32_t RESERVED0[115]; |
bogdanm | 66:9c8f0e3462fb | 304 | __IO uint32_t PAL[128]; |
bogdanm | 66:9c8f0e3462fb | 305 | uint32_t RESERVED1[256]; |
bogdanm | 66:9c8f0e3462fb | 306 | __IO uint32_t CRSR_IMG[256]; |
bogdanm | 66:9c8f0e3462fb | 307 | __IO uint32_t CRSR_CTRL; |
bogdanm | 66:9c8f0e3462fb | 308 | __IO uint32_t CRSR_CFG; |
bogdanm | 66:9c8f0e3462fb | 309 | __IO uint32_t CRSR_PAL0; |
bogdanm | 66:9c8f0e3462fb | 310 | __IO uint32_t CRSR_PAL1; |
bogdanm | 66:9c8f0e3462fb | 311 | __IO uint32_t CRSR_XY; |
bogdanm | 66:9c8f0e3462fb | 312 | __IO uint32_t CRSR_CLIP; |
bogdanm | 66:9c8f0e3462fb | 313 | uint32_t RESERVED2[2]; |
bogdanm | 66:9c8f0e3462fb | 314 | __IO uint32_t CRSR_INTMSK; |
bogdanm | 66:9c8f0e3462fb | 315 | __O uint32_t CRSR_INTCLR; |
bogdanm | 66:9c8f0e3462fb | 316 | __I uint32_t CRSR_INTRAW; |
bogdanm | 66:9c8f0e3462fb | 317 | __I uint32_t CRSR_INTSTAT; |
bogdanm | 66:9c8f0e3462fb | 318 | } LPC_LCD_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 319 | |
bogdanm | 66:9c8f0e3462fb | 320 | /*------------- Universal Serial Bus (USB) -----------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 321 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 322 | { |
bogdanm | 66:9c8f0e3462fb | 323 | __I uint32_t Revision; /* USB Host Registers */ |
bogdanm | 66:9c8f0e3462fb | 324 | __IO uint32_t Control; |
bogdanm | 66:9c8f0e3462fb | 325 | __IO uint32_t CommandStatus; |
bogdanm | 66:9c8f0e3462fb | 326 | __IO uint32_t InterruptStatus; |
bogdanm | 66:9c8f0e3462fb | 327 | __IO uint32_t InterruptEnable; |
bogdanm | 66:9c8f0e3462fb | 328 | __IO uint32_t InterruptDisable; |
bogdanm | 66:9c8f0e3462fb | 329 | __IO uint32_t HCCA; |
bogdanm | 66:9c8f0e3462fb | 330 | __I uint32_t PeriodCurrentED; |
bogdanm | 66:9c8f0e3462fb | 331 | __IO uint32_t ControlHeadED; |
bogdanm | 66:9c8f0e3462fb | 332 | __IO uint32_t ControlCurrentED; |
bogdanm | 66:9c8f0e3462fb | 333 | __IO uint32_t BulkHeadED; |
bogdanm | 66:9c8f0e3462fb | 334 | __IO uint32_t BulkCurrentED; |
bogdanm | 66:9c8f0e3462fb | 335 | __I uint32_t DoneHead; |
bogdanm | 66:9c8f0e3462fb | 336 | __IO uint32_t FmInterval; |
bogdanm | 66:9c8f0e3462fb | 337 | __I uint32_t FmRemaining; |
bogdanm | 66:9c8f0e3462fb | 338 | __I uint32_t FmNumber; |
bogdanm | 66:9c8f0e3462fb | 339 | __IO uint32_t PeriodicStart; |
bogdanm | 66:9c8f0e3462fb | 340 | __IO uint32_t LSTreshold; |
bogdanm | 66:9c8f0e3462fb | 341 | __IO uint32_t RhDescriptorA; |
bogdanm | 66:9c8f0e3462fb | 342 | __IO uint32_t RhDescriptorB; |
bogdanm | 66:9c8f0e3462fb | 343 | __IO uint32_t RhStatus; |
bogdanm | 66:9c8f0e3462fb | 344 | __IO uint32_t RhPortStatus1; |
bogdanm | 66:9c8f0e3462fb | 345 | __IO uint32_t RhPortStatus2; |
bogdanm | 66:9c8f0e3462fb | 346 | uint32_t RESERVED0[40]; |
bogdanm | 66:9c8f0e3462fb | 347 | __I uint32_t Module_ID; |
bogdanm | 66:9c8f0e3462fb | 348 | |
bogdanm | 66:9c8f0e3462fb | 349 | __I uint32_t IntSt; /* USB On-The-Go Registers */ |
bogdanm | 66:9c8f0e3462fb | 350 | __IO uint32_t IntEn; |
bogdanm | 66:9c8f0e3462fb | 351 | __O uint32_t IntSet; |
bogdanm | 66:9c8f0e3462fb | 352 | __O uint32_t IntClr; |
bogdanm | 66:9c8f0e3462fb | 353 | __IO uint32_t StCtrl; |
bogdanm | 66:9c8f0e3462fb | 354 | __IO uint32_t Tmr; |
bogdanm | 66:9c8f0e3462fb | 355 | uint32_t RESERVED1[58]; |
bogdanm | 66:9c8f0e3462fb | 356 | |
bogdanm | 66:9c8f0e3462fb | 357 | __I uint32_t DevIntSt; /* USB Device Interrupt Registers */ |
bogdanm | 66:9c8f0e3462fb | 358 | __IO uint32_t DevIntEn; |
bogdanm | 66:9c8f0e3462fb | 359 | __O uint32_t DevIntClr; |
bogdanm | 66:9c8f0e3462fb | 360 | __O uint32_t DevIntSet; |
bogdanm | 66:9c8f0e3462fb | 361 | |
bogdanm | 66:9c8f0e3462fb | 362 | __O uint32_t CmdCode; /* USB Device SIE Command Registers */ |
bogdanm | 66:9c8f0e3462fb | 363 | __I uint32_t CmdData; |
bogdanm | 66:9c8f0e3462fb | 364 | |
bogdanm | 66:9c8f0e3462fb | 365 | __I uint32_t RxData; /* USB Device Transfer Registers */ |
bogdanm | 66:9c8f0e3462fb | 366 | __O uint32_t TxData; |
bogdanm | 66:9c8f0e3462fb | 367 | __I uint32_t RxPLen; |
bogdanm | 66:9c8f0e3462fb | 368 | __O uint32_t TxPLen; |
bogdanm | 66:9c8f0e3462fb | 369 | __IO uint32_t Ctrl; |
bogdanm | 66:9c8f0e3462fb | 370 | __O uint32_t DevIntPri; |
bogdanm | 66:9c8f0e3462fb | 371 | |
bogdanm | 66:9c8f0e3462fb | 372 | __I uint32_t EpIntSt; /* USB Device Endpoint Interrupt Regs */ |
bogdanm | 66:9c8f0e3462fb | 373 | __IO uint32_t EpIntEn; |
bogdanm | 66:9c8f0e3462fb | 374 | __O uint32_t EpIntClr; |
bogdanm | 66:9c8f0e3462fb | 375 | __O uint32_t EpIntSet; |
bogdanm | 66:9c8f0e3462fb | 376 | __O uint32_t EpIntPri; |
bogdanm | 66:9c8f0e3462fb | 377 | |
bogdanm | 66:9c8f0e3462fb | 378 | __IO uint32_t ReEp; /* USB Device Endpoint Realization Reg*/ |
bogdanm | 66:9c8f0e3462fb | 379 | __O uint32_t EpInd; |
bogdanm | 66:9c8f0e3462fb | 380 | __IO uint32_t MaxPSize; |
bogdanm | 66:9c8f0e3462fb | 381 | |
bogdanm | 66:9c8f0e3462fb | 382 | __I uint32_t DMARSt; /* USB Device DMA Registers */ |
bogdanm | 66:9c8f0e3462fb | 383 | __O uint32_t DMARClr; |
bogdanm | 66:9c8f0e3462fb | 384 | __O uint32_t DMARSet; |
bogdanm | 66:9c8f0e3462fb | 385 | uint32_t RESERVED2[9]; |
bogdanm | 66:9c8f0e3462fb | 386 | __IO uint32_t UDCAH; |
bogdanm | 66:9c8f0e3462fb | 387 | __I uint32_t EpDMASt; |
bogdanm | 66:9c8f0e3462fb | 388 | __O uint32_t EpDMAEn; |
bogdanm | 66:9c8f0e3462fb | 389 | __O uint32_t EpDMADis; |
bogdanm | 66:9c8f0e3462fb | 390 | __I uint32_t DMAIntSt; |
bogdanm | 66:9c8f0e3462fb | 391 | __IO uint32_t DMAIntEn; |
bogdanm | 66:9c8f0e3462fb | 392 | uint32_t RESERVED3[2]; |
bogdanm | 66:9c8f0e3462fb | 393 | __I uint32_t EoTIntSt; |
bogdanm | 66:9c8f0e3462fb | 394 | __O uint32_t EoTIntClr; |
bogdanm | 66:9c8f0e3462fb | 395 | __O uint32_t EoTIntSet; |
bogdanm | 66:9c8f0e3462fb | 396 | __I uint32_t NDDRIntSt; |
bogdanm | 66:9c8f0e3462fb | 397 | __O uint32_t NDDRIntClr; |
bogdanm | 66:9c8f0e3462fb | 398 | __O uint32_t NDDRIntSet; |
bogdanm | 66:9c8f0e3462fb | 399 | __I uint32_t SysErrIntSt; |
bogdanm | 66:9c8f0e3462fb | 400 | __O uint32_t SysErrIntClr; |
bogdanm | 66:9c8f0e3462fb | 401 | __O uint32_t SysErrIntSet; |
bogdanm | 66:9c8f0e3462fb | 402 | uint32_t RESERVED4[15]; |
bogdanm | 66:9c8f0e3462fb | 403 | |
bogdanm | 66:9c8f0e3462fb | 404 | union { |
bogdanm | 66:9c8f0e3462fb | 405 | __I uint32_t I2C_RX; /* USB OTG I2C Registers */ |
bogdanm | 66:9c8f0e3462fb | 406 | __O uint32_t I2C_TX; |
bogdanm | 66:9c8f0e3462fb | 407 | }; |
bogdanm | 66:9c8f0e3462fb | 408 | __IO uint32_t I2C_STS; |
bogdanm | 66:9c8f0e3462fb | 409 | __IO uint32_t I2C_CTL; |
bogdanm | 66:9c8f0e3462fb | 410 | __IO uint32_t I2C_CLKHI; |
bogdanm | 66:9c8f0e3462fb | 411 | __O uint32_t I2C_CLKLO; |
bogdanm | 66:9c8f0e3462fb | 412 | uint32_t RESERVED5[824]; |
bogdanm | 66:9c8f0e3462fb | 413 | |
bogdanm | 66:9c8f0e3462fb | 414 | union { |
bogdanm | 66:9c8f0e3462fb | 415 | __IO uint32_t USBClkCtrl; /* USB Clock Control Registers */ |
bogdanm | 66:9c8f0e3462fb | 416 | __IO uint32_t OTGClkCtrl; |
bogdanm | 66:9c8f0e3462fb | 417 | }; |
bogdanm | 66:9c8f0e3462fb | 418 | union { |
bogdanm | 66:9c8f0e3462fb | 419 | __I uint32_t USBClkSt; |
bogdanm | 66:9c8f0e3462fb | 420 | __I uint32_t OTGClkSt; |
bogdanm | 66:9c8f0e3462fb | 421 | }; |
bogdanm | 66:9c8f0e3462fb | 422 | } LPC_USB_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 423 | |
bogdanm | 66:9c8f0e3462fb | 424 | /*------------- CRC Engine (CRC) -----------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 425 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 426 | { |
bogdanm | 66:9c8f0e3462fb | 427 | __IO uint32_t MODE; |
bogdanm | 66:9c8f0e3462fb | 428 | __IO uint32_t SEED; |
bogdanm | 66:9c8f0e3462fb | 429 | union { |
bogdanm | 66:9c8f0e3462fb | 430 | __I uint32_t SUM; |
bogdanm | 66:9c8f0e3462fb | 431 | struct { |
bogdanm | 66:9c8f0e3462fb | 432 | __O uint32_t DATA; |
bogdanm | 66:9c8f0e3462fb | 433 | } WR_DATA_DWORD; |
bogdanm | 66:9c8f0e3462fb | 434 | |
bogdanm | 66:9c8f0e3462fb | 435 | struct { |
bogdanm | 66:9c8f0e3462fb | 436 | __O uint16_t DATA; |
bogdanm | 66:9c8f0e3462fb | 437 | uint16_t RESERVED; |
bogdanm | 66:9c8f0e3462fb | 438 | }WR_DATA_WORD; |
bogdanm | 66:9c8f0e3462fb | 439 | |
bogdanm | 66:9c8f0e3462fb | 440 | struct { |
bogdanm | 66:9c8f0e3462fb | 441 | __O uint8_t DATA; |
bogdanm | 66:9c8f0e3462fb | 442 | uint8_t RESERVED[3]; |
bogdanm | 66:9c8f0e3462fb | 443 | }WR_DATA_BYTE; |
bogdanm | 66:9c8f0e3462fb | 444 | }; |
bogdanm | 66:9c8f0e3462fb | 445 | } LPC_CRC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 446 | /*------------- General Purpose Input/Output (GPIO) --------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 447 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 448 | { |
bogdanm | 66:9c8f0e3462fb | 449 | __IO uint32_t DIR; |
bogdanm | 66:9c8f0e3462fb | 450 | uint32_t RESERVED0[3]; |
bogdanm | 66:9c8f0e3462fb | 451 | __IO uint32_t MASK; |
bogdanm | 66:9c8f0e3462fb | 452 | __IO uint32_t PIN; |
bogdanm | 66:9c8f0e3462fb | 453 | __IO uint32_t SET; |
bogdanm | 66:9c8f0e3462fb | 454 | __O uint32_t CLR; |
bogdanm | 66:9c8f0e3462fb | 455 | } LPC_GPIO_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 456 | |
bogdanm | 66:9c8f0e3462fb | 457 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 458 | { |
bogdanm | 66:9c8f0e3462fb | 459 | __I uint32_t IntStatus; |
bogdanm | 66:9c8f0e3462fb | 460 | __I uint32_t IO0IntStatR; |
bogdanm | 66:9c8f0e3462fb | 461 | __I uint32_t IO0IntStatF; |
bogdanm | 66:9c8f0e3462fb | 462 | __O uint32_t IO0IntClr; |
bogdanm | 66:9c8f0e3462fb | 463 | __IO uint32_t IO0IntEnR; |
bogdanm | 66:9c8f0e3462fb | 464 | __IO uint32_t IO0IntEnF; |
bogdanm | 66:9c8f0e3462fb | 465 | uint32_t RESERVED0[3]; |
bogdanm | 66:9c8f0e3462fb | 466 | __I uint32_t IO2IntStatR; |
bogdanm | 66:9c8f0e3462fb | 467 | __I uint32_t IO2IntStatF; |
bogdanm | 66:9c8f0e3462fb | 468 | __O uint32_t IO2IntClr; |
bogdanm | 66:9c8f0e3462fb | 469 | __IO uint32_t IO2IntEnR; |
bogdanm | 66:9c8f0e3462fb | 470 | __IO uint32_t IO2IntEnF; |
bogdanm | 66:9c8f0e3462fb | 471 | } LPC_GPIOINT_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 472 | |
bogdanm | 66:9c8f0e3462fb | 473 | /*------------- External Memory Controller (EMC) -----------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 474 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 475 | { |
bogdanm | 66:9c8f0e3462fb | 476 | __IO uint32_t Control; |
bogdanm | 66:9c8f0e3462fb | 477 | __I uint32_t Status; |
bogdanm | 66:9c8f0e3462fb | 478 | __IO uint32_t Config; |
bogdanm | 66:9c8f0e3462fb | 479 | uint32_t RESERVED0[5]; |
bogdanm | 66:9c8f0e3462fb | 480 | __IO uint32_t DynamicControl; |
bogdanm | 66:9c8f0e3462fb | 481 | __IO uint32_t DynamicRefresh; |
bogdanm | 66:9c8f0e3462fb | 482 | __IO uint32_t DynamicReadConfig; |
bogdanm | 66:9c8f0e3462fb | 483 | uint32_t RESERVED1[1]; |
bogdanm | 66:9c8f0e3462fb | 484 | __IO uint32_t DynamicRP; |
bogdanm | 66:9c8f0e3462fb | 485 | __IO uint32_t DynamicRAS; |
bogdanm | 66:9c8f0e3462fb | 486 | __IO uint32_t DynamicSREX; |
bogdanm | 66:9c8f0e3462fb | 487 | __IO uint32_t DynamicAPR; |
bogdanm | 66:9c8f0e3462fb | 488 | __IO uint32_t DynamicDAL; |
bogdanm | 66:9c8f0e3462fb | 489 | __IO uint32_t DynamicWR; |
bogdanm | 66:9c8f0e3462fb | 490 | __IO uint32_t DynamicRC; |
bogdanm | 66:9c8f0e3462fb | 491 | __IO uint32_t DynamicRFC; |
bogdanm | 66:9c8f0e3462fb | 492 | __IO uint32_t DynamicXSR; |
bogdanm | 66:9c8f0e3462fb | 493 | __IO uint32_t DynamicRRD; |
bogdanm | 66:9c8f0e3462fb | 494 | __IO uint32_t DynamicMRD; |
bogdanm | 66:9c8f0e3462fb | 495 | uint32_t RESERVED2[9]; |
bogdanm | 66:9c8f0e3462fb | 496 | __IO uint32_t StaticExtendedWait; |
bogdanm | 66:9c8f0e3462fb | 497 | uint32_t RESERVED3[31]; |
bogdanm | 66:9c8f0e3462fb | 498 | __IO uint32_t DynamicConfig0; |
bogdanm | 66:9c8f0e3462fb | 499 | __IO uint32_t DynamicRasCas0; |
bogdanm | 66:9c8f0e3462fb | 500 | uint32_t RESERVED4[6]; |
bogdanm | 66:9c8f0e3462fb | 501 | __IO uint32_t DynamicConfig1; |
bogdanm | 66:9c8f0e3462fb | 502 | __IO uint32_t DynamicRasCas1; |
bogdanm | 66:9c8f0e3462fb | 503 | uint32_t RESERVED5[6]; |
bogdanm | 66:9c8f0e3462fb | 504 | __IO uint32_t DynamicConfig2; |
bogdanm | 66:9c8f0e3462fb | 505 | __IO uint32_t DynamicRasCas2; |
bogdanm | 66:9c8f0e3462fb | 506 | uint32_t RESERVED6[6]; |
bogdanm | 66:9c8f0e3462fb | 507 | __IO uint32_t DynamicConfig3; |
bogdanm | 66:9c8f0e3462fb | 508 | __IO uint32_t DynamicRasCas3; |
bogdanm | 66:9c8f0e3462fb | 509 | uint32_t RESERVED7[38]; |
bogdanm | 66:9c8f0e3462fb | 510 | __IO uint32_t StaticConfig0; |
bogdanm | 66:9c8f0e3462fb | 511 | __IO uint32_t StaticWaitWen0; |
bogdanm | 66:9c8f0e3462fb | 512 | __IO uint32_t StaticWaitOen0; |
bogdanm | 66:9c8f0e3462fb | 513 | __IO uint32_t StaticWaitRd0; |
bogdanm | 66:9c8f0e3462fb | 514 | __IO uint32_t StaticWaitPage0; |
bogdanm | 66:9c8f0e3462fb | 515 | __IO uint32_t StaticWaitWr0; |
bogdanm | 66:9c8f0e3462fb | 516 | __IO uint32_t StaticWaitTurn0; |
bogdanm | 66:9c8f0e3462fb | 517 | uint32_t RESERVED8[1]; |
bogdanm | 66:9c8f0e3462fb | 518 | __IO uint32_t StaticConfig1; |
bogdanm | 66:9c8f0e3462fb | 519 | __IO uint32_t StaticWaitWen1; |
bogdanm | 66:9c8f0e3462fb | 520 | __IO uint32_t StaticWaitOen1; |
bogdanm | 66:9c8f0e3462fb | 521 | __IO uint32_t StaticWaitRd1; |
bogdanm | 66:9c8f0e3462fb | 522 | __IO uint32_t StaticWaitPage1; |
bogdanm | 66:9c8f0e3462fb | 523 | __IO uint32_t StaticWaitWr1; |
bogdanm | 66:9c8f0e3462fb | 524 | __IO uint32_t StaticWaitTurn1; |
bogdanm | 66:9c8f0e3462fb | 525 | uint32_t RESERVED9[1]; |
bogdanm | 66:9c8f0e3462fb | 526 | __IO uint32_t StaticConfig2; |
bogdanm | 66:9c8f0e3462fb | 527 | __IO uint32_t StaticWaitWen2; |
bogdanm | 66:9c8f0e3462fb | 528 | __IO uint32_t StaticWaitOen2; |
bogdanm | 66:9c8f0e3462fb | 529 | __IO uint32_t StaticWaitRd2; |
bogdanm | 66:9c8f0e3462fb | 530 | __IO uint32_t StaticWaitPage2; |
bogdanm | 66:9c8f0e3462fb | 531 | __IO uint32_t StaticWaitWr2; |
bogdanm | 66:9c8f0e3462fb | 532 | __IO uint32_t StaticWaitTurn2; |
bogdanm | 66:9c8f0e3462fb | 533 | uint32_t RESERVED10[1]; |
bogdanm | 66:9c8f0e3462fb | 534 | __IO uint32_t StaticConfig3; |
bogdanm | 66:9c8f0e3462fb | 535 | __IO uint32_t StaticWaitWen3; |
bogdanm | 66:9c8f0e3462fb | 536 | __IO uint32_t StaticWaitOen3; |
bogdanm | 66:9c8f0e3462fb | 537 | __IO uint32_t StaticWaitRd3; |
bogdanm | 66:9c8f0e3462fb | 538 | __IO uint32_t StaticWaitPage3; |
bogdanm | 66:9c8f0e3462fb | 539 | __IO uint32_t StaticWaitWr3; |
bogdanm | 66:9c8f0e3462fb | 540 | __IO uint32_t StaticWaitTurn3; |
bogdanm | 66:9c8f0e3462fb | 541 | } LPC_EMC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 542 | |
bogdanm | 66:9c8f0e3462fb | 543 | /*------------- Watchdog Timer (WDT) -----------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 544 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 545 | { |
bogdanm | 66:9c8f0e3462fb | 546 | __IO uint8_t MOD; |
bogdanm | 66:9c8f0e3462fb | 547 | uint8_t RESERVED0[3]; |
bogdanm | 66:9c8f0e3462fb | 548 | __IO uint32_t TC; |
bogdanm | 66:9c8f0e3462fb | 549 | __O uint8_t FEED; |
bogdanm | 66:9c8f0e3462fb | 550 | uint8_t RESERVED1[3]; |
bogdanm | 66:9c8f0e3462fb | 551 | __I uint32_t TV; |
bogdanm | 66:9c8f0e3462fb | 552 | uint32_t RESERVED2; |
bogdanm | 66:9c8f0e3462fb | 553 | __IO uint32_t WARNINT; |
bogdanm | 66:9c8f0e3462fb | 554 | __IO uint32_t WINDOW; |
bogdanm | 66:9c8f0e3462fb | 555 | } LPC_WDT_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 556 | |
bogdanm | 66:9c8f0e3462fb | 557 | /*------------- Timer (TIM) --------------------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 558 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 559 | { |
bogdanm | 66:9c8f0e3462fb | 560 | __IO uint32_t IR; /*!< Offset: 0x000 Interrupt Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 561 | __IO uint32_t TCR; /*!< Offset: 0x004 Timer Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 562 | __IO uint32_t TC; /*!< Offset: 0x008 Timer Counter Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 563 | __IO uint32_t PR; /*!< Offset: 0x00C Prescale Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 564 | __IO uint32_t PC; /*!< Offset: 0x010 Prescale Counter Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 565 | __IO uint32_t MCR; /*!< Offset: 0x014 Match Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 566 | __IO uint32_t MR0; /*!< Offset: 0x018 Match Register 0 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 567 | __IO uint32_t MR1; /*!< Offset: 0x01C Match Register 1 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 568 | __IO uint32_t MR2; /*!< Offset: 0x020 Match Register 2 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 569 | __IO uint32_t MR3; /*!< Offset: 0x024 Match Register 3 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 570 | __IO uint32_t CCR; /*!< Offset: 0x028 Capture Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 571 | __I uint32_t CR0; /*!< Offset: 0x02C Capture Register 0 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 572 | __I uint32_t CR1; /*!< Offset: 0x030 Capture Register 1 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 573 | uint32_t RESERVED0[2]; |
bogdanm | 66:9c8f0e3462fb | 574 | __IO uint32_t EMR; /*!< Offset: 0x03C External Match Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 575 | uint32_t RESERVED1[12]; |
bogdanm | 66:9c8f0e3462fb | 576 | __IO uint32_t CTCR; /*!< Offset: 0x070 Count Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 577 | } LPC_TIM_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 578 | |
bogdanm | 66:9c8f0e3462fb | 579 | |
bogdanm | 66:9c8f0e3462fb | 580 | /*------------- Pulse-Width Modulation (PWM) ---------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 581 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 582 | { |
bogdanm | 66:9c8f0e3462fb | 583 | __IO uint32_t IR; /*!< Offset: 0x000 Interrupt Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 584 | __IO uint32_t TCR; /*!< Offset: 0x004 Timer Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 585 | __IO uint32_t TC; /*!< Offset: 0x008 Timer Counter Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 586 | __IO uint32_t PR; /*!< Offset: 0x00C Prescale Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 587 | __IO uint32_t PC; /*!< Offset: 0x010 Prescale Counter Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 588 | __IO uint32_t MCR; /*!< Offset: 0x014 Match Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 589 | __IO uint32_t MR0; /*!< Offset: 0x018 Match Register 0 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 590 | __IO uint32_t MR1; /*!< Offset: 0x01C Match Register 1 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 591 | __IO uint32_t MR2; /*!< Offset: 0x020 Match Register 2 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 592 | __IO uint32_t MR3; /*!< Offset: 0x024 Match Register 3 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 593 | __IO uint32_t CCR; /*!< Offset: 0x028 Capture Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 594 | __I uint32_t CR0; /*!< Offset: 0x02C Capture Register 0 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 595 | __I uint32_t CR1; /*!< Offset: 0x030 Capture Register 1 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 596 | __I uint32_t CR2; /*!< Offset: 0x034 Capture Register 2 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 597 | __I uint32_t CR3; /*!< Offset: 0x038 Capture Register 3 (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 598 | uint32_t RESERVED0; |
bogdanm | 66:9c8f0e3462fb | 599 | __IO uint32_t MR4; /*!< Offset: 0x040 Match Register 4 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 600 | __IO uint32_t MR5; /*!< Offset: 0x044 Match Register 5 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 601 | __IO uint32_t MR6; /*!< Offset: 0x048 Match Register 6 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 602 | __IO uint32_t PCR; /*!< Offset: 0x04C PWM Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 603 | __IO uint32_t LER; /*!< Offset: 0x050 Load Enable Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 604 | uint32_t RESERVED1[7]; |
bogdanm | 66:9c8f0e3462fb | 605 | __IO uint32_t CTCR; /*!< Offset: 0x070 Counter Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 606 | } LPC_PWM_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 607 | |
bogdanm | 66:9c8f0e3462fb | 608 | /*------------- Universal Asynchronous Receiver Transmitter (UARTx) -----------*/ |
bogdanm | 66:9c8f0e3462fb | 609 | /* There are three types of UARTs on the chip: |
bogdanm | 66:9c8f0e3462fb | 610 | (1) UART0,UART2, and UART3 are the standard UART. |
bogdanm | 66:9c8f0e3462fb | 611 | (2) UART1 is the standard with modem capability. |
bogdanm | 66:9c8f0e3462fb | 612 | (3) USART(UART4) is the sync/async UART with smart card capability. |
bogdanm | 66:9c8f0e3462fb | 613 | More details can be found on the Users Manual. */ |
bogdanm | 66:9c8f0e3462fb | 614 | |
bogdanm | 66:9c8f0e3462fb | 615 | #if 0 |
bogdanm | 66:9c8f0e3462fb | 616 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 617 | { |
bogdanm | 66:9c8f0e3462fb | 618 | union { |
bogdanm | 66:9c8f0e3462fb | 619 | __I uint8_t RBR; |
bogdanm | 66:9c8f0e3462fb | 620 | __O uint8_t THR; |
bogdanm | 66:9c8f0e3462fb | 621 | __IO uint8_t DLL; |
bogdanm | 66:9c8f0e3462fb | 622 | uint32_t RESERVED0; |
bogdanm | 66:9c8f0e3462fb | 623 | }; |
bogdanm | 66:9c8f0e3462fb | 624 | union { |
bogdanm | 66:9c8f0e3462fb | 625 | __IO uint8_t DLM; |
bogdanm | 66:9c8f0e3462fb | 626 | __IO uint32_t IER; |
bogdanm | 66:9c8f0e3462fb | 627 | }; |
bogdanm | 66:9c8f0e3462fb | 628 | union { |
bogdanm | 66:9c8f0e3462fb | 629 | __I uint32_t IIR; |
bogdanm | 66:9c8f0e3462fb | 630 | __O uint8_t FCR; |
bogdanm | 66:9c8f0e3462fb | 631 | }; |
bogdanm | 66:9c8f0e3462fb | 632 | __IO uint8_t LCR; |
bogdanm | 66:9c8f0e3462fb | 633 | uint8_t RESERVED1[7]; |
bogdanm | 66:9c8f0e3462fb | 634 | __I uint8_t LSR; |
bogdanm | 66:9c8f0e3462fb | 635 | uint8_t RESERVED2[7]; |
bogdanm | 66:9c8f0e3462fb | 636 | __IO uint8_t SCR; |
bogdanm | 66:9c8f0e3462fb | 637 | uint8_t RESERVED3[3]; |
bogdanm | 66:9c8f0e3462fb | 638 | __IO uint32_t ACR; |
bogdanm | 66:9c8f0e3462fb | 639 | __IO uint8_t ICR; |
bogdanm | 66:9c8f0e3462fb | 640 | uint8_t RESERVED4[3]; |
bogdanm | 66:9c8f0e3462fb | 641 | __IO uint8_t FDR; |
bogdanm | 66:9c8f0e3462fb | 642 | uint8_t RESERVED5[7]; |
bogdanm | 66:9c8f0e3462fb | 643 | __IO uint8_t TER; |
bogdanm | 66:9c8f0e3462fb | 644 | uint8_t RESERVED6[39]; |
bogdanm | 66:9c8f0e3462fb | 645 | __I uint8_t FIFOLVL; |
bogdanm | 66:9c8f0e3462fb | 646 | } LPC_UART_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 647 | #else |
bogdanm | 66:9c8f0e3462fb | 648 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 649 | { |
bogdanm | 66:9c8f0e3462fb | 650 | union |
bogdanm | 66:9c8f0e3462fb | 651 | { |
bogdanm | 66:9c8f0e3462fb | 652 | __I uint8_t RBR; |
bogdanm | 66:9c8f0e3462fb | 653 | __O uint8_t THR; |
bogdanm | 66:9c8f0e3462fb | 654 | __IO uint8_t DLL; |
bogdanm | 66:9c8f0e3462fb | 655 | uint32_t RESERVED0; |
bogdanm | 66:9c8f0e3462fb | 656 | }; |
bogdanm | 66:9c8f0e3462fb | 657 | union |
bogdanm | 66:9c8f0e3462fb | 658 | { |
bogdanm | 66:9c8f0e3462fb | 659 | __IO uint8_t DLM; |
bogdanm | 66:9c8f0e3462fb | 660 | __IO uint32_t IER; |
bogdanm | 66:9c8f0e3462fb | 661 | }; |
bogdanm | 66:9c8f0e3462fb | 662 | union |
bogdanm | 66:9c8f0e3462fb | 663 | { |
bogdanm | 66:9c8f0e3462fb | 664 | __I uint32_t IIR; |
bogdanm | 66:9c8f0e3462fb | 665 | __O uint8_t FCR; |
bogdanm | 66:9c8f0e3462fb | 666 | }; |
bogdanm | 66:9c8f0e3462fb | 667 | __IO uint8_t LCR; |
bogdanm | 66:9c8f0e3462fb | 668 | uint8_t RESERVED1[7];//Reserved |
bogdanm | 66:9c8f0e3462fb | 669 | __I uint8_t LSR; |
bogdanm | 66:9c8f0e3462fb | 670 | uint8_t RESERVED2[7];//Reserved |
bogdanm | 66:9c8f0e3462fb | 671 | __IO uint8_t SCR; |
bogdanm | 66:9c8f0e3462fb | 672 | uint8_t RESERVED3[3];//Reserved |
bogdanm | 66:9c8f0e3462fb | 673 | __IO uint32_t ACR; |
bogdanm | 66:9c8f0e3462fb | 674 | __IO uint8_t ICR; |
bogdanm | 66:9c8f0e3462fb | 675 | uint8_t RESERVED4[3];//Reserved |
bogdanm | 66:9c8f0e3462fb | 676 | __IO uint8_t FDR; |
bogdanm | 66:9c8f0e3462fb | 677 | uint8_t RESERVED5[7];//Reserved |
bogdanm | 66:9c8f0e3462fb | 678 | __IO uint8_t TER; |
bogdanm | 66:9c8f0e3462fb | 679 | uint8_t RESERVED8[27];//Reserved |
bogdanm | 66:9c8f0e3462fb | 680 | __IO uint8_t RS485CTRL; |
bogdanm | 66:9c8f0e3462fb | 681 | uint8_t RESERVED9[3];//Reserved |
bogdanm | 66:9c8f0e3462fb | 682 | __IO uint8_t ADRMATCH; |
bogdanm | 66:9c8f0e3462fb | 683 | uint8_t RESERVED10[3];//Reserved |
bogdanm | 66:9c8f0e3462fb | 684 | __IO uint8_t RS485DLY; |
bogdanm | 66:9c8f0e3462fb | 685 | uint8_t RESERVED11[3];//Reserved |
bogdanm | 66:9c8f0e3462fb | 686 | __I uint8_t FIFOLVL; |
bogdanm | 66:9c8f0e3462fb | 687 | }LPC_UART_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 688 | #endif |
bogdanm | 66:9c8f0e3462fb | 689 | |
bogdanm | 66:9c8f0e3462fb | 690 | |
bogdanm | 66:9c8f0e3462fb | 691 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 692 | { |
bogdanm | 66:9c8f0e3462fb | 693 | union { |
bogdanm | 66:9c8f0e3462fb | 694 | __I uint8_t RBR; |
bogdanm | 66:9c8f0e3462fb | 695 | __O uint8_t THR; |
bogdanm | 66:9c8f0e3462fb | 696 | __IO uint8_t DLL; |
bogdanm | 66:9c8f0e3462fb | 697 | uint32_t RESERVED0; |
bogdanm | 66:9c8f0e3462fb | 698 | }; |
bogdanm | 66:9c8f0e3462fb | 699 | union { |
bogdanm | 66:9c8f0e3462fb | 700 | __IO uint8_t DLM; |
bogdanm | 66:9c8f0e3462fb | 701 | __IO uint32_t IER; |
bogdanm | 66:9c8f0e3462fb | 702 | }; |
bogdanm | 66:9c8f0e3462fb | 703 | union { |
bogdanm | 66:9c8f0e3462fb | 704 | __I uint32_t IIR; |
bogdanm | 66:9c8f0e3462fb | 705 | __O uint8_t FCR; |
bogdanm | 66:9c8f0e3462fb | 706 | }; |
bogdanm | 66:9c8f0e3462fb | 707 | __IO uint8_t LCR; |
bogdanm | 66:9c8f0e3462fb | 708 | uint8_t RESERVED1[3]; |
bogdanm | 66:9c8f0e3462fb | 709 | __IO uint8_t MCR; |
bogdanm | 66:9c8f0e3462fb | 710 | uint8_t RESERVED2[3]; |
bogdanm | 66:9c8f0e3462fb | 711 | __I uint8_t LSR; |
bogdanm | 66:9c8f0e3462fb | 712 | uint8_t RESERVED3[3]; |
bogdanm | 66:9c8f0e3462fb | 713 | __I uint8_t MSR; |
bogdanm | 66:9c8f0e3462fb | 714 | uint8_t RESERVED4[3]; |
bogdanm | 66:9c8f0e3462fb | 715 | __IO uint8_t SCR; |
bogdanm | 66:9c8f0e3462fb | 716 | uint8_t RESERVED5[3]; |
bogdanm | 66:9c8f0e3462fb | 717 | __IO uint32_t ACR; |
bogdanm | 66:9c8f0e3462fb | 718 | uint32_t RESERVED6; |
bogdanm | 66:9c8f0e3462fb | 719 | __IO uint32_t FDR; |
bogdanm | 66:9c8f0e3462fb | 720 | uint32_t RESERVED7; |
bogdanm | 66:9c8f0e3462fb | 721 | __IO uint8_t TER; |
bogdanm | 66:9c8f0e3462fb | 722 | uint8_t RESERVED8[27]; |
bogdanm | 66:9c8f0e3462fb | 723 | __IO uint8_t RS485CTRL; |
bogdanm | 66:9c8f0e3462fb | 724 | uint8_t RESERVED9[3]; |
bogdanm | 66:9c8f0e3462fb | 725 | __IO uint8_t ADRMATCH; |
bogdanm | 66:9c8f0e3462fb | 726 | uint8_t RESERVED10[3]; |
bogdanm | 66:9c8f0e3462fb | 727 | __IO uint8_t RS485DLY; |
bogdanm | 66:9c8f0e3462fb | 728 | uint8_t RESERVED11[3]; |
bogdanm | 66:9c8f0e3462fb | 729 | __I uint8_t FIFOLVL; |
bogdanm | 66:9c8f0e3462fb | 730 | } LPC_UART1_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 731 | |
bogdanm | 66:9c8f0e3462fb | 732 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 733 | { |
bogdanm | 66:9c8f0e3462fb | 734 | union { |
bogdanm | 66:9c8f0e3462fb | 735 | __I uint32_t RBR; /*!< Offset: 0x000 Receiver Buffer Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 736 | __O uint32_t THR; /*!< Offset: 0x000 Transmit Holding Register ( /W) */ |
bogdanm | 66:9c8f0e3462fb | 737 | __IO uint32_t DLL; /*!< Offset: 0x000 Divisor Latch LSB (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 738 | }; |
bogdanm | 66:9c8f0e3462fb | 739 | union { |
bogdanm | 66:9c8f0e3462fb | 740 | __IO uint32_t DLM; /*!< Offset: 0x004 Divisor Latch MSB (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 741 | __IO uint32_t IER; /*!< Offset: 0x000 Interrupt Enable Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 742 | }; |
bogdanm | 66:9c8f0e3462fb | 743 | union { |
bogdanm | 66:9c8f0e3462fb | 744 | __I uint32_t IIR; /*!< Offset: 0x008 Interrupt ID Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 745 | __O uint32_t FCR; /*!< Offset: 0x008 FIFO Control Register ( /W) */ |
bogdanm | 66:9c8f0e3462fb | 746 | }; |
bogdanm | 66:9c8f0e3462fb | 747 | __IO uint32_t LCR; /*!< Offset: 0x00C Line Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 748 | __IO uint32_t MCR; /*!< Offset: 0x010 Modem control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 749 | __I uint32_t LSR; /*!< Offset: 0x014 Line Status Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 750 | __I uint32_t MSR; /*!< Offset: 0x018 Modem status Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 751 | __IO uint32_t SCR; /*!< Offset: 0x01C Scratch Pad Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 752 | __IO uint32_t ACR; /*!< Offset: 0x020 Auto-baud Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 753 | __IO uint32_t ICR; /*!< Offset: 0x024 irDA Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 754 | __IO uint32_t FDR; /*!< Offset: 0x028 Fractional Divider Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 755 | __IO uint32_t OSR; /*!< Offset: 0x02C Over sampling Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 756 | __O uint32_t POP; /*!< Offset: 0x030 NHP Pop Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 757 | __IO uint32_t MODE; /*!< Offset: 0x034 NHP Mode selection Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 758 | uint32_t RESERVED0[2]; |
bogdanm | 66:9c8f0e3462fb | 759 | __IO uint32_t HDEN; /*!< Offset: 0x040 Half duplex Enable Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 760 | uint32_t RESERVED1; |
bogdanm | 66:9c8f0e3462fb | 761 | __IO uint32_t SCI_CTRL; /*!< Offset: 0x048 Smart card Interface Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 762 | __IO uint32_t RS485CTRL; /*!< Offset: 0x04C RS-485/EIA-485 Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 763 | __IO uint32_t ADRMATCH; /*!< Offset: 0x050 RS-485/EIA-485 address match Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 764 | __IO uint32_t RS485DLY; /*!< Offset: 0x054 RS-485/EIA-485 direction control delay Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 765 | __IO uint32_t SYNCCTRL; /*!< Offset: 0x058 Synchronous Mode Control Register (R/W ) */ |
bogdanm | 66:9c8f0e3462fb | 766 | __IO uint32_t TER; /*!< Offset: 0x05C Transmit Enable Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 767 | uint32_t RESERVED2[989]; |
bogdanm | 66:9c8f0e3462fb | 768 | __I uint32_t CFG; /*!< Offset: 0xFD4 Configuration Register (R) */ |
bogdanm | 66:9c8f0e3462fb | 769 | __O uint32_t INTCE; /*!< Offset: 0xFD8 Interrupt Clear Enable Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 770 | __O uint32_t INTSE; /*!< Offset: 0xFDC Interrupt Set Enable Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 771 | __I uint32_t INTS; /*!< Offset: 0xFE0 Interrupt Status Register (R) */ |
bogdanm | 66:9c8f0e3462fb | 772 | __I uint32_t INTE; /*!< Offset: 0xFE4 Interrupt Enable Register (R) */ |
bogdanm | 66:9c8f0e3462fb | 773 | __O uint32_t INTCS; /*!< Offset: 0xFE8 Interrupt Clear Status Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 774 | __O uint32_t INTSS; /*!< Offset: 0xFEC Interrupt Set Status Register (W) */ |
bogdanm | 66:9c8f0e3462fb | 775 | uint32_t RESERVED3[3]; |
bogdanm | 66:9c8f0e3462fb | 776 | __I uint32_t MID; /*!< Offset: 0xFFC Module Identification Register (R) */ |
bogdanm | 66:9c8f0e3462fb | 777 | } LPC_UART4_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 778 | /*------------- Inter-Integrated Circuit (I2C) -------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 779 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 780 | { |
bogdanm | 66:9c8f0e3462fb | 781 | __IO uint32_t CONSET; /*!< Offset: 0x000 I2C Control Set Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 782 | __I uint32_t STAT; /*!< Offset: 0x004 I2C Status Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 783 | __IO uint32_t DAT; /*!< Offset: 0x008 I2C Data Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 784 | __IO uint32_t ADR0; /*!< Offset: 0x00C I2C Slave Address Register 0 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 785 | __IO uint32_t SCLH; /*!< Offset: 0x010 SCH Duty Cycle Register High Half Word (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 786 | __IO uint32_t SCLL; /*!< Offset: 0x014 SCL Duty Cycle Register Low Half Word (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 787 | __O uint32_t CONCLR; /*!< Offset: 0x018 I2C Control Clear Register ( /W) */ |
bogdanm | 66:9c8f0e3462fb | 788 | __IO uint32_t MMCTRL; /*!< Offset: 0x01C Monitor mode control register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 789 | __IO uint32_t ADR1; /*!< Offset: 0x020 I2C Slave Address Register 1 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 790 | __IO uint32_t ADR2; /*!< Offset: 0x024 I2C Slave Address Register 2 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 791 | __IO uint32_t ADR3; /*!< Offset: 0x028 I2C Slave Address Register 3 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 792 | __I uint32_t DATA_BUFFER; /*!< Offset: 0x02C Data buffer register ( /W) */ |
bogdanm | 66:9c8f0e3462fb | 793 | __IO uint32_t MASK0; /*!< Offset: 0x030 I2C Slave address mask register 0 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 794 | __IO uint32_t MASK1; /*!< Offset: 0x034 I2C Slave address mask register 1 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 795 | __IO uint32_t MASK2; /*!< Offset: 0x038 I2C Slave address mask register 2 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 796 | __IO uint32_t MASK3; /*!< Offset: 0x03C I2C Slave address mask register 3 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 797 | } LPC_I2C_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 798 | |
bogdanm | 66:9c8f0e3462fb | 799 | /*------------- Real-Time Clock (RTC) ----------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 800 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 801 | { |
bogdanm | 66:9c8f0e3462fb | 802 | __IO uint8_t ILR; |
bogdanm | 66:9c8f0e3462fb | 803 | uint8_t RESERVED0[7]; |
bogdanm | 66:9c8f0e3462fb | 804 | __IO uint8_t CCR; |
bogdanm | 66:9c8f0e3462fb | 805 | uint8_t RESERVED1[3]; |
bogdanm | 66:9c8f0e3462fb | 806 | __IO uint8_t CIIR; |
bogdanm | 66:9c8f0e3462fb | 807 | uint8_t RESERVED2[3]; |
bogdanm | 66:9c8f0e3462fb | 808 | __IO uint8_t AMR; |
bogdanm | 66:9c8f0e3462fb | 809 | uint8_t RESERVED3[3]; |
bogdanm | 66:9c8f0e3462fb | 810 | __I uint32_t CTIME0; |
bogdanm | 66:9c8f0e3462fb | 811 | __I uint32_t CTIME1; |
bogdanm | 66:9c8f0e3462fb | 812 | __I uint32_t CTIME2; |
bogdanm | 66:9c8f0e3462fb | 813 | __IO uint8_t SEC; |
bogdanm | 66:9c8f0e3462fb | 814 | uint8_t RESERVED4[3]; |
bogdanm | 66:9c8f0e3462fb | 815 | __IO uint8_t MIN; |
bogdanm | 66:9c8f0e3462fb | 816 | uint8_t RESERVED5[3]; |
bogdanm | 66:9c8f0e3462fb | 817 | __IO uint8_t HOUR; |
bogdanm | 66:9c8f0e3462fb | 818 | uint8_t RESERVED6[3]; |
bogdanm | 66:9c8f0e3462fb | 819 | __IO uint8_t DOM; |
bogdanm | 66:9c8f0e3462fb | 820 | uint8_t RESERVED7[3]; |
bogdanm | 66:9c8f0e3462fb | 821 | __IO uint8_t DOW; |
bogdanm | 66:9c8f0e3462fb | 822 | uint8_t RESERVED8[3]; |
bogdanm | 66:9c8f0e3462fb | 823 | __IO uint16_t DOY; |
bogdanm | 66:9c8f0e3462fb | 824 | uint16_t RESERVED9; |
bogdanm | 66:9c8f0e3462fb | 825 | __IO uint8_t MONTH; |
bogdanm | 66:9c8f0e3462fb | 826 | uint8_t RESERVED10[3]; |
bogdanm | 66:9c8f0e3462fb | 827 | __IO uint16_t YEAR; |
bogdanm | 66:9c8f0e3462fb | 828 | uint16_t RESERVED11; |
bogdanm | 66:9c8f0e3462fb | 829 | __IO uint32_t CALIBRATION; |
bogdanm | 66:9c8f0e3462fb | 830 | __IO uint32_t GPREG0; |
bogdanm | 66:9c8f0e3462fb | 831 | __IO uint32_t GPREG1; |
bogdanm | 66:9c8f0e3462fb | 832 | __IO uint32_t GPREG2; |
bogdanm | 66:9c8f0e3462fb | 833 | __IO uint32_t GPREG3; |
bogdanm | 66:9c8f0e3462fb | 834 | __IO uint32_t GPREG4; |
bogdanm | 66:9c8f0e3462fb | 835 | __IO uint8_t RTC_AUXEN; |
bogdanm | 66:9c8f0e3462fb | 836 | uint8_t RESERVED12[3]; |
bogdanm | 66:9c8f0e3462fb | 837 | __IO uint8_t RTC_AUX; |
bogdanm | 66:9c8f0e3462fb | 838 | uint8_t RESERVED13[3]; |
bogdanm | 66:9c8f0e3462fb | 839 | __IO uint8_t ALSEC; |
bogdanm | 66:9c8f0e3462fb | 840 | uint8_t RESERVED14[3]; |
bogdanm | 66:9c8f0e3462fb | 841 | __IO uint8_t ALMIN; |
bogdanm | 66:9c8f0e3462fb | 842 | uint8_t RESERVED15[3]; |
bogdanm | 66:9c8f0e3462fb | 843 | __IO uint8_t ALHOUR; |
bogdanm | 66:9c8f0e3462fb | 844 | uint8_t RESERVED16[3]; |
bogdanm | 66:9c8f0e3462fb | 845 | __IO uint8_t ALDOM; |
bogdanm | 66:9c8f0e3462fb | 846 | uint8_t RESERVED17[3]; |
bogdanm | 66:9c8f0e3462fb | 847 | __IO uint8_t ALDOW; |
bogdanm | 66:9c8f0e3462fb | 848 | uint8_t RESERVED18[3]; |
bogdanm | 66:9c8f0e3462fb | 849 | __IO uint16_t ALDOY; |
bogdanm | 66:9c8f0e3462fb | 850 | uint16_t RESERVED19; |
bogdanm | 66:9c8f0e3462fb | 851 | __IO uint8_t ALMON; |
bogdanm | 66:9c8f0e3462fb | 852 | uint8_t RESERVED20[3]; |
bogdanm | 66:9c8f0e3462fb | 853 | __IO uint16_t ALYEAR; |
bogdanm | 66:9c8f0e3462fb | 854 | uint16_t RESERVED21; |
bogdanm | 66:9c8f0e3462fb | 855 | __IO uint32_t ERSTATUS; |
bogdanm | 66:9c8f0e3462fb | 856 | __IO uint32_t ERCONTROL; |
bogdanm | 66:9c8f0e3462fb | 857 | __IO uint32_t ERCOUNTERS; |
bogdanm | 66:9c8f0e3462fb | 858 | uint32_t RESERVED22; |
bogdanm | 66:9c8f0e3462fb | 859 | __IO uint32_t ERFIRSTSTAMP0; |
bogdanm | 66:9c8f0e3462fb | 860 | __IO uint32_t ERFIRSTSTAMP1; |
bogdanm | 66:9c8f0e3462fb | 861 | __IO uint32_t ERFIRSTSTAMP2; |
bogdanm | 66:9c8f0e3462fb | 862 | uint32_t RESERVED23; |
bogdanm | 66:9c8f0e3462fb | 863 | __IO uint32_t ERLASTSTAMP0; |
bogdanm | 66:9c8f0e3462fb | 864 | __IO uint32_t ERLASTSTAMP1; |
bogdanm | 66:9c8f0e3462fb | 865 | __IO uint32_t ERLASTSTAMP2; |
bogdanm | 66:9c8f0e3462fb | 866 | } LPC_RTC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 867 | |
bogdanm | 66:9c8f0e3462fb | 868 | |
bogdanm | 66:9c8f0e3462fb | 869 | |
bogdanm | 66:9c8f0e3462fb | 870 | /*------------- Pin Connect Block (PINCON) -----------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 871 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 872 | { |
bogdanm | 66:9c8f0e3462fb | 873 | __IO uint32_t P0_0; /* 0x000 */ |
bogdanm | 66:9c8f0e3462fb | 874 | __IO uint32_t P0_1; |
bogdanm | 66:9c8f0e3462fb | 875 | __IO uint32_t P0_2; |
bogdanm | 66:9c8f0e3462fb | 876 | __IO uint32_t P0_3; |
bogdanm | 66:9c8f0e3462fb | 877 | __IO uint32_t P0_4; |
bogdanm | 66:9c8f0e3462fb | 878 | __IO uint32_t P0_5; |
bogdanm | 66:9c8f0e3462fb | 879 | __IO uint32_t P0_6; |
bogdanm | 66:9c8f0e3462fb | 880 | __IO uint32_t P0_7; |
bogdanm | 66:9c8f0e3462fb | 881 | |
bogdanm | 66:9c8f0e3462fb | 882 | __IO uint32_t P0_8; /* 0x020 */ |
bogdanm | 66:9c8f0e3462fb | 883 | __IO uint32_t P0_9; |
bogdanm | 66:9c8f0e3462fb | 884 | __IO uint32_t P0_10; |
bogdanm | 66:9c8f0e3462fb | 885 | __IO uint32_t P0_11; |
bogdanm | 66:9c8f0e3462fb | 886 | __IO uint32_t P0_12; |
bogdanm | 66:9c8f0e3462fb | 887 | __IO uint32_t P0_13; |
bogdanm | 66:9c8f0e3462fb | 888 | __IO uint32_t P0_14; |
bogdanm | 66:9c8f0e3462fb | 889 | __IO uint32_t P0_15; |
bogdanm | 66:9c8f0e3462fb | 890 | |
bogdanm | 66:9c8f0e3462fb | 891 | __IO uint32_t P0_16; /* 0x040 */ |
bogdanm | 66:9c8f0e3462fb | 892 | __IO uint32_t P0_17; |
bogdanm | 66:9c8f0e3462fb | 893 | __IO uint32_t P0_18; |
bogdanm | 66:9c8f0e3462fb | 894 | __IO uint32_t P0_19; |
bogdanm | 66:9c8f0e3462fb | 895 | __IO uint32_t P0_20; |
bogdanm | 66:9c8f0e3462fb | 896 | __IO uint32_t P0_21; |
bogdanm | 66:9c8f0e3462fb | 897 | __IO uint32_t P0_22; |
bogdanm | 66:9c8f0e3462fb | 898 | __IO uint32_t P0_23; |
bogdanm | 66:9c8f0e3462fb | 899 | |
bogdanm | 66:9c8f0e3462fb | 900 | __IO uint32_t P0_24; /* 0x060 */ |
bogdanm | 66:9c8f0e3462fb | 901 | __IO uint32_t P0_25; |
bogdanm | 66:9c8f0e3462fb | 902 | __IO uint32_t P0_26; |
bogdanm | 66:9c8f0e3462fb | 903 | __IO uint32_t P0_27; |
bogdanm | 66:9c8f0e3462fb | 904 | __IO uint32_t P0_28; |
bogdanm | 66:9c8f0e3462fb | 905 | __IO uint32_t P0_29; |
bogdanm | 66:9c8f0e3462fb | 906 | __IO uint32_t P0_30; |
bogdanm | 66:9c8f0e3462fb | 907 | __IO uint32_t P0_31; |
bogdanm | 66:9c8f0e3462fb | 908 | |
bogdanm | 66:9c8f0e3462fb | 909 | __IO uint32_t P1_0; /* 0x080 */ |
bogdanm | 66:9c8f0e3462fb | 910 | __IO uint32_t P1_1; |
bogdanm | 66:9c8f0e3462fb | 911 | __IO uint32_t P1_2; |
bogdanm | 66:9c8f0e3462fb | 912 | __IO uint32_t P1_3; |
bogdanm | 66:9c8f0e3462fb | 913 | __IO uint32_t P1_4; |
bogdanm | 66:9c8f0e3462fb | 914 | __IO uint32_t P1_5; |
bogdanm | 66:9c8f0e3462fb | 915 | __IO uint32_t P1_6; |
bogdanm | 66:9c8f0e3462fb | 916 | __IO uint32_t P1_7; |
bogdanm | 66:9c8f0e3462fb | 917 | |
bogdanm | 66:9c8f0e3462fb | 918 | __IO uint32_t P1_8; /* 0x0A0 */ |
bogdanm | 66:9c8f0e3462fb | 919 | __IO uint32_t P1_9; |
bogdanm | 66:9c8f0e3462fb | 920 | __IO uint32_t P1_10; |
bogdanm | 66:9c8f0e3462fb | 921 | __IO uint32_t P1_11; |
bogdanm | 66:9c8f0e3462fb | 922 | __IO uint32_t P1_12; |
bogdanm | 66:9c8f0e3462fb | 923 | __IO uint32_t P1_13; |
bogdanm | 66:9c8f0e3462fb | 924 | __IO uint32_t P1_14; |
bogdanm | 66:9c8f0e3462fb | 925 | __IO uint32_t P1_15; |
bogdanm | 66:9c8f0e3462fb | 926 | |
bogdanm | 66:9c8f0e3462fb | 927 | __IO uint32_t P1_16; /* 0x0C0 */ |
bogdanm | 66:9c8f0e3462fb | 928 | __IO uint32_t P1_17; |
bogdanm | 66:9c8f0e3462fb | 929 | __IO uint32_t P1_18; |
bogdanm | 66:9c8f0e3462fb | 930 | __IO uint32_t P1_19; |
bogdanm | 66:9c8f0e3462fb | 931 | __IO uint32_t P1_20; |
bogdanm | 66:9c8f0e3462fb | 932 | __IO uint32_t P1_21; |
bogdanm | 66:9c8f0e3462fb | 933 | __IO uint32_t P1_22; |
bogdanm | 66:9c8f0e3462fb | 934 | __IO uint32_t P1_23; |
bogdanm | 66:9c8f0e3462fb | 935 | |
bogdanm | 66:9c8f0e3462fb | 936 | __IO uint32_t P1_24; /* 0x0E0 */ |
bogdanm | 66:9c8f0e3462fb | 937 | __IO uint32_t P1_25; |
bogdanm | 66:9c8f0e3462fb | 938 | __IO uint32_t P1_26; |
bogdanm | 66:9c8f0e3462fb | 939 | __IO uint32_t P1_27; |
bogdanm | 66:9c8f0e3462fb | 940 | __IO uint32_t P1_28; |
bogdanm | 66:9c8f0e3462fb | 941 | __IO uint32_t P1_29; |
bogdanm | 66:9c8f0e3462fb | 942 | __IO uint32_t P1_30; |
bogdanm | 66:9c8f0e3462fb | 943 | __IO uint32_t P1_31; |
bogdanm | 66:9c8f0e3462fb | 944 | |
bogdanm | 66:9c8f0e3462fb | 945 | __IO uint32_t P2_0; /* 0x100 */ |
bogdanm | 66:9c8f0e3462fb | 946 | __IO uint32_t P2_1; |
bogdanm | 66:9c8f0e3462fb | 947 | __IO uint32_t P2_2; |
bogdanm | 66:9c8f0e3462fb | 948 | __IO uint32_t P2_3; |
bogdanm | 66:9c8f0e3462fb | 949 | __IO uint32_t P2_4; |
bogdanm | 66:9c8f0e3462fb | 950 | __IO uint32_t P2_5; |
bogdanm | 66:9c8f0e3462fb | 951 | __IO uint32_t P2_6; |
bogdanm | 66:9c8f0e3462fb | 952 | __IO uint32_t P2_7; |
bogdanm | 66:9c8f0e3462fb | 953 | |
bogdanm | 66:9c8f0e3462fb | 954 | __IO uint32_t P2_8; /* 0x120 */ |
bogdanm | 66:9c8f0e3462fb | 955 | __IO uint32_t P2_9; |
bogdanm | 66:9c8f0e3462fb | 956 | __IO uint32_t P2_10; |
bogdanm | 66:9c8f0e3462fb | 957 | __IO uint32_t P2_11; |
bogdanm | 66:9c8f0e3462fb | 958 | __IO uint32_t P2_12; |
bogdanm | 66:9c8f0e3462fb | 959 | __IO uint32_t P2_13; |
bogdanm | 66:9c8f0e3462fb | 960 | __IO uint32_t P2_14; |
bogdanm | 66:9c8f0e3462fb | 961 | __IO uint32_t P2_15; |
bogdanm | 66:9c8f0e3462fb | 962 | |
bogdanm | 66:9c8f0e3462fb | 963 | __IO uint32_t P2_16; /* 0x140 */ |
bogdanm | 66:9c8f0e3462fb | 964 | __IO uint32_t P2_17; |
bogdanm | 66:9c8f0e3462fb | 965 | __IO uint32_t P2_18; |
bogdanm | 66:9c8f0e3462fb | 966 | __IO uint32_t P2_19; |
bogdanm | 66:9c8f0e3462fb | 967 | __IO uint32_t P2_20; |
bogdanm | 66:9c8f0e3462fb | 968 | __IO uint32_t P2_21; |
bogdanm | 66:9c8f0e3462fb | 969 | __IO uint32_t P2_22; |
bogdanm | 66:9c8f0e3462fb | 970 | __IO uint32_t P2_23; |
bogdanm | 66:9c8f0e3462fb | 971 | |
bogdanm | 66:9c8f0e3462fb | 972 | __IO uint32_t P2_24; /* 0x160 */ |
bogdanm | 66:9c8f0e3462fb | 973 | __IO uint32_t P2_25; |
bogdanm | 66:9c8f0e3462fb | 974 | __IO uint32_t P2_26; |
bogdanm | 66:9c8f0e3462fb | 975 | __IO uint32_t P2_27; |
bogdanm | 66:9c8f0e3462fb | 976 | __IO uint32_t P2_28; |
bogdanm | 66:9c8f0e3462fb | 977 | __IO uint32_t P2_29; |
bogdanm | 66:9c8f0e3462fb | 978 | __IO uint32_t P2_30; |
bogdanm | 66:9c8f0e3462fb | 979 | __IO uint32_t P2_31; |
bogdanm | 66:9c8f0e3462fb | 980 | |
bogdanm | 66:9c8f0e3462fb | 981 | __IO uint32_t P3_0; /* 0x180 */ |
bogdanm | 66:9c8f0e3462fb | 982 | __IO uint32_t P3_1; |
bogdanm | 66:9c8f0e3462fb | 983 | __IO uint32_t P3_2; |
bogdanm | 66:9c8f0e3462fb | 984 | __IO uint32_t P3_3; |
bogdanm | 66:9c8f0e3462fb | 985 | __IO uint32_t P3_4; |
bogdanm | 66:9c8f0e3462fb | 986 | __IO uint32_t P3_5; |
bogdanm | 66:9c8f0e3462fb | 987 | __IO uint32_t P3_6; |
bogdanm | 66:9c8f0e3462fb | 988 | __IO uint32_t P3_7; |
bogdanm | 66:9c8f0e3462fb | 989 | |
bogdanm | 66:9c8f0e3462fb | 990 | __IO uint32_t P3_8; /* 0x1A0 */ |
bogdanm | 66:9c8f0e3462fb | 991 | __IO uint32_t P3_9; |
bogdanm | 66:9c8f0e3462fb | 992 | __IO uint32_t P3_10; |
bogdanm | 66:9c8f0e3462fb | 993 | __IO uint32_t P3_11; |
bogdanm | 66:9c8f0e3462fb | 994 | __IO uint32_t P3_12; |
bogdanm | 66:9c8f0e3462fb | 995 | __IO uint32_t P3_13; |
bogdanm | 66:9c8f0e3462fb | 996 | __IO uint32_t P3_14; |
bogdanm | 66:9c8f0e3462fb | 997 | __IO uint32_t P3_15; |
bogdanm | 66:9c8f0e3462fb | 998 | |
bogdanm | 66:9c8f0e3462fb | 999 | __IO uint32_t P3_16; /* 0x1C0 */ |
bogdanm | 66:9c8f0e3462fb | 1000 | __IO uint32_t P3_17; |
bogdanm | 66:9c8f0e3462fb | 1001 | __IO uint32_t P3_18; |
bogdanm | 66:9c8f0e3462fb | 1002 | __IO uint32_t P3_19; |
bogdanm | 66:9c8f0e3462fb | 1003 | __IO uint32_t P3_20; |
bogdanm | 66:9c8f0e3462fb | 1004 | __IO uint32_t P3_21; |
bogdanm | 66:9c8f0e3462fb | 1005 | __IO uint32_t P3_22; |
bogdanm | 66:9c8f0e3462fb | 1006 | __IO uint32_t P3_23; |
bogdanm | 66:9c8f0e3462fb | 1007 | |
bogdanm | 66:9c8f0e3462fb | 1008 | __IO uint32_t P3_24; /* 0x1E0 */ |
bogdanm | 66:9c8f0e3462fb | 1009 | __IO uint32_t P3_25; |
bogdanm | 66:9c8f0e3462fb | 1010 | __IO uint32_t P3_26; |
bogdanm | 66:9c8f0e3462fb | 1011 | __IO uint32_t P3_27; |
bogdanm | 66:9c8f0e3462fb | 1012 | __IO uint32_t P3_28; |
bogdanm | 66:9c8f0e3462fb | 1013 | __IO uint32_t P3_29; |
bogdanm | 66:9c8f0e3462fb | 1014 | __IO uint32_t P3_30; |
bogdanm | 66:9c8f0e3462fb | 1015 | __IO uint32_t P3_31; |
bogdanm | 66:9c8f0e3462fb | 1016 | |
bogdanm | 66:9c8f0e3462fb | 1017 | __IO uint32_t P4_0; /* 0x200 */ |
bogdanm | 66:9c8f0e3462fb | 1018 | __IO uint32_t P4_1; |
bogdanm | 66:9c8f0e3462fb | 1019 | __IO uint32_t P4_2; |
bogdanm | 66:9c8f0e3462fb | 1020 | __IO uint32_t P4_3; |
bogdanm | 66:9c8f0e3462fb | 1021 | __IO uint32_t P4_4; |
bogdanm | 66:9c8f0e3462fb | 1022 | __IO uint32_t P4_5; |
bogdanm | 66:9c8f0e3462fb | 1023 | __IO uint32_t P4_6; |
bogdanm | 66:9c8f0e3462fb | 1024 | __IO uint32_t P4_7; |
bogdanm | 66:9c8f0e3462fb | 1025 | |
bogdanm | 66:9c8f0e3462fb | 1026 | __IO uint32_t P4_8; /* 0x220 */ |
bogdanm | 66:9c8f0e3462fb | 1027 | __IO uint32_t P4_9; |
bogdanm | 66:9c8f0e3462fb | 1028 | __IO uint32_t P4_10; |
bogdanm | 66:9c8f0e3462fb | 1029 | __IO uint32_t P4_11; |
bogdanm | 66:9c8f0e3462fb | 1030 | __IO uint32_t P4_12; |
bogdanm | 66:9c8f0e3462fb | 1031 | __IO uint32_t P4_13; |
bogdanm | 66:9c8f0e3462fb | 1032 | __IO uint32_t P4_14; |
bogdanm | 66:9c8f0e3462fb | 1033 | __IO uint32_t P4_15; |
bogdanm | 66:9c8f0e3462fb | 1034 | |
bogdanm | 66:9c8f0e3462fb | 1035 | __IO uint32_t P4_16; /* 0x240 */ |
bogdanm | 66:9c8f0e3462fb | 1036 | __IO uint32_t P4_17; |
bogdanm | 66:9c8f0e3462fb | 1037 | __IO uint32_t P4_18; |
bogdanm | 66:9c8f0e3462fb | 1038 | __IO uint32_t P4_19; |
bogdanm | 66:9c8f0e3462fb | 1039 | __IO uint32_t P4_20; |
bogdanm | 66:9c8f0e3462fb | 1040 | __IO uint32_t P4_21; |
bogdanm | 66:9c8f0e3462fb | 1041 | __IO uint32_t P4_22; |
bogdanm | 66:9c8f0e3462fb | 1042 | __IO uint32_t P4_23; |
bogdanm | 66:9c8f0e3462fb | 1043 | |
bogdanm | 66:9c8f0e3462fb | 1044 | __IO uint32_t P4_24; /* 0x260 */ |
bogdanm | 66:9c8f0e3462fb | 1045 | __IO uint32_t P4_25; |
bogdanm | 66:9c8f0e3462fb | 1046 | __IO uint32_t P4_26; |
bogdanm | 66:9c8f0e3462fb | 1047 | __IO uint32_t P4_27; |
bogdanm | 66:9c8f0e3462fb | 1048 | __IO uint32_t P4_28; |
bogdanm | 66:9c8f0e3462fb | 1049 | __IO uint32_t P4_29; |
bogdanm | 66:9c8f0e3462fb | 1050 | __IO uint32_t P4_30; |
bogdanm | 66:9c8f0e3462fb | 1051 | __IO uint32_t P4_31; |
bogdanm | 66:9c8f0e3462fb | 1052 | |
bogdanm | 66:9c8f0e3462fb | 1053 | __IO uint32_t P5_0; /* 0x280 */ |
bogdanm | 66:9c8f0e3462fb | 1054 | __IO uint32_t P5_1; |
bogdanm | 66:9c8f0e3462fb | 1055 | __IO uint32_t P5_2; |
bogdanm | 66:9c8f0e3462fb | 1056 | __IO uint32_t P5_3; |
bogdanm | 66:9c8f0e3462fb | 1057 | __IO uint32_t P5_4; /* 0x290 */ |
bogdanm | 66:9c8f0e3462fb | 1058 | } LPC_IOCON_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1059 | |
bogdanm | 66:9c8f0e3462fb | 1060 | |
bogdanm | 66:9c8f0e3462fb | 1061 | |
bogdanm | 66:9c8f0e3462fb | 1062 | |
bogdanm | 66:9c8f0e3462fb | 1063 | |
bogdanm | 66:9c8f0e3462fb | 1064 | |
bogdanm | 66:9c8f0e3462fb | 1065 | /*------------- Synchronous Serial Communication (SSP) -----------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1066 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1067 | { |
bogdanm | 66:9c8f0e3462fb | 1068 | __IO uint32_t CR0; /*!< Offset: 0x000 Control Register 0 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1069 | __IO uint32_t CR1; /*!< Offset: 0x004 Control Register 1 (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1070 | __IO uint32_t DR; /*!< Offset: 0x008 Data Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1071 | __I uint32_t SR; /*!< Offset: 0x00C Status Registe (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 1072 | __IO uint32_t CPSR; /*!< Offset: 0x010 Clock Prescale Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1073 | __IO uint32_t IMSC; /*!< Offset: 0x014 Interrupt Mask Set and Clear Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1074 | __IO uint32_t RIS; /*!< Offset: 0x018 Raw Interrupt Status Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1075 | __IO uint32_t MIS; /*!< Offset: 0x01C Masked Interrupt Status Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1076 | __IO uint32_t ICR; /*!< Offset: 0x020 SSPICR Interrupt Clear Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1077 | __IO uint32_t DMACR; |
bogdanm | 66:9c8f0e3462fb | 1078 | } LPC_SSP_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1079 | |
bogdanm | 66:9c8f0e3462fb | 1080 | /*------------- Analog-to-Digital Converter (ADC) ----------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1081 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1082 | { |
bogdanm | 66:9c8f0e3462fb | 1083 | __IO uint32_t CR; /*!< Offset: 0x000 A/D Control Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1084 | __IO uint32_t GDR; /*!< Offset: 0x004 A/D Global Data Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1085 | uint32_t RESERVED0; |
bogdanm | 66:9c8f0e3462fb | 1086 | __IO uint32_t INTEN; /*!< Offset: 0x00C A/D Interrupt Enable Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1087 | __IO uint32_t DR[8]; /*!< Offset: 0x010-0x02C A/D Channel 0..7 Data Register (R/W) */ |
bogdanm | 66:9c8f0e3462fb | 1088 | __I uint32_t STAT; /*!< Offset: 0x030 A/D Status Register (R/ ) */ |
bogdanm | 66:9c8f0e3462fb | 1089 | __IO uint32_t ADTRM; |
bogdanm | 66:9c8f0e3462fb | 1090 | } LPC_ADC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1091 | |
bogdanm | 66:9c8f0e3462fb | 1092 | /*------------- Controller Area Network (CAN) --------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1093 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1094 | { |
bogdanm | 66:9c8f0e3462fb | 1095 | __IO uint32_t mask[512]; /* ID Masks */ |
bogdanm | 66:9c8f0e3462fb | 1096 | } LPC_CANAF_RAM_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1097 | |
bogdanm | 66:9c8f0e3462fb | 1098 | typedef struct /* Acceptance Filter Registers */ |
bogdanm | 66:9c8f0e3462fb | 1099 | { |
bogdanm | 66:9c8f0e3462fb | 1100 | ///Offset: 0x00000000 - Acceptance Filter Register |
bogdanm | 66:9c8f0e3462fb | 1101 | __IO uint32_t AFMR; |
bogdanm | 66:9c8f0e3462fb | 1102 | |
bogdanm | 66:9c8f0e3462fb | 1103 | ///Offset: 0x00000004 - Standard Frame Individual Start Address Register |
bogdanm | 66:9c8f0e3462fb | 1104 | __IO uint32_t SFF_sa; |
bogdanm | 66:9c8f0e3462fb | 1105 | |
bogdanm | 66:9c8f0e3462fb | 1106 | ///Offset: 0x00000008 - Standard Frame Group Start Address Register |
bogdanm | 66:9c8f0e3462fb | 1107 | __IO uint32_t SFF_GRP_sa; |
bogdanm | 66:9c8f0e3462fb | 1108 | |
bogdanm | 66:9c8f0e3462fb | 1109 | ///Offset: 0x0000000C - Extended Frame Start Address Register |
bogdanm | 66:9c8f0e3462fb | 1110 | __IO uint32_t EFF_sa; |
bogdanm | 66:9c8f0e3462fb | 1111 | |
bogdanm | 66:9c8f0e3462fb | 1112 | ///Offset: 0x00000010 - Extended Frame Group Start Address Register |
bogdanm | 66:9c8f0e3462fb | 1113 | __IO uint32_t EFF_GRP_sa; |
bogdanm | 66:9c8f0e3462fb | 1114 | |
bogdanm | 66:9c8f0e3462fb | 1115 | ///Offset: 0x00000014 - End of AF Tables register |
bogdanm | 66:9c8f0e3462fb | 1116 | __IO uint32_t ENDofTable; |
bogdanm | 66:9c8f0e3462fb | 1117 | |
bogdanm | 66:9c8f0e3462fb | 1118 | ///Offset: 0x00000018 - LUT Error Address register |
bogdanm | 66:9c8f0e3462fb | 1119 | __I uint32_t LUTerrAd; |
bogdanm | 66:9c8f0e3462fb | 1120 | |
bogdanm | 66:9c8f0e3462fb | 1121 | ///Offset: 0x0000001C - LUT Error Register |
bogdanm | 66:9c8f0e3462fb | 1122 | __I uint32_t LUTerr; |
bogdanm | 66:9c8f0e3462fb | 1123 | |
bogdanm | 66:9c8f0e3462fb | 1124 | ///Offset: 0x00000020 - CAN Central Transmit Status Register |
bogdanm | 66:9c8f0e3462fb | 1125 | __IO uint32_t FCANIE; |
bogdanm | 66:9c8f0e3462fb | 1126 | |
bogdanm | 66:9c8f0e3462fb | 1127 | ///Offset: 0x00000024 - FullCAN Interrupt and Capture registers 0 |
bogdanm | 66:9c8f0e3462fb | 1128 | __IO uint32_t FCANIC0; |
bogdanm | 66:9c8f0e3462fb | 1129 | |
bogdanm | 66:9c8f0e3462fb | 1130 | ///Offset: 0x00000028 - FullCAN Interrupt and Capture registers 1 |
bogdanm | 66:9c8f0e3462fb | 1131 | __IO uint32_t FCANIC1; |
bogdanm | 66:9c8f0e3462fb | 1132 | } LPC_CANAF_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1133 | |
bogdanm | 66:9c8f0e3462fb | 1134 | typedef struct /* Central Registers */ |
bogdanm | 66:9c8f0e3462fb | 1135 | { |
bogdanm | 66:9c8f0e3462fb | 1136 | __I uint32_t TxSR; |
bogdanm | 66:9c8f0e3462fb | 1137 | __I uint32_t RxSR; |
bogdanm | 66:9c8f0e3462fb | 1138 | __I uint32_t MSR; |
bogdanm | 66:9c8f0e3462fb | 1139 | } LPC_CANCR_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1140 | |
bogdanm | 66:9c8f0e3462fb | 1141 | typedef struct /* Controller Registers */ |
bogdanm | 66:9c8f0e3462fb | 1142 | { |
bogdanm | 66:9c8f0e3462fb | 1143 | ///Offset: 0x00000000 - Controls the operating mode of the CAN Controller |
bogdanm | 66:9c8f0e3462fb | 1144 | __IO uint32_t MOD; |
bogdanm | 66:9c8f0e3462fb | 1145 | |
bogdanm | 66:9c8f0e3462fb | 1146 | ///Offset: 0x00000004 - Command bits that affect the state |
bogdanm | 66:9c8f0e3462fb | 1147 | __O uint32_t CMR; |
bogdanm | 66:9c8f0e3462fb | 1148 | |
bogdanm | 66:9c8f0e3462fb | 1149 | ///Offset: 0x00000008 - Global Controller Status and Error Counters |
bogdanm | 66:9c8f0e3462fb | 1150 | __IO uint32_t GSR; |
bogdanm | 66:9c8f0e3462fb | 1151 | |
bogdanm | 66:9c8f0e3462fb | 1152 | ///Offset: 0x0000000C - Interrupt status, Arbitration Lost Capture, Error Code Capture |
bogdanm | 66:9c8f0e3462fb | 1153 | __I uint32_t ICR; |
bogdanm | 66:9c8f0e3462fb | 1154 | |
bogdanm | 66:9c8f0e3462fb | 1155 | ///Offset: 0x00000010 - Interrupt Enable Register |
bogdanm | 66:9c8f0e3462fb | 1156 | __IO uint32_t IER; |
bogdanm | 66:9c8f0e3462fb | 1157 | |
bogdanm | 66:9c8f0e3462fb | 1158 | ///Offset: 0x00000014 - Bus Timing Register |
bogdanm | 66:9c8f0e3462fb | 1159 | __IO uint32_t BTR; |
bogdanm | 66:9c8f0e3462fb | 1160 | |
bogdanm | 66:9c8f0e3462fb | 1161 | ///Offset: 0x00000018 - Error Warning Limit |
bogdanm | 66:9c8f0e3462fb | 1162 | __IO uint32_t EWL; |
bogdanm | 66:9c8f0e3462fb | 1163 | |
bogdanm | 66:9c8f0e3462fb | 1164 | ///Offset: 0x0000001C - Status Register |
bogdanm | 66:9c8f0e3462fb | 1165 | __I uint32_t SR; |
bogdanm | 66:9c8f0e3462fb | 1166 | |
bogdanm | 66:9c8f0e3462fb | 1167 | ///Offset: 0x00000020 - Receive frame status |
bogdanm | 66:9c8f0e3462fb | 1168 | __IO uint32_t RFS; |
bogdanm | 66:9c8f0e3462fb | 1169 | |
bogdanm | 66:9c8f0e3462fb | 1170 | ///Offset: 0x00000024 - Received Identifier |
bogdanm | 66:9c8f0e3462fb | 1171 | __IO uint32_t RID; |
bogdanm | 66:9c8f0e3462fb | 1172 | |
bogdanm | 66:9c8f0e3462fb | 1173 | ///Offset: 0x00000028 - Received data bytes 1-4 |
bogdanm | 66:9c8f0e3462fb | 1174 | __IO uint32_t RDA; |
bogdanm | 66:9c8f0e3462fb | 1175 | |
bogdanm | 66:9c8f0e3462fb | 1176 | ///Offset: 0x0000002C - Received data bytes 5-8 |
bogdanm | 66:9c8f0e3462fb | 1177 | __IO uint32_t RDB; |
bogdanm | 66:9c8f0e3462fb | 1178 | |
bogdanm | 66:9c8f0e3462fb | 1179 | ///Offset: 0x00000030 - Transmit frame info (Tx Buffer 1) |
bogdanm | 66:9c8f0e3462fb | 1180 | __IO uint32_t TFI1; |
bogdanm | 66:9c8f0e3462fb | 1181 | |
bogdanm | 66:9c8f0e3462fb | 1182 | ///Offset: 0x00000034 - Transmit Identifier (Tx Buffer 1) |
bogdanm | 66:9c8f0e3462fb | 1183 | __IO uint32_t TID1; |
bogdanm | 66:9c8f0e3462fb | 1184 | |
bogdanm | 66:9c8f0e3462fb | 1185 | ///Offset: 0x00000038 - Transmit data bytes 1-4 (Tx Buffer 1) |
bogdanm | 66:9c8f0e3462fb | 1186 | __IO uint32_t TDA1; |
bogdanm | 66:9c8f0e3462fb | 1187 | |
bogdanm | 66:9c8f0e3462fb | 1188 | ///Offset: 0x0000003C - Transmit data bytes 5-8 (Tx Buffer 1) |
bogdanm | 66:9c8f0e3462fb | 1189 | __IO uint32_t TDB1; |
bogdanm | 66:9c8f0e3462fb | 1190 | |
bogdanm | 66:9c8f0e3462fb | 1191 | ///Offset: 0x00000040 - Transmit frame info (Tx Buffer 2) |
bogdanm | 66:9c8f0e3462fb | 1192 | __IO uint32_t TFI2; |
bogdanm | 66:9c8f0e3462fb | 1193 | |
bogdanm | 66:9c8f0e3462fb | 1194 | ///Offset: 0x00000044 - Transmit Identifier (Tx Buffer 2) |
bogdanm | 66:9c8f0e3462fb | 1195 | __IO uint32_t TID2; |
bogdanm | 66:9c8f0e3462fb | 1196 | |
bogdanm | 66:9c8f0e3462fb | 1197 | ///Offset: 0x00000048 - Transmit data bytes 1-4 (Tx Buffer 2) |
bogdanm | 66:9c8f0e3462fb | 1198 | __IO uint32_t TDA2; |
bogdanm | 66:9c8f0e3462fb | 1199 | |
bogdanm | 66:9c8f0e3462fb | 1200 | ///Offset: 0x0000004C - Transmit data bytes 5-8 (Tx Buffer 2) |
bogdanm | 66:9c8f0e3462fb | 1201 | __IO uint32_t TDB2; |
bogdanm | 66:9c8f0e3462fb | 1202 | |
bogdanm | 66:9c8f0e3462fb | 1203 | ///Offset: 0x00000050 - Transmit frame info (Tx Buffer 3) |
bogdanm | 66:9c8f0e3462fb | 1204 | __IO uint32_t TFI3; |
bogdanm | 66:9c8f0e3462fb | 1205 | |
bogdanm | 66:9c8f0e3462fb | 1206 | ///Offset: 0x00000054 - Transmit Identifier (Tx Buffer 3) |
bogdanm | 66:9c8f0e3462fb | 1207 | __IO uint32_t TID3; |
bogdanm | 66:9c8f0e3462fb | 1208 | |
bogdanm | 66:9c8f0e3462fb | 1209 | ///Offset: 0x00000058 - Transmit data bytes 1-4 (Tx Buffer 3) |
bogdanm | 66:9c8f0e3462fb | 1210 | __IO uint32_t TDA3; |
bogdanm | 66:9c8f0e3462fb | 1211 | |
bogdanm | 66:9c8f0e3462fb | 1212 | ///Offset: 0x0000005C - Transmit data bytes 5-8 (Tx Buffer 3) |
bogdanm | 66:9c8f0e3462fb | 1213 | __IO uint32_t TDB3; |
bogdanm | 66:9c8f0e3462fb | 1214 | } LPC_CAN_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1215 | |
bogdanm | 66:9c8f0e3462fb | 1216 | /*------------- Digital-to-Analog Converter (DAC) ----------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1217 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1218 | { |
bogdanm | 66:9c8f0e3462fb | 1219 | __IO uint32_t CR; |
bogdanm | 66:9c8f0e3462fb | 1220 | __IO uint32_t CTRL; |
bogdanm | 66:9c8f0e3462fb | 1221 | __IO uint32_t CNTVAL; |
bogdanm | 66:9c8f0e3462fb | 1222 | } LPC_DAC_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1223 | |
bogdanm | 66:9c8f0e3462fb | 1224 | |
bogdanm | 66:9c8f0e3462fb | 1225 | /*------------- Inter IC Sound (I2S) -----------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1226 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1227 | { |
bogdanm | 66:9c8f0e3462fb | 1228 | __IO uint32_t DAO; |
bogdanm | 66:9c8f0e3462fb | 1229 | __IO uint32_t DAI; |
bogdanm | 66:9c8f0e3462fb | 1230 | __O uint32_t TXFIFO; |
bogdanm | 66:9c8f0e3462fb | 1231 | __I uint32_t RXFIFO; |
bogdanm | 66:9c8f0e3462fb | 1232 | __I uint32_t STATE; |
bogdanm | 66:9c8f0e3462fb | 1233 | __IO uint32_t DMA1; |
bogdanm | 66:9c8f0e3462fb | 1234 | __IO uint32_t DMA2; |
bogdanm | 66:9c8f0e3462fb | 1235 | __IO uint32_t IRQ; |
bogdanm | 66:9c8f0e3462fb | 1236 | __IO uint32_t TXRATE; |
bogdanm | 66:9c8f0e3462fb | 1237 | __IO uint32_t RXRATE; |
bogdanm | 66:9c8f0e3462fb | 1238 | __IO uint32_t TXBITRATE; |
bogdanm | 66:9c8f0e3462fb | 1239 | __IO uint32_t RXBITRATE; |
bogdanm | 66:9c8f0e3462fb | 1240 | __IO uint32_t TXMODE; |
bogdanm | 66:9c8f0e3462fb | 1241 | __IO uint32_t RXMODE; |
bogdanm | 66:9c8f0e3462fb | 1242 | } LPC_I2S_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1243 | |
bogdanm | 66:9c8f0e3462fb | 1244 | |
bogdanm | 66:9c8f0e3462fb | 1245 | |
bogdanm | 66:9c8f0e3462fb | 1246 | |
bogdanm | 66:9c8f0e3462fb | 1247 | |
bogdanm | 66:9c8f0e3462fb | 1248 | |
bogdanm | 66:9c8f0e3462fb | 1249 | /*------------- Motor Control Pulse-Width Modulation (MCPWM) -----------------*/ |
bogdanm | 66:9c8f0e3462fb | 1250 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1251 | { |
bogdanm | 66:9c8f0e3462fb | 1252 | __I uint32_t CON; |
bogdanm | 66:9c8f0e3462fb | 1253 | __O uint32_t CON_SET; |
bogdanm | 66:9c8f0e3462fb | 1254 | __O uint32_t CON_CLR; |
bogdanm | 66:9c8f0e3462fb | 1255 | __I uint32_t CAPCON; |
bogdanm | 66:9c8f0e3462fb | 1256 | __O uint32_t CAPCON_SET; |
bogdanm | 66:9c8f0e3462fb | 1257 | __O uint32_t CAPCON_CLR; |
bogdanm | 66:9c8f0e3462fb | 1258 | __IO uint32_t TC0; |
bogdanm | 66:9c8f0e3462fb | 1259 | __IO uint32_t TC1; |
bogdanm | 66:9c8f0e3462fb | 1260 | __IO uint32_t TC2; |
bogdanm | 66:9c8f0e3462fb | 1261 | __IO uint32_t LIM0; |
bogdanm | 66:9c8f0e3462fb | 1262 | __IO uint32_t LIM1; |
bogdanm | 66:9c8f0e3462fb | 1263 | __IO uint32_t LIM2; |
bogdanm | 66:9c8f0e3462fb | 1264 | __IO uint32_t MAT0; |
bogdanm | 66:9c8f0e3462fb | 1265 | __IO uint32_t MAT1; |
bogdanm | 66:9c8f0e3462fb | 1266 | __IO uint32_t MAT2; |
bogdanm | 66:9c8f0e3462fb | 1267 | __IO uint32_t DT; |
bogdanm | 66:9c8f0e3462fb | 1268 | __IO uint32_t CP; |
bogdanm | 66:9c8f0e3462fb | 1269 | __IO uint32_t CAP0; |
bogdanm | 66:9c8f0e3462fb | 1270 | __IO uint32_t CAP1; |
bogdanm | 66:9c8f0e3462fb | 1271 | __IO uint32_t CAP2; |
bogdanm | 66:9c8f0e3462fb | 1272 | __I uint32_t INTEN; |
bogdanm | 66:9c8f0e3462fb | 1273 | __O uint32_t INTEN_SET; |
bogdanm | 66:9c8f0e3462fb | 1274 | __O uint32_t INTEN_CLR; |
bogdanm | 66:9c8f0e3462fb | 1275 | __I uint32_t CNTCON; |
bogdanm | 66:9c8f0e3462fb | 1276 | __O uint32_t CNTCON_SET; |
bogdanm | 66:9c8f0e3462fb | 1277 | __O uint32_t CNTCON_CLR; |
bogdanm | 66:9c8f0e3462fb | 1278 | __I uint32_t INTF; |
bogdanm | 66:9c8f0e3462fb | 1279 | __O uint32_t INTF_SET; |
bogdanm | 66:9c8f0e3462fb | 1280 | __O uint32_t INTF_CLR; |
bogdanm | 66:9c8f0e3462fb | 1281 | __O uint32_t CAP_CLR; |
bogdanm | 66:9c8f0e3462fb | 1282 | } LPC_MCPWM_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1283 | |
bogdanm | 66:9c8f0e3462fb | 1284 | /*------------- Quadrature Encoder Interface (QEI) ---------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1285 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1286 | { |
bogdanm | 66:9c8f0e3462fb | 1287 | __O uint32_t CON; |
bogdanm | 66:9c8f0e3462fb | 1288 | __I uint32_t STAT; |
bogdanm | 66:9c8f0e3462fb | 1289 | __IO uint32_t CONF; |
bogdanm | 66:9c8f0e3462fb | 1290 | __I uint32_t POS; |
bogdanm | 66:9c8f0e3462fb | 1291 | __IO uint32_t MAXPOS; |
bogdanm | 66:9c8f0e3462fb | 1292 | __IO uint32_t CMPOS0; |
bogdanm | 66:9c8f0e3462fb | 1293 | __IO uint32_t CMPOS1; |
bogdanm | 66:9c8f0e3462fb | 1294 | __IO uint32_t CMPOS2; |
bogdanm | 66:9c8f0e3462fb | 1295 | __I uint32_t INXCNT; |
bogdanm | 66:9c8f0e3462fb | 1296 | __IO uint32_t INXCMP0; |
bogdanm | 66:9c8f0e3462fb | 1297 | __IO uint32_t LOAD; |
bogdanm | 66:9c8f0e3462fb | 1298 | __I uint32_t TIME; |
bogdanm | 66:9c8f0e3462fb | 1299 | __I uint32_t VEL; |
bogdanm | 66:9c8f0e3462fb | 1300 | __I uint32_t CAP; |
bogdanm | 66:9c8f0e3462fb | 1301 | __IO uint32_t VELCOMP; |
bogdanm | 66:9c8f0e3462fb | 1302 | __IO uint32_t FILTERPHA; |
bogdanm | 66:9c8f0e3462fb | 1303 | __IO uint32_t FILTERPHB; |
bogdanm | 66:9c8f0e3462fb | 1304 | __IO uint32_t FILTERINX; |
bogdanm | 66:9c8f0e3462fb | 1305 | __IO uint32_t WINDOW; |
bogdanm | 66:9c8f0e3462fb | 1306 | __IO uint32_t INXCMP1; |
bogdanm | 66:9c8f0e3462fb | 1307 | __IO uint32_t INXCMP2; |
bogdanm | 66:9c8f0e3462fb | 1308 | uint32_t RESERVED0[993]; |
bogdanm | 66:9c8f0e3462fb | 1309 | __O uint32_t IEC; |
bogdanm | 66:9c8f0e3462fb | 1310 | __O uint32_t IES; |
bogdanm | 66:9c8f0e3462fb | 1311 | __I uint32_t INTSTAT; |
bogdanm | 66:9c8f0e3462fb | 1312 | __I uint32_t IE; |
bogdanm | 66:9c8f0e3462fb | 1313 | __O uint32_t CLR; |
bogdanm | 66:9c8f0e3462fb | 1314 | __O uint32_t SET; |
bogdanm | 66:9c8f0e3462fb | 1315 | } LPC_QEI_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1316 | |
bogdanm | 66:9c8f0e3462fb | 1317 | /*------------- SD/MMC card Interface (MCI)-----------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1318 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1319 | { |
bogdanm | 66:9c8f0e3462fb | 1320 | __IO uint32_t POWER; |
bogdanm | 66:9c8f0e3462fb | 1321 | __IO uint32_t CLOCK; |
bogdanm | 66:9c8f0e3462fb | 1322 | __IO uint32_t ARGUMENT; |
bogdanm | 66:9c8f0e3462fb | 1323 | __IO uint32_t COMMAND; |
bogdanm | 66:9c8f0e3462fb | 1324 | __I uint32_t RESP_CMD; |
bogdanm | 66:9c8f0e3462fb | 1325 | __I uint32_t RESP0; |
bogdanm | 66:9c8f0e3462fb | 1326 | __I uint32_t RESP1; |
bogdanm | 66:9c8f0e3462fb | 1327 | __I uint32_t RESP2; |
bogdanm | 66:9c8f0e3462fb | 1328 | __I uint32_t RESP3; |
bogdanm | 66:9c8f0e3462fb | 1329 | __IO uint32_t DATATMR; |
bogdanm | 66:9c8f0e3462fb | 1330 | __IO uint32_t DATALEN; |
bogdanm | 66:9c8f0e3462fb | 1331 | __IO uint32_t DATACTRL; |
bogdanm | 66:9c8f0e3462fb | 1332 | __I uint32_t DATACNT; |
bogdanm | 66:9c8f0e3462fb | 1333 | __I uint32_t STATUS; |
bogdanm | 66:9c8f0e3462fb | 1334 | __O uint32_t CLEAR; |
bogdanm | 66:9c8f0e3462fb | 1335 | __IO uint32_t MASK0; |
bogdanm | 66:9c8f0e3462fb | 1336 | uint32_t RESERVED0[2]; |
bogdanm | 66:9c8f0e3462fb | 1337 | __I uint32_t FIFOCNT; |
bogdanm | 66:9c8f0e3462fb | 1338 | uint32_t RESERVED1[13]; |
bogdanm | 66:9c8f0e3462fb | 1339 | __IO uint32_t FIFO[16]; |
bogdanm | 66:9c8f0e3462fb | 1340 | } LPC_MCI_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1341 | |
bogdanm | 66:9c8f0e3462fb | 1342 | |
bogdanm | 66:9c8f0e3462fb | 1343 | |
bogdanm | 66:9c8f0e3462fb | 1344 | |
bogdanm | 66:9c8f0e3462fb | 1345 | |
bogdanm | 66:9c8f0e3462fb | 1346 | |
bogdanm | 66:9c8f0e3462fb | 1347 | |
bogdanm | 66:9c8f0e3462fb | 1348 | |
bogdanm | 66:9c8f0e3462fb | 1349 | |
bogdanm | 66:9c8f0e3462fb | 1350 | |
bogdanm | 66:9c8f0e3462fb | 1351 | /*------------- EEPROM Controller (EEPROM) -----------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1352 | typedef struct |
bogdanm | 66:9c8f0e3462fb | 1353 | { |
bogdanm | 66:9c8f0e3462fb | 1354 | __IO uint32_t CMD; /* 0x0080 */ |
bogdanm | 66:9c8f0e3462fb | 1355 | __IO uint32_t ADDR; |
bogdanm | 66:9c8f0e3462fb | 1356 | __IO uint32_t WDATA; |
bogdanm | 66:9c8f0e3462fb | 1357 | __IO uint32_t RDATA; |
bogdanm | 66:9c8f0e3462fb | 1358 | __IO uint32_t WSTATE; /* 0x0090 */ |
bogdanm | 66:9c8f0e3462fb | 1359 | __IO uint32_t CLKDIV; |
bogdanm | 66:9c8f0e3462fb | 1360 | __IO uint32_t PWRDWN; /* 0x0098 */ |
bogdanm | 66:9c8f0e3462fb | 1361 | uint32_t RESERVED0[975]; |
bogdanm | 66:9c8f0e3462fb | 1362 | __IO uint32_t INT_CLR_ENABLE; /* 0x0FD8 */ |
bogdanm | 66:9c8f0e3462fb | 1363 | __IO uint32_t INT_SET_ENABLE; |
bogdanm | 66:9c8f0e3462fb | 1364 | __IO uint32_t INT_STATUS; /* 0x0FE0 */ |
bogdanm | 66:9c8f0e3462fb | 1365 | __IO uint32_t INT_ENABLE; |
bogdanm | 66:9c8f0e3462fb | 1366 | __IO uint32_t INT_CLR_STATUS; |
bogdanm | 66:9c8f0e3462fb | 1367 | __IO uint32_t INT_SET_STATUS; |
bogdanm | 66:9c8f0e3462fb | 1368 | } LPC_EEPROM_TypeDef; |
bogdanm | 66:9c8f0e3462fb | 1369 | |
bogdanm | 66:9c8f0e3462fb | 1370 | |
bogdanm | 66:9c8f0e3462fb | 1371 | /*------------- COMPARATOR ----------------------------------------------------*/ |
bogdanm | 66:9c8f0e3462fb | 1372 | |
bogdanm | 66:9c8f0e3462fb | 1373 | typedef struct { /*!< (@ 0x40020000) COMPARATOR Structure */ |
bogdanm | 66:9c8f0e3462fb | 1374 | __IO uint32_t CTRL; /*!< (@ 0x40020000) Comparator block control register */ |
bogdanm | 66:9c8f0e3462fb | 1375 | __IO uint32_t CTRL0; /*!< (@ 0x40020004) Comparator 0 control register */ |
bogdanm | 66:9c8f0e3462fb | 1376 | __IO uint32_t CTRL1; /*!< (@ 0x40020008) Comparator 1 control register */ |
bogdanm | 66:9c8f0e3462fb | 1377 | } LPC_COMPARATOR_Type; |
bogdanm | 66:9c8f0e3462fb | 1378 | |
bogdanm | 66:9c8f0e3462fb | 1379 | |
bogdanm | 66:9c8f0e3462fb | 1380 | #if defined ( __CC_ARM ) |
bogdanm | 66:9c8f0e3462fb | 1381 | #pragma no_anon_unions |
bogdanm | 66:9c8f0e3462fb | 1382 | #endif |
bogdanm | 66:9c8f0e3462fb | 1383 | |
bogdanm | 66:9c8f0e3462fb | 1384 | /******************************************************************************/ |
bogdanm | 66:9c8f0e3462fb | 1385 | /* Peripheral memory map */ |
bogdanm | 66:9c8f0e3462fb | 1386 | /******************************************************************************/ |
bogdanm | 66:9c8f0e3462fb | 1387 | /* Base addresses */ |
bogdanm | 66:9c8f0e3462fb | 1388 | #define LPC_FLASH_BASE (0x00000000UL) |
bogdanm | 66:9c8f0e3462fb | 1389 | #define LPC_RAM_BASE (0x10000000UL) |
bogdanm | 66:9c8f0e3462fb | 1390 | #define LPC_PERI_RAM_BASE (0x20000000UL) |
bogdanm | 66:9c8f0e3462fb | 1391 | #define LPC_APB0_BASE (0x40000000UL) |
bogdanm | 66:9c8f0e3462fb | 1392 | #define LPC_APB1_BASE (0x40080000UL) |
bogdanm | 66:9c8f0e3462fb | 1393 | #define LPC_AHBRAM1_BASE (0x20004000UL) |
bogdanm | 66:9c8f0e3462fb | 1394 | #define LPC_AHB_BASE (0x20080000UL) |
bogdanm | 66:9c8f0e3462fb | 1395 | #define LPC_CM3_BASE (0xE0000000UL) |
bogdanm | 66:9c8f0e3462fb | 1396 | |
bogdanm | 66:9c8f0e3462fb | 1397 | /* APB0 peripherals */ |
bogdanm | 66:9c8f0e3462fb | 1398 | #define LPC_WDT_BASE (LPC_APB0_BASE + 0x00000) |
bogdanm | 66:9c8f0e3462fb | 1399 | #define LPC_TIM0_BASE (LPC_APB0_BASE + 0x04000) |
bogdanm | 66:9c8f0e3462fb | 1400 | #define LPC_TIM1_BASE (LPC_APB0_BASE + 0x08000) |
bogdanm | 66:9c8f0e3462fb | 1401 | #define LPC_UART0_BASE (LPC_APB0_BASE + 0x0C000) |
bogdanm | 66:9c8f0e3462fb | 1402 | #define LPC_UART1_BASE (LPC_APB0_BASE + 0x10000) |
bogdanm | 66:9c8f0e3462fb | 1403 | #define LPC_PWM0_BASE (LPC_APB0_BASE + 0x14000) |
bogdanm | 66:9c8f0e3462fb | 1404 | #define LPC_PWM1_BASE (LPC_APB0_BASE + 0x18000) |
bogdanm | 66:9c8f0e3462fb | 1405 | #define LPC_I2C0_BASE (LPC_APB0_BASE + 0x1C000) |
bogdanm | 66:9c8f0e3462fb | 1406 | #define LPC_COMPARATOR_BASE (LPC_APB0_BASE + 0x20000) |
bogdanm | 66:9c8f0e3462fb | 1407 | #define LPC_RTC_BASE (LPC_APB0_BASE + 0x24000) |
bogdanm | 66:9c8f0e3462fb | 1408 | #define LPC_GPIOINT_BASE (LPC_APB0_BASE + 0x28080) |
bogdanm | 66:9c8f0e3462fb | 1409 | #define LPC_IOCON_BASE (LPC_APB0_BASE + 0x2C000) |
bogdanm | 66:9c8f0e3462fb | 1410 | #define LPC_SSP1_BASE (LPC_APB0_BASE + 0x30000) |
bogdanm | 66:9c8f0e3462fb | 1411 | #define LPC_ADC_BASE (LPC_APB0_BASE + 0x34000) |
bogdanm | 66:9c8f0e3462fb | 1412 | #define LPC_CANAF_RAM_BASE (LPC_APB0_BASE + 0x38000) |
bogdanm | 66:9c8f0e3462fb | 1413 | #define LPC_CANAF_BASE (LPC_APB0_BASE + 0x3C000) |
bogdanm | 66:9c8f0e3462fb | 1414 | #define LPC_CANCR_BASE (LPC_APB0_BASE + 0x40000) |
bogdanm | 66:9c8f0e3462fb | 1415 | #define LPC_CAN1_BASE (LPC_APB0_BASE + 0x44000) |
bogdanm | 66:9c8f0e3462fb | 1416 | #define LPC_CAN2_BASE (LPC_APB0_BASE + 0x48000) |
bogdanm | 66:9c8f0e3462fb | 1417 | #define LPC_I2C1_BASE (LPC_APB0_BASE + 0x5C000) |
bogdanm | 66:9c8f0e3462fb | 1418 | |
bogdanm | 66:9c8f0e3462fb | 1419 | /* APB1 peripherals */ |
bogdanm | 66:9c8f0e3462fb | 1420 | #define LPC_SSP0_BASE (LPC_APB1_BASE + 0x08000) |
bogdanm | 66:9c8f0e3462fb | 1421 | #define LPC_DAC_BASE (LPC_APB1_BASE + 0x0C000) |
bogdanm | 66:9c8f0e3462fb | 1422 | #define LPC_TIM2_BASE (LPC_APB1_BASE + 0x10000) |
bogdanm | 66:9c8f0e3462fb | 1423 | #define LPC_TIM3_BASE (LPC_APB1_BASE + 0x14000) |
bogdanm | 66:9c8f0e3462fb | 1424 | #define LPC_UART2_BASE (LPC_APB1_BASE + 0x18000) |
bogdanm | 66:9c8f0e3462fb | 1425 | #define LPC_UART3_BASE (LPC_APB1_BASE + 0x1C000) |
bogdanm | 66:9c8f0e3462fb | 1426 | #define LPC_I2C2_BASE (LPC_APB1_BASE + 0x20000) |
bogdanm | 66:9c8f0e3462fb | 1427 | #define LPC_UART4_BASE (LPC_APB1_BASE + 0x24000) |
bogdanm | 66:9c8f0e3462fb | 1428 | #define LPC_I2S_BASE (LPC_APB1_BASE + 0x28000) |
bogdanm | 66:9c8f0e3462fb | 1429 | #define LPC_SSP2_BASE (LPC_APB1_BASE + 0x2C000) |
bogdanm | 66:9c8f0e3462fb | 1430 | #define LPC_MCPWM_BASE (LPC_APB1_BASE + 0x38000) |
bogdanm | 66:9c8f0e3462fb | 1431 | #define LPC_QEI_BASE (LPC_APB1_BASE + 0x3C000) |
bogdanm | 66:9c8f0e3462fb | 1432 | #define LPC_MCI_BASE (LPC_APB1_BASE + 0x40000) |
bogdanm | 66:9c8f0e3462fb | 1433 | #define LPC_SC_BASE (LPC_APB1_BASE + 0x7C000) |
bogdanm | 66:9c8f0e3462fb | 1434 | |
bogdanm | 66:9c8f0e3462fb | 1435 | /* AHB peripherals */ |
bogdanm | 66:9c8f0e3462fb | 1436 | #define LPC_GPDMA_BASE (LPC_AHB_BASE + 0x00000) |
bogdanm | 66:9c8f0e3462fb | 1437 | #define LPC_GPDMACH0_BASE (LPC_AHB_BASE + 0x00100) |
bogdanm | 66:9c8f0e3462fb | 1438 | #define LPC_GPDMACH1_BASE (LPC_AHB_BASE + 0x00120) |
bogdanm | 66:9c8f0e3462fb | 1439 | #define LPC_GPDMACH2_BASE (LPC_AHB_BASE + 0x00140) |
bogdanm | 66:9c8f0e3462fb | 1440 | #define LPC_GPDMACH3_BASE (LPC_AHB_BASE + 0x00160) |
bogdanm | 66:9c8f0e3462fb | 1441 | #define LPC_GPDMACH4_BASE (LPC_AHB_BASE + 0x00180) |
bogdanm | 66:9c8f0e3462fb | 1442 | #define LPC_GPDMACH5_BASE (LPC_AHB_BASE + 0x001A0) |
bogdanm | 66:9c8f0e3462fb | 1443 | #define LPC_GPDMACH6_BASE (LPC_AHB_BASE + 0x001C0) |
bogdanm | 66:9c8f0e3462fb | 1444 | #define LPC_GPDMACH7_BASE (LPC_AHB_BASE + 0x001E0) |
bogdanm | 66:9c8f0e3462fb | 1445 | #define LPC_EMAC_BASE (LPC_AHB_BASE + 0x04000) |
bogdanm | 66:9c8f0e3462fb | 1446 | #define LPC_LCD_BASE (LPC_AHB_BASE + 0x08000) |
bogdanm | 66:9c8f0e3462fb | 1447 | #define LPC_USB_BASE (LPC_AHB_BASE + 0x0C000) |
bogdanm | 66:9c8f0e3462fb | 1448 | #define LPC_CRC_BASE (LPC_AHB_BASE + 0x10000) |
bogdanm | 66:9c8f0e3462fb | 1449 | #define LPC_GPIO0_BASE (LPC_AHB_BASE + 0x18000) |
bogdanm | 66:9c8f0e3462fb | 1450 | #define LPC_GPIO1_BASE (LPC_AHB_BASE + 0x18020) |
bogdanm | 66:9c8f0e3462fb | 1451 | #define LPC_GPIO2_BASE (LPC_AHB_BASE + 0x18040) |
bogdanm | 66:9c8f0e3462fb | 1452 | #define LPC_GPIO3_BASE (LPC_AHB_BASE + 0x18060) |
bogdanm | 66:9c8f0e3462fb | 1453 | #define LPC_GPIO4_BASE (LPC_AHB_BASE + 0x18080) |
bogdanm | 66:9c8f0e3462fb | 1454 | #define LPC_GPIO5_BASE (LPC_AHB_BASE + 0x180A0) |
bogdanm | 66:9c8f0e3462fb | 1455 | #define LPC_EMC_BASE (LPC_AHB_BASE + 0x1C000) |
bogdanm | 66:9c8f0e3462fb | 1456 | |
bogdanm | 66:9c8f0e3462fb | 1457 | #define LPC_EEPROM_BASE (LPC_FLASH_BASE+ 0x200080) |
bogdanm | 66:9c8f0e3462fb | 1458 | |
bogdanm | 66:9c8f0e3462fb | 1459 | |
bogdanm | 66:9c8f0e3462fb | 1460 | /******************************************************************************/ |
bogdanm | 66:9c8f0e3462fb | 1461 | /* Peripheral declaration */ |
bogdanm | 66:9c8f0e3462fb | 1462 | /******************************************************************************/ |
bogdanm | 66:9c8f0e3462fb | 1463 | #define LPC_SC ((LPC_SC_TypeDef *) LPC_SC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1464 | #define LPC_WDT ((LPC_WDT_TypeDef *) LPC_WDT_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1465 | #define LPC_TIM0 ((LPC_TIM_TypeDef *) LPC_TIM0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1466 | #define LPC_TIM1 ((LPC_TIM_TypeDef *) LPC_TIM1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1467 | #define LPC_TIM2 ((LPC_TIM_TypeDef *) LPC_TIM2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1468 | #define LPC_TIM3 ((LPC_TIM_TypeDef *) LPC_TIM3_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1469 | #define LPC_UART0 ((LPC_UART_TypeDef *) LPC_UART0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1470 | #define LPC_UART1 ((LPC_UART1_TypeDef *) LPC_UART1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1471 | #define LPC_UART2 ((LPC_UART_TypeDef *) LPC_UART2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1472 | #define LPC_UART3 ((LPC_UART_TypeDef *) LPC_UART3_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1473 | #define LPC_UART4 ((LPC_UART4_TypeDef *) LPC_UART4_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1474 | #define LPC_PWM0 ((LPC_PWM_TypeDef *) LPC_PWM0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1475 | #define LPC_PWM1 ((LPC_PWM_TypeDef *) LPC_PWM1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1476 | #define LPC_I2C0 ((LPC_I2C_TypeDef *) LPC_I2C0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1477 | #define LPC_I2C1 ((LPC_I2C_TypeDef *) LPC_I2C1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1478 | #define LPC_I2C2 ((LPC_I2C_TypeDef *) LPC_I2C2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1479 | #define LPC_I2S ((LPC_I2S_TypeDef *) LPC_I2S_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1480 | #define LPC_COMPARATOR ((LPC_COMPARATOR_Type *) LPC_COMPARATOR_BASE) |
bogdanm | 66:9c8f0e3462fb | 1481 | #define LPC_RTC ((LPC_RTC_TypeDef *) LPC_RTC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1482 | #define LPC_GPIOINT ((LPC_GPIOINT_TypeDef *) LPC_GPIOINT_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1483 | #define LPC_IOCON ((LPC_IOCON_TypeDef *) LPC_IOCON_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1484 | #define LPC_SSP0 ((LPC_SSP_TypeDef *) LPC_SSP0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1485 | #define LPC_SSP1 ((LPC_SSP_TypeDef *) LPC_SSP1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1486 | #define LPC_SSP2 ((LPC_SSP_TypeDef *) LPC_SSP2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1487 | #define LPC_ADC ((LPC_ADC_TypeDef *) LPC_ADC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1488 | #define LPC_DAC ((LPC_DAC_TypeDef *) LPC_DAC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1489 | #define LPC_CANAF_RAM ((LPC_CANAF_RAM_TypeDef *) LPC_CANAF_RAM_BASE) |
bogdanm | 66:9c8f0e3462fb | 1490 | #define LPC_CANAF ((LPC_CANAF_TypeDef *) LPC_CANAF_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1491 | #define LPC_CANCR ((LPC_CANCR_TypeDef *) LPC_CANCR_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1492 | #define LPC_CAN1 ((LPC_CAN_TypeDef *) LPC_CAN1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1493 | #define LPC_CAN2 ((LPC_CAN_TypeDef *) LPC_CAN2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1494 | #define LPC_MCPWM ((LPC_MCPWM_TypeDef *) LPC_MCPWM_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1495 | #define LPC_QEI ((LPC_QEI_TypeDef *) LPC_QEI_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1496 | #define LPC_MCI ((LPC_MCI_TypeDef *) LPC_MCI_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1497 | #define LPC_GPDMA ((LPC_GPDMA_TypeDef *) LPC_GPDMA_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1498 | #define LPC_GPDMACH0 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1499 | #define LPC_GPDMACH1 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1500 | #define LPC_GPDMACH2 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1501 | #define LPC_GPDMACH3 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH3_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1502 | #define LPC_GPDMACH4 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH4_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1503 | #define LPC_GPDMACH5 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH5_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1504 | #define LPC_GPDMACH6 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH6_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1505 | #define LPC_GPDMACH7 ((LPC_GPDMACH_TypeDef *) LPC_GPDMACH7_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1506 | #define LPC_EMAC ((LPC_EMAC_TypeDef *) LPC_EMAC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1507 | #define LPC_LCD ((LPC_LCD_TypeDef *) LPC_LCD_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1508 | #define LPC_USB ((LPC_USB_TypeDef *) LPC_USB_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1509 | #define LPC_GPIO0 ((LPC_GPIO_TypeDef *) LPC_GPIO0_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1510 | #define LPC_GPIO1 ((LPC_GPIO_TypeDef *) LPC_GPIO1_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1511 | #define LPC_GPIO2 ((LPC_GPIO_TypeDef *) LPC_GPIO2_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1512 | #define LPC_GPIO3 ((LPC_GPIO_TypeDef *) LPC_GPIO3_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1513 | #define LPC_GPIO4 ((LPC_GPIO_TypeDef *) LPC_GPIO4_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1514 | #define LPC_GPIO5 ((LPC_GPIO_TypeDef *) LPC_GPIO5_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1515 | #define LPC_EMC ((LPC_EMC_TypeDef *) LPC_EMC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1516 | #define LPC_CRC ((LPC_CRC_TypeDef *) LPC_CRC_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1517 | #define LPC_EEPROM ((LPC_EEPROM_TypeDef *) LPC_EEPROM_BASE ) |
bogdanm | 66:9c8f0e3462fb | 1518 | |
bogdanm | 66:9c8f0e3462fb | 1519 | |
bogdanm | 66:9c8f0e3462fb | 1520 | |
bogdanm | 66:9c8f0e3462fb | 1521 | #endif // __LPC407x_8x_177x_8x_H__ |