The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1
AnnaBridge 171:3a7713b1edbc 2 /****************************************************************************************************//**
AnnaBridge 171:3a7713b1edbc 3 * @file LPC82x.h
AnnaBridge 171:3a7713b1edbc 4 *
AnnaBridge 171:3a7713b1edbc 5 * @brief CMSIS Cortex-M0PLUS Peripheral Access Layer Header File for
AnnaBridge 171:3a7713b1edbc 6 * LPC82x from .
AnnaBridge 171:3a7713b1edbc 7 *
AnnaBridge 171:3a7713b1edbc 8 * @version V0.4
AnnaBridge 171:3a7713b1edbc 9 * @date 17. June 2014
AnnaBridge 171:3a7713b1edbc 10 *
AnnaBridge 171:3a7713b1edbc 11 * @note Generated with SVDConv V2.80
AnnaBridge 171:3a7713b1edbc 12 * from CMSIS SVD File 'LPC82x.svd' Version 0.4,
AnnaBridge 171:3a7713b1edbc 13 *******************************************************************************************************/
AnnaBridge 171:3a7713b1edbc 14
AnnaBridge 171:3a7713b1edbc 15
AnnaBridge 171:3a7713b1edbc 16
AnnaBridge 171:3a7713b1edbc 17 /** @addtogroup (null)
AnnaBridge 171:3a7713b1edbc 18 * @{
AnnaBridge 171:3a7713b1edbc 19 */
AnnaBridge 171:3a7713b1edbc 20
AnnaBridge 171:3a7713b1edbc 21 /** @addtogroup LPC82x
AnnaBridge 171:3a7713b1edbc 22 * @{
AnnaBridge 171:3a7713b1edbc 23 */
AnnaBridge 171:3a7713b1edbc 24
AnnaBridge 171:3a7713b1edbc 25 #ifndef LPC82X_H
AnnaBridge 171:3a7713b1edbc 26 #define LPC82X_H
AnnaBridge 171:3a7713b1edbc 27
AnnaBridge 171:3a7713b1edbc 28 #ifdef __cplusplus
AnnaBridge 171:3a7713b1edbc 29 extern "C" {
AnnaBridge 171:3a7713b1edbc 30 #endif
AnnaBridge 171:3a7713b1edbc 31
AnnaBridge 171:3a7713b1edbc 32
AnnaBridge 171:3a7713b1edbc 33 /* ------------------------- Interrupt Number Definition ------------------------ */
AnnaBridge 171:3a7713b1edbc 34
AnnaBridge 171:3a7713b1edbc 35 typedef enum {
AnnaBridge 171:3a7713b1edbc 36 /* ----------------- Cortex-M0PLUS Processor Exceptions Numbers ----------------- */
AnnaBridge 171:3a7713b1edbc 37 Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
AnnaBridge 171:3a7713b1edbc 38 NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
AnnaBridge 171:3a7713b1edbc 39 HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
AnnaBridge 171:3a7713b1edbc 40 SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
AnnaBridge 171:3a7713b1edbc 41 DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
AnnaBridge 171:3a7713b1edbc 42 PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
AnnaBridge 171:3a7713b1edbc 43 SysTick_IRQn = -1, /*!< 15 System Tick Timer */
AnnaBridge 171:3a7713b1edbc 44 /* ---------------------- LPC82x Specific Interrupt Numbers --------------------- */
AnnaBridge 171:3a7713b1edbc 45 SPI0_IRQn = 0, /*!< 0 SPI0 */
AnnaBridge 171:3a7713b1edbc 46 SPI1_IRQn = 1, /*!< 1 SPI1 */
AnnaBridge 171:3a7713b1edbc 47 UART0_IRQn = 3, /*!< 3 UART0 */
AnnaBridge 171:3a7713b1edbc 48 UART1_IRQn = 4, /*!< 4 UART1 */
AnnaBridge 171:3a7713b1edbc 49 UART2_IRQn = 5, /*!< 5 UART2 */
AnnaBridge 171:3a7713b1edbc 50 I2C1_IRQn = 7, /*!< 7 I2C1 */
AnnaBridge 171:3a7713b1edbc 51 I2C0_IRQn = 8, /*!< 8 I2C0 */
AnnaBridge 171:3a7713b1edbc 52 SCT_IRQn = 9, /*!< 9 SCT */
AnnaBridge 171:3a7713b1edbc 53 MRT_IRQn = 10, /*!< 10 MRT */
AnnaBridge 171:3a7713b1edbc 54 CMP_IRQn = 11, /*!< 11 CMP */
AnnaBridge 171:3a7713b1edbc 55 WDT_IRQn = 12, /*!< 12 WDT */
AnnaBridge 171:3a7713b1edbc 56 BOD_IRQn = 13, /*!< 13 BOD */
AnnaBridge 171:3a7713b1edbc 57 FLASH_IRQn = 14, /*!< 14 FLASH */
AnnaBridge 171:3a7713b1edbc 58 WKT_IRQn = 15, /*!< 15 WKT */
AnnaBridge 171:3a7713b1edbc 59 ADC_SEQA_IRQn = 16, /*!< 16 ADC_SEQA */
AnnaBridge 171:3a7713b1edbc 60 ADC_SEQB_IRQn = 17, /*!< 17 ADC_SEQB */
AnnaBridge 171:3a7713b1edbc 61 ADC_THCMP_IRQn = 18, /*!< 18 ADC_THCMP */
AnnaBridge 171:3a7713b1edbc 62 ADC_OVR_IRQn = 19, /*!< 19 ADC_OVR */
AnnaBridge 171:3a7713b1edbc 63 DMA_IRQn = 20, /*!< 20 DMA */
AnnaBridge 171:3a7713b1edbc 64 I2C2_IRQn = 21, /*!< 21 I2C2 */
AnnaBridge 171:3a7713b1edbc 65 I2C3_IRQn = 22, /*!< 22 I2C3 */
AnnaBridge 171:3a7713b1edbc 66 PIN_INT0_IRQn = 24, /*!< 24 PIN_INT0 */
AnnaBridge 171:3a7713b1edbc 67 PIN_INT1_IRQn = 25, /*!< 25 PIN_INT1 */
AnnaBridge 171:3a7713b1edbc 68 PIN_INT2_IRQn = 26, /*!< 26 PIN_INT2 */
AnnaBridge 171:3a7713b1edbc 69 PIN_INT3_IRQn = 27, /*!< 27 PIN_INT3 */
AnnaBridge 171:3a7713b1edbc 70 PIN_INT4_IRQn = 28, /*!< 28 PIN_INT4 */
AnnaBridge 171:3a7713b1edbc 71 PIN_INT5_IRQn = 29, /*!< 29 PIN_INT5 */
AnnaBridge 171:3a7713b1edbc 72 PIN_INT6_IRQn = 30, /*!< 30 PIN_INT6 */
AnnaBridge 171:3a7713b1edbc 73 PIN_INT7_IRQn = 31 /*!< 31 PIN_INT7 */
AnnaBridge 171:3a7713b1edbc 74 } IRQn_Type;
AnnaBridge 171:3a7713b1edbc 75
AnnaBridge 171:3a7713b1edbc 76
AnnaBridge 171:3a7713b1edbc 77 /** @addtogroup Configuration_of_CMSIS
AnnaBridge 171:3a7713b1edbc 78 * @{
AnnaBridge 171:3a7713b1edbc 79 */
AnnaBridge 171:3a7713b1edbc 80
AnnaBridge 171:3a7713b1edbc 81
AnnaBridge 171:3a7713b1edbc 82 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 83 /* ================ Processor and Core Peripheral Section ================ */
AnnaBridge 171:3a7713b1edbc 84 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 85
AnnaBridge 171:3a7713b1edbc 86 /* ----------------Configuration of the Cortex-M0PLUS Processor and Core Peripherals---------------- */
AnnaBridge 171:3a7713b1edbc 87 #define __CM0PLUS_REV 0x0001 /*!< Cortex-M0PLUS Core Revision */
AnnaBridge 171:3a7713b1edbc 88 #define __MPU_PRESENT 0 /*!< MPU present or not */
AnnaBridge 171:3a7713b1edbc 89 #define __NVIC_PRIO_BITS 2 /*!< Number of Bits used for Priority Levels */
AnnaBridge 171:3a7713b1edbc 90 #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
AnnaBridge 171:3a7713b1edbc 91 #define __VTOR_PRESENT 1 /*!< Set to 1 if CPU supports Vector Table Offset Register */
AnnaBridge 171:3a7713b1edbc 92 /** @} */ /* End of group Configuration_of_CMSIS */
AnnaBridge 171:3a7713b1edbc 93
AnnaBridge 171:3a7713b1edbc 94 #include "core_cm0plus.h" /*!< Cortex-M0PLUS processor and core peripherals */
AnnaBridge 171:3a7713b1edbc 95 #include "system_LPC82x.h" /*!< LPC82x System */
AnnaBridge 171:3a7713b1edbc 96
AnnaBridge 171:3a7713b1edbc 97
AnnaBridge 171:3a7713b1edbc 98 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 99 /* ================ Device Specific Peripheral Section ================ */
AnnaBridge 171:3a7713b1edbc 100 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 101
AnnaBridge 171:3a7713b1edbc 102
AnnaBridge 171:3a7713b1edbc 103 /** @addtogroup Device_Peripheral_Registers
AnnaBridge 171:3a7713b1edbc 104 * @{
AnnaBridge 171:3a7713b1edbc 105 */
AnnaBridge 171:3a7713b1edbc 106
AnnaBridge 171:3a7713b1edbc 107
AnnaBridge 171:3a7713b1edbc 108 /* ------------------- Start of section using anonymous unions ------------------ */
AnnaBridge 171:3a7713b1edbc 109 #if defined(__CC_ARM)
AnnaBridge 171:3a7713b1edbc 110 #pragma push
AnnaBridge 171:3a7713b1edbc 111 #pragma anon_unions
AnnaBridge 171:3a7713b1edbc 112 #elif defined(__ICCARM__)
AnnaBridge 171:3a7713b1edbc 113 #pragma language=extended
AnnaBridge 171:3a7713b1edbc 114 #elif defined(__GNUC__)
AnnaBridge 171:3a7713b1edbc 115 /* anonymous unions are enabled by default */
AnnaBridge 171:3a7713b1edbc 116 #elif defined(__TMS470__)
AnnaBridge 171:3a7713b1edbc 117 /* anonymous unions are enabled by default */
AnnaBridge 171:3a7713b1edbc 118 #elif defined(__TASKING__)
AnnaBridge 171:3a7713b1edbc 119 #pragma warning 586
AnnaBridge 171:3a7713b1edbc 120 #else
AnnaBridge 171:3a7713b1edbc 121 #warning Not supported compiler type
AnnaBridge 171:3a7713b1edbc 122 #endif
AnnaBridge 171:3a7713b1edbc 123
AnnaBridge 171:3a7713b1edbc 124
AnnaBridge 171:3a7713b1edbc 125
AnnaBridge 171:3a7713b1edbc 126 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 127 /* ================ WWDT ================ */
AnnaBridge 171:3a7713b1edbc 128 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 129
AnnaBridge 171:3a7713b1edbc 130
AnnaBridge 171:3a7713b1edbc 131 /**
AnnaBridge 171:3a7713b1edbc 132 * @brief Windowed Watchdog Timer (WWDT) (WWDT)
AnnaBridge 171:3a7713b1edbc 133 */
AnnaBridge 171:3a7713b1edbc 134
AnnaBridge 171:3a7713b1edbc 135 typedef struct { /*!< (@ 0x40000000) WWDT Structure */
AnnaBridge 171:3a7713b1edbc 136 __IO uint32_t MOD; /*!< (@ 0x40000000) Watchdog mode register. This register contains
AnnaBridge 171:3a7713b1edbc 137 the basic mode and status of the Watchdog Timer. */
AnnaBridge 171:3a7713b1edbc 138 __IO uint32_t TC; /*!< (@ 0x40000004) Watchdog timer constant register. This 24-bit
AnnaBridge 171:3a7713b1edbc 139 register determines the time-out value. */
AnnaBridge 171:3a7713b1edbc 140 __O uint32_t FEED; /*!< (@ 0x40000008) Watchdog feed sequence register. Writing 0xAA
AnnaBridge 171:3a7713b1edbc 141 followed by 0x55 to this register reloads the Watchdog timer
AnnaBridge 171:3a7713b1edbc 142 with the value contained in WDTC. */
AnnaBridge 171:3a7713b1edbc 143 __I uint32_t TV; /*!< (@ 0x4000000C) Watchdog timer value register. This 24-bit register
AnnaBridge 171:3a7713b1edbc 144 reads out the current value of the Watchdog timer. */
AnnaBridge 171:3a7713b1edbc 145 __I uint32_t RESERVED0;
AnnaBridge 171:3a7713b1edbc 146 __IO uint32_t WARNINT; /*!< (@ 0x40000014) Watchdog Warning Interrupt compare value. */
AnnaBridge 171:3a7713b1edbc 147 __IO uint32_t WINDOW; /*!< (@ 0x40000018) Watchdog Window compare value. */
AnnaBridge 171:3a7713b1edbc 148 } LPC_WWDT_Type;
AnnaBridge 171:3a7713b1edbc 149
AnnaBridge 171:3a7713b1edbc 150
AnnaBridge 171:3a7713b1edbc 151 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 152 /* ================ MRT ================ */
AnnaBridge 171:3a7713b1edbc 153 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 154
AnnaBridge 171:3a7713b1edbc 155
AnnaBridge 171:3a7713b1edbc 156 /**
AnnaBridge 171:3a7713b1edbc 157 * @brief Multi-Rate Timer (MRT) (MRT)
AnnaBridge 171:3a7713b1edbc 158 */
AnnaBridge 171:3a7713b1edbc 159
AnnaBridge 171:3a7713b1edbc 160 typedef struct { /*!< (@ 0x40004000) MRT Structure */
AnnaBridge 171:3a7713b1edbc 161 __IO uint32_t INTVAL0; /*!< (@ 0x40004000) MRT0 Time interval value register. This value
AnnaBridge 171:3a7713b1edbc 162 is loaded into the TIMER0 register. */
AnnaBridge 171:3a7713b1edbc 163 __I uint32_t TIMER0; /*!< (@ 0x40004004) MRT0 Timer register. This register reads the
AnnaBridge 171:3a7713b1edbc 164 value of the down-counter. */
AnnaBridge 171:3a7713b1edbc 165 __IO uint32_t CTRL0; /*!< (@ 0x40004008) MRT0 Control register. This register controls
AnnaBridge 171:3a7713b1edbc 166 the MRT0 modes. */
AnnaBridge 171:3a7713b1edbc 167 __IO uint32_t STAT0; /*!< (@ 0x4000400C) MRT0 Status register. */
AnnaBridge 171:3a7713b1edbc 168 __IO uint32_t INTVAL1; /*!< (@ 0x40004010) MRT0 Time interval value register. This value
AnnaBridge 171:3a7713b1edbc 169 is loaded into the TIMER0 register. */
AnnaBridge 171:3a7713b1edbc 170 __I uint32_t TIMER1; /*!< (@ 0x40004014) MRT0 Timer register. This register reads the
AnnaBridge 171:3a7713b1edbc 171 value of the down-counter. */
AnnaBridge 171:3a7713b1edbc 172 __IO uint32_t CTRL1; /*!< (@ 0x40004018) MRT0 Control register. This register controls
AnnaBridge 171:3a7713b1edbc 173 the MRT0 modes. */
AnnaBridge 171:3a7713b1edbc 174 __IO uint32_t STAT1; /*!< (@ 0x4000401C) MRT0 Status register. */
AnnaBridge 171:3a7713b1edbc 175 __IO uint32_t INTVAL2; /*!< (@ 0x40004020) MRT0 Time interval value register. This value
AnnaBridge 171:3a7713b1edbc 176 is loaded into the TIMER0 register. */
AnnaBridge 171:3a7713b1edbc 177 __I uint32_t TIMER2; /*!< (@ 0x40004024) MRT0 Timer register. This register reads the
AnnaBridge 171:3a7713b1edbc 178 value of the down-counter. */
AnnaBridge 171:3a7713b1edbc 179 __IO uint32_t CTRL2; /*!< (@ 0x40004028) MRT0 Control register. This register controls
AnnaBridge 171:3a7713b1edbc 180 the MRT0 modes. */
AnnaBridge 171:3a7713b1edbc 181 __IO uint32_t STAT2; /*!< (@ 0x4000402C) MRT0 Status register. */
AnnaBridge 171:3a7713b1edbc 182 __IO uint32_t INTVAL3; /*!< (@ 0x40004030) MRT0 Time interval value register. This value
AnnaBridge 171:3a7713b1edbc 183 is loaded into the TIMER0 register. */
AnnaBridge 171:3a7713b1edbc 184 __I uint32_t TIMER3; /*!< (@ 0x40004034) MRT0 Timer register. This register reads the
AnnaBridge 171:3a7713b1edbc 185 value of the down-counter. */
AnnaBridge 171:3a7713b1edbc 186 __IO uint32_t CTRL3; /*!< (@ 0x40004038) MRT0 Control register. This register controls
AnnaBridge 171:3a7713b1edbc 187 the MRT0 modes. */
AnnaBridge 171:3a7713b1edbc 188 __IO uint32_t STAT3; /*!< (@ 0x4000403C) MRT0 Status register. */
AnnaBridge 171:3a7713b1edbc 189 __I uint32_t RESERVED0[45];
AnnaBridge 171:3a7713b1edbc 190 __I uint32_t IDLE_CH; /*!< (@ 0x400040F4) Idle channel register. This register returns
AnnaBridge 171:3a7713b1edbc 191 the number of the first idle channel. */
AnnaBridge 171:3a7713b1edbc 192 __IO uint32_t IRQ_FLAG; /*!< (@ 0x400040F8) Global interrupt flag register */
AnnaBridge 171:3a7713b1edbc 193 } LPC_MRT_Type;
AnnaBridge 171:3a7713b1edbc 194
AnnaBridge 171:3a7713b1edbc 195
AnnaBridge 171:3a7713b1edbc 196 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 197 /* ================ WKT ================ */
AnnaBridge 171:3a7713b1edbc 198 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 199
AnnaBridge 171:3a7713b1edbc 200
AnnaBridge 171:3a7713b1edbc 201 /**
AnnaBridge 171:3a7713b1edbc 202 * @brief Self wake-up timer (WKT) (WKT)
AnnaBridge 171:3a7713b1edbc 203 */
AnnaBridge 171:3a7713b1edbc 204
AnnaBridge 171:3a7713b1edbc 205 typedef struct { /*!< (@ 0x40008000) WKT Structure */
AnnaBridge 171:3a7713b1edbc 206 __IO uint32_t CTRL; /*!< (@ 0x40008000) Self wake-up timer control register. */
AnnaBridge 171:3a7713b1edbc 207 __I uint32_t RESERVED0[2];
AnnaBridge 171:3a7713b1edbc 208 __IO uint32_t COUNT; /*!< (@ 0x4000800C) Counter register. */
AnnaBridge 171:3a7713b1edbc 209 } LPC_WKT_Type;
AnnaBridge 171:3a7713b1edbc 210
AnnaBridge 171:3a7713b1edbc 211
AnnaBridge 171:3a7713b1edbc 212 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 213 /* ================ SWM ================ */
AnnaBridge 171:3a7713b1edbc 214 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 215
AnnaBridge 171:3a7713b1edbc 216
AnnaBridge 171:3a7713b1edbc 217 /**
AnnaBridge 171:3a7713b1edbc 218 * @brief Switch matrix (SWM) (SWM)
AnnaBridge 171:3a7713b1edbc 219 */
AnnaBridge 171:3a7713b1edbc 220
AnnaBridge 171:3a7713b1edbc 221 typedef struct { /*!< (@ 0x4000C000) SWM Structure */
AnnaBridge 171:3a7713b1edbc 222 union {
AnnaBridge 171:3a7713b1edbc 223 __IO uint32_t PINASSIGN[12];
AnnaBridge 171:3a7713b1edbc 224 struct {
AnnaBridge 171:3a7713b1edbc 225 __IO uint32_t PINASSIGN0; /*!< (@ 0x4000C000) Pin assign register 0. Assign movable functions
AnnaBridge 171:3a7713b1edbc 226 U0_TXD, U0_RXD, U0_RTS, U0_CTS. */
AnnaBridge 171:3a7713b1edbc 227 __IO uint32_t PINASSIGN1; /*!< (@ 0x4000C004) Pin assign register 1. Assign movable functions
AnnaBridge 171:3a7713b1edbc 228 U0_SCLK, U1_TXD, U1_RXD, U1_RTS. */
AnnaBridge 171:3a7713b1edbc 229 __IO uint32_t PINASSIGN2; /*!< (@ 0x4000C008) Pin assign register 2. Assign movable functions
AnnaBridge 171:3a7713b1edbc 230 U1_CTS, U1_SCLK, U2_TXD, U2_RXD. */
AnnaBridge 171:3a7713b1edbc 231 __IO uint32_t PINASSIGN3; /*!< (@ 0x4000C00C) Pin assign register 3. Assign movable function
AnnaBridge 171:3a7713b1edbc 232 U2_RTS, U2_CTS, U2_SCLK, SPI0_SCK. */
AnnaBridge 171:3a7713b1edbc 233 __IO uint32_t PINASSIGN4; /*!< (@ 0x4000C010) Pin assign register 4. Assign movable functions
AnnaBridge 171:3a7713b1edbc 234 SPI0_MOSI, SPI0_MISO, SPI0_SSEL0, SPI0_SSEL1. */
AnnaBridge 171:3a7713b1edbc 235 __IO uint32_t PINASSIGN5; /*!< (@ 0x4000C014) Pin assign register 5. Assign movable functions
AnnaBridge 171:3a7713b1edbc 236 SPI0_SSEL2, SPI0_SSEL3, SPI1_SCK, SPI1_MOSI */
AnnaBridge 171:3a7713b1edbc 237 __IO uint32_t PINASSIGN6; /*!< (@ 0x4000C018) Pin assign register 6. Assign movable functions
AnnaBridge 171:3a7713b1edbc 238 SPI1_MISO, SPI1_SSEL0, SPI1_SSEL1, SCT0_IN0. */
AnnaBridge 171:3a7713b1edbc 239 __IO uint32_t PINASSIGN7; /*!< (@ 0x4000C01C) Pin assign register 7. Assign movable functions
AnnaBridge 171:3a7713b1edbc 240 SCT_IN1, SCT_IN2, SCT_IN3, SCT_OUT0. */
AnnaBridge 171:3a7713b1edbc 241 __IO uint32_t PINASSIGN8; /*!< (@ 0x4000C020) Pin assign register 8. Assign movable functions
AnnaBridge 171:3a7713b1edbc 242 SCT_OUT1, SCT_OUT2, SCT_OUT3, SCT_OUT4. */
AnnaBridge 171:3a7713b1edbc 243 __IO uint32_t PINASSIGN9; /*!< (@ 0x4000C024) Pin assign register 9. Assign movable functions
AnnaBridge 171:3a7713b1edbc 244 SCT_OUT5, I2C1_SDA, I2C1_SCL, I2C2_SDA. */
AnnaBridge 171:3a7713b1edbc 245 __IO uint32_t PINASSIGN10; /*!< (@ 0x4000C028) Pin assign register 10. Assign movable functions
AnnaBridge 171:3a7713b1edbc 246 I2C2_SCL, I2C3_SDA, I2C3_SCL, ADC_PINTRIG0. */
AnnaBridge 171:3a7713b1edbc 247 __IO uint32_t PINASSIGN11; /*!< (@ 0x4000C02C) Pin assign register 11. Assign movable functions
AnnaBridge 171:3a7713b1edbc 248 ADC_PINTRIG1, ACMP_O, CLKOUT, GPIO_INT_BMAT */
AnnaBridge 171:3a7713b1edbc 249 };
AnnaBridge 171:3a7713b1edbc 250 };
AnnaBridge 171:3a7713b1edbc 251 __I uint32_t RESERVED0[100];
AnnaBridge 171:3a7713b1edbc 252 __IO uint32_t PINENABLE0; /*!< (@ 0x4000C1C0) Pin enable register 0. Enables fixed-pin functions
AnnaBridge 171:3a7713b1edbc 253 ACMP_I0, ACMP_I1, SWCLK, SWDIO, XTALIN, XTALOUT, RESET, CLKIN,
AnnaBridge 171:3a7713b1edbc 254 VDDCMP. */
AnnaBridge 171:3a7713b1edbc 255 } LPC_SWM_Type;
AnnaBridge 171:3a7713b1edbc 256
AnnaBridge 171:3a7713b1edbc 257
AnnaBridge 171:3a7713b1edbc 258 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 259 /* ================ ADC ================ */
AnnaBridge 171:3a7713b1edbc 260 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 261
AnnaBridge 171:3a7713b1edbc 262
AnnaBridge 171:3a7713b1edbc 263 /**
AnnaBridge 171:3a7713b1edbc 264 * @brief 12-bit Analog-to-Digital Converter (ADC) (ADC)
AnnaBridge 171:3a7713b1edbc 265 */
AnnaBridge 171:3a7713b1edbc 266
AnnaBridge 171:3a7713b1edbc 267 typedef struct { /*!< (@ 0x4001C000) ADC Structure */
AnnaBridge 171:3a7713b1edbc 268 __IO uint32_t CTRL; /*!< (@ 0x4001C000) A/D Control Register. Contains the clock divide
AnnaBridge 171:3a7713b1edbc 269 value, enable bits for each sequence and the A/D power-down
AnnaBridge 171:3a7713b1edbc 270 bit. */
AnnaBridge 171:3a7713b1edbc 271 __I uint32_t RESERVED0;
AnnaBridge 171:3a7713b1edbc 272 __IO uint32_t SEQA_CTRL; /*!< (@ 0x4001C008) A/D Conversion Sequence-A control Register: Controls
AnnaBridge 171:3a7713b1edbc 273 triggering and channel selection for conversion sequence-A.
AnnaBridge 171:3a7713b1edbc 274 Also specifies interrupt mode for sequence-A. */
AnnaBridge 171:3a7713b1edbc 275 __IO uint32_t SEQB_CTRL; /*!< (@ 0x4001C00C) A/D Conversion Sequence-B Control Register: Controls
AnnaBridge 171:3a7713b1edbc 276 triggering and channel selection for conversion sequence-B.
AnnaBridge 171:3a7713b1edbc 277 Also specifies interrupt mode for sequence-B. */
AnnaBridge 171:3a7713b1edbc 278 __IO uint32_t SEQA_GDAT; /*!< (@ 0x4001C010) A/D Sequence-A Global Data Register. This register
AnnaBridge 171:3a7713b1edbc 279 contains the result of the most recent A/D conversion performed
AnnaBridge 171:3a7713b1edbc 280 under sequence-A */
AnnaBridge 171:3a7713b1edbc 281 __IO uint32_t SEQB_GDAT; /*!< (@ 0x4001C014) A/D Sequence-B Global Data Register. This register
AnnaBridge 171:3a7713b1edbc 282 contains the result of the most recent A/D conversion performed
AnnaBridge 171:3a7713b1edbc 283 under sequence-B */
AnnaBridge 171:3a7713b1edbc 284 __I uint32_t RESERVED1[2];
AnnaBridge 171:3a7713b1edbc 285 __I uint32_t DAT0; /*!< (@ 0x4001C020) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 286 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 287 0. */
AnnaBridge 171:3a7713b1edbc 288 __I uint32_t DAT1; /*!< (@ 0x4001C024) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 289 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 290 0. */
AnnaBridge 171:3a7713b1edbc 291 __I uint32_t DAT2; /*!< (@ 0x4001C028) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 292 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 293 0. */
AnnaBridge 171:3a7713b1edbc 294 __I uint32_t DAT3; /*!< (@ 0x4001C02C) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 295 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 296 0. */
AnnaBridge 171:3a7713b1edbc 297 __I uint32_t DAT4; /*!< (@ 0x4001C030) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 298 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 299 0. */
AnnaBridge 171:3a7713b1edbc 300 __I uint32_t DAT5; /*!< (@ 0x4001C034) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 301 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 302 0. */
AnnaBridge 171:3a7713b1edbc 303 __I uint32_t DAT6; /*!< (@ 0x4001C038) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 304 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 305 0. */
AnnaBridge 171:3a7713b1edbc 306 __I uint32_t DAT7; /*!< (@ 0x4001C03C) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 307 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 308 0. */
AnnaBridge 171:3a7713b1edbc 309 __I uint32_t DAT8; /*!< (@ 0x4001C040) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 310 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 311 0. */
AnnaBridge 171:3a7713b1edbc 312 __I uint32_t DAT9; /*!< (@ 0x4001C044) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 313 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 314 0. */
AnnaBridge 171:3a7713b1edbc 315 __I uint32_t DAT10; /*!< (@ 0x4001C048) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 316 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 317 0. */
AnnaBridge 171:3a7713b1edbc 318 __I uint32_t DAT11; /*!< (@ 0x4001C04C) A/D Channel 0 Data Register. This register contains
AnnaBridge 171:3a7713b1edbc 319 the result of the most recent conversion completed on channel
AnnaBridge 171:3a7713b1edbc 320 0. */
AnnaBridge 171:3a7713b1edbc 321 __IO uint32_t THR0_LOW; /*!< (@ 0x4001C050) A/D Low Compare Threshold Register 0 : Contains
AnnaBridge 171:3a7713b1edbc 322 the lower threshold level for automatic threshold comparison
AnnaBridge 171:3a7713b1edbc 323 for any channels linked to threshold pair 0. */
AnnaBridge 171:3a7713b1edbc 324 __IO uint32_t THR1_LOW; /*!< (@ 0x4001C054) A/D Low Compare Threshold Register 1: Contains
AnnaBridge 171:3a7713b1edbc 325 the lower threshold level for automatic threshold comparison
AnnaBridge 171:3a7713b1edbc 326 for any channels linked to threshold pair 1. */
AnnaBridge 171:3a7713b1edbc 327 __IO uint32_t THR0_HIGH; /*!< (@ 0x4001C058) A/D High Compare Threshold Register 0: Contains
AnnaBridge 171:3a7713b1edbc 328 the upper threshold level for automatic threshold comparison
AnnaBridge 171:3a7713b1edbc 329 for any channels linked to threshold pair 0. */
AnnaBridge 171:3a7713b1edbc 330 __IO uint32_t THR1_HIGH; /*!< (@ 0x4001C05C) A/D High Compare Threshold Register 1: Contains
AnnaBridge 171:3a7713b1edbc 331 the upper threshold level for automatic threshold comparison
AnnaBridge 171:3a7713b1edbc 332 for any channels linked to threshold pair 1. */
AnnaBridge 171:3a7713b1edbc 333 __IO uint32_t CHAN_THRSEL; /*!< (@ 0x4001C060) A/D Channel-Threshold Select Register. Specifies
AnnaBridge 171:3a7713b1edbc 334 which set of threshold compare registers are to be used for
AnnaBridge 171:3a7713b1edbc 335 each channel */
AnnaBridge 171:3a7713b1edbc 336 __IO uint32_t INTEN; /*!< (@ 0x4001C064) A/D Interrupt Enable Register. This register
AnnaBridge 171:3a7713b1edbc 337 contains enable bits that enable the sequence-A, sequence-B,
AnnaBridge 171:3a7713b1edbc 338 threshold compare and data overrun interrupts to be generated. */
AnnaBridge 171:3a7713b1edbc 339 __IO uint32_t FLAGS; /*!< (@ 0x4001C068) A/D Flags Register. Contains the four interrupt
AnnaBridge 171:3a7713b1edbc 340 request flags and the individual component overrun and threshold-compare
AnnaBridge 171:3a7713b1edbc 341 flags. (The overrun bits replicate information stored in the
AnnaBridge 171:3a7713b1edbc 342 result registers). */
AnnaBridge 171:3a7713b1edbc 343 __IO uint32_t TRM; /*!< (@ 0x4001C06C) ADC trim register. */
AnnaBridge 171:3a7713b1edbc 344 } LPC_ADC_Type;
AnnaBridge 171:3a7713b1edbc 345
AnnaBridge 171:3a7713b1edbc 346
AnnaBridge 171:3a7713b1edbc 347 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 348 /* ================ PMU ================ */
AnnaBridge 171:3a7713b1edbc 349 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 350
AnnaBridge 171:3a7713b1edbc 351
AnnaBridge 171:3a7713b1edbc 352 /**
AnnaBridge 171:3a7713b1edbc 353 * @brief Power Management Unit (PMU) (PMU)
AnnaBridge 171:3a7713b1edbc 354 */
AnnaBridge 171:3a7713b1edbc 355
AnnaBridge 171:3a7713b1edbc 356 typedef struct { /*!< (@ 0x40020000) PMU Structure */
AnnaBridge 171:3a7713b1edbc 357 __IO uint32_t PCON; /*!< (@ 0x40020000) Power control register */
AnnaBridge 171:3a7713b1edbc 358 __IO uint32_t GPREG0; /*!< (@ 0x40020004) General purpose register 0 */
AnnaBridge 171:3a7713b1edbc 359 __IO uint32_t GPREG1; /*!< (@ 0x40020008) General purpose register 0 */
AnnaBridge 171:3a7713b1edbc 360 __IO uint32_t GPREG2; /*!< (@ 0x4002000C) General purpose register 0 */
AnnaBridge 171:3a7713b1edbc 361 __IO uint32_t GPREG3; /*!< (@ 0x40020010) General purpose register 0 */
AnnaBridge 171:3a7713b1edbc 362 __IO uint32_t DPDCTRL; /*!< (@ 0x40020014) Deep power-down control register. Also includes
AnnaBridge 171:3a7713b1edbc 363 bits for general purpose storage. */
AnnaBridge 171:3a7713b1edbc 364 } LPC_PMU_Type;
AnnaBridge 171:3a7713b1edbc 365
AnnaBridge 171:3a7713b1edbc 366
AnnaBridge 171:3a7713b1edbc 367 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 368 /* ================ CMP ================ */
AnnaBridge 171:3a7713b1edbc 369 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 370
AnnaBridge 171:3a7713b1edbc 371
AnnaBridge 171:3a7713b1edbc 372 /**
AnnaBridge 171:3a7713b1edbc 373 * @brief Analog comparator (CMP)
AnnaBridge 171:3a7713b1edbc 374 */
AnnaBridge 171:3a7713b1edbc 375
AnnaBridge 171:3a7713b1edbc 376 typedef struct { /*!< (@ 0x40024000) CMP Structure */
AnnaBridge 171:3a7713b1edbc 377 __IO uint32_t CTRL; /*!< (@ 0x40024000) Comparator control register */
AnnaBridge 171:3a7713b1edbc 378 __IO uint32_t LAD; /*!< (@ 0x40024004) Voltage ladder register */
AnnaBridge 171:3a7713b1edbc 379 } LPC_CMP_Type;
AnnaBridge 171:3a7713b1edbc 380
AnnaBridge 171:3a7713b1edbc 381
AnnaBridge 171:3a7713b1edbc 382 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 383 /* ================ DMATRIGMUX ================ */
AnnaBridge 171:3a7713b1edbc 384 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 385
AnnaBridge 171:3a7713b1edbc 386
AnnaBridge 171:3a7713b1edbc 387 /**
AnnaBridge 171:3a7713b1edbc 388 * @brief DMA trigger mux (DMATRIGMUX)
AnnaBridge 171:3a7713b1edbc 389 */
AnnaBridge 171:3a7713b1edbc 390
AnnaBridge 171:3a7713b1edbc 391 typedef struct { /*!< (@ 0x40028000) DMATRIGMUX Structure */
AnnaBridge 171:3a7713b1edbc 392 __IO uint32_t DMA_ITRIG_INMUX0; /*!< (@ 0x40028000) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 393 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 394 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 395 __IO uint32_t DMA_ITRIG_INMUX1; /*!< (@ 0x40028004) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 396 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 397 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 398 __IO uint32_t DMA_ITRIG_INMUX2; /*!< (@ 0x40028008) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 399 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 400 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 401 __IO uint32_t DMA_ITRIG_INMUX3; /*!< (@ 0x4002800C) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 402 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 403 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 404 __IO uint32_t DMA_ITRIG_INMUX4; /*!< (@ 0x40028010) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 405 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 406 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 407 __IO uint32_t DMA_ITRIG_INMUX5; /*!< (@ 0x40028014) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 408 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 409 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 410 __IO uint32_t DMA_ITRIG_INMUX6; /*!< (@ 0x40028018) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 411 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 412 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 413 __IO uint32_t DMA_ITRIG_INMUX7; /*!< (@ 0x4002801C) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 414 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 415 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 416 __IO uint32_t DMA_ITRIG_INMUX8; /*!< (@ 0x40028020) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 417 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 418 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 419 __IO uint32_t DMA_ITRIG_INMUX9; /*!< (@ 0x40028024) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 420 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 421 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 422 __IO uint32_t DMA_ITRIG_INMUX10; /*!< (@ 0x40028028) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 423 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 424 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 425 __IO uint32_t DMA_ITRIG_INMUX11; /*!< (@ 0x4002802C) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 426 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 427 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 428 __IO uint32_t DMA_ITRIG_INMUX12; /*!< (@ 0x40028030) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 429 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 430 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 431 __IO uint32_t DMA_ITRIG_INMUX13; /*!< (@ 0x40028034) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 432 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 433 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 434 __IO uint32_t DMA_ITRIG_INMUX14; /*!< (@ 0x40028038) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 435 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 436 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 437 __IO uint32_t DMA_ITRIG_INMUX15; /*!< (@ 0x4002803C) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 438 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 439 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 440 __IO uint32_t DMA_ITRIG_INMUX16; /*!< (@ 0x40028040) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 441 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 442 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 443 __IO uint32_t DMA_ITRIG_INMUX17; /*!< (@ 0x40028044) Input mux register for trigger inputs 0 to 23
AnnaBridge 171:3a7713b1edbc 444 connected to DMA channel 0. Selects from ADC, SCT, ACMP, pin
AnnaBridge 171:3a7713b1edbc 445 interrupts, and DMA requests. */
AnnaBridge 171:3a7713b1edbc 446 } LPC_DMATRIGMUX_Type;
AnnaBridge 171:3a7713b1edbc 447
AnnaBridge 171:3a7713b1edbc 448
AnnaBridge 171:3a7713b1edbc 449 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 450 /* ================ INPUTMUX ================ */
AnnaBridge 171:3a7713b1edbc 451 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 452
AnnaBridge 171:3a7713b1edbc 453
AnnaBridge 171:3a7713b1edbc 454 /**
AnnaBridge 171:3a7713b1edbc 455 * @brief Input multiplexing (INPUTMUX)
AnnaBridge 171:3a7713b1edbc 456 */
AnnaBridge 171:3a7713b1edbc 457
AnnaBridge 171:3a7713b1edbc 458 typedef struct { /*!< (@ 0x4002C000) INPUTMUX Structure */
AnnaBridge 171:3a7713b1edbc 459 __IO uint32_t DMA_INMUX_INMUX0; /*!< (@ 0x4002C000) Input mux register for DMA trigger input 20.
AnnaBridge 171:3a7713b1edbc 460 Selects from 18 DMA trigger outputs. */
AnnaBridge 171:3a7713b1edbc 461 __IO uint32_t DMA_INMUX_INMUX1; /*!< (@ 0x4002C004) Input mux register for DMA trigger input 20.
AnnaBridge 171:3a7713b1edbc 462 Selects from 18 DMA trigger outputs. */
AnnaBridge 171:3a7713b1edbc 463 __I uint32_t RESERVED0[6];
AnnaBridge 171:3a7713b1edbc 464 __IO uint32_t SCT0_INMUX0; /*!< (@ 0x4002C020) Input mux register for SCT input 0 */
AnnaBridge 171:3a7713b1edbc 465 __IO uint32_t SCT0_INMUX1; /*!< (@ 0x4002C024) Input mux register for SCT input 0 */
AnnaBridge 171:3a7713b1edbc 466 __IO uint32_t SCT0_INMUX2; /*!< (@ 0x4002C028) Input mux register for SCT input 0 */
AnnaBridge 171:3a7713b1edbc 467 __IO uint32_t SCT0_INMUX3; /*!< (@ 0x4002C02C) Input mux register for SCT input 0 */
AnnaBridge 171:3a7713b1edbc 468 } LPC_INPUTMUX_Type;
AnnaBridge 171:3a7713b1edbc 469
AnnaBridge 171:3a7713b1edbc 470
AnnaBridge 171:3a7713b1edbc 471 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 472 /* ================ FLASHCTRL ================ */
AnnaBridge 171:3a7713b1edbc 473 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 474
AnnaBridge 171:3a7713b1edbc 475
AnnaBridge 171:3a7713b1edbc 476 /**
AnnaBridge 171:3a7713b1edbc 477 * @brief Flash controller (FLASHCTRL)
AnnaBridge 171:3a7713b1edbc 478 */
AnnaBridge 171:3a7713b1edbc 479
AnnaBridge 171:3a7713b1edbc 480 typedef struct { /*!< (@ 0x40040000) FLASHCTRL Structure */
AnnaBridge 171:3a7713b1edbc 481 __I uint32_t RESERVED0[4];
AnnaBridge 171:3a7713b1edbc 482 __IO uint32_t FLASHCFG; /*!< (@ 0x40040010) Flash configuration register */
AnnaBridge 171:3a7713b1edbc 483 __I uint32_t RESERVED1[3];
AnnaBridge 171:3a7713b1edbc 484 __IO uint32_t FMSSTART; /*!< (@ 0x40040020) Signature start address register */
AnnaBridge 171:3a7713b1edbc 485 __IO uint32_t FMSSTOP; /*!< (@ 0x40040024) Signature stop-address register */
AnnaBridge 171:3a7713b1edbc 486 __I uint32_t RESERVED2;
AnnaBridge 171:3a7713b1edbc 487 __I uint32_t FMSW0; /*!< (@ 0x4004002C) Signature Word */
AnnaBridge 171:3a7713b1edbc 488 } LPC_FLASHCTRL_Type;
AnnaBridge 171:3a7713b1edbc 489
AnnaBridge 171:3a7713b1edbc 490
AnnaBridge 171:3a7713b1edbc 491 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 492 /* ================ IOCON ================ */
AnnaBridge 171:3a7713b1edbc 493 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 494
AnnaBridge 171:3a7713b1edbc 495
AnnaBridge 171:3a7713b1edbc 496 /**
AnnaBridge 171:3a7713b1edbc 497 * @brief I/O configuration (IOCON) (IOCON)
AnnaBridge 171:3a7713b1edbc 498 */
AnnaBridge 171:3a7713b1edbc 499
AnnaBridge 171:3a7713b1edbc 500 typedef struct { /*!< (@ 0x40044000) IOCON Structure */
AnnaBridge 171:3a7713b1edbc 501 __IO uint32_t PIO0_17; /*!< (@ 0x40044000) I/O configuration for pin PIO0_17 */
AnnaBridge 171:3a7713b1edbc 502 __IO uint32_t PIO0_13; /*!< (@ 0x40044004) I/O configuration for pin PIO0_13 */
AnnaBridge 171:3a7713b1edbc 503 __IO uint32_t PIO0_12; /*!< (@ 0x40044008) I/O configuration for pin PIO0_12 */
AnnaBridge 171:3a7713b1edbc 504 __IO uint32_t PIO0_5; /*!< (@ 0x4004400C) I/O configuration for pin PIO0_5/RESET */
AnnaBridge 171:3a7713b1edbc 505 __IO uint32_t PIO0_4; /*!< (@ 0x40044010) I/O configuration for pin PIO0_4 */
AnnaBridge 171:3a7713b1edbc 506 __IO uint32_t PIO0_3; /*!< (@ 0x40044014) I/O configuration for pin PIO0_3/SWCLK */
AnnaBridge 171:3a7713b1edbc 507 __IO uint32_t PIO0_2; /*!< (@ 0x40044018) I/O configuration for pin PIO0_2/SWDIO */
AnnaBridge 171:3a7713b1edbc 508 __IO uint32_t PIO0_11; /*!< (@ 0x4004401C) I/O configuration for pin PIO0_11. This is the
AnnaBridge 171:3a7713b1edbc 509 pin configuration for the true open-drain pin. */
AnnaBridge 171:3a7713b1edbc 510 __IO uint32_t PIO0_10; /*!< (@ 0x40044020) I/O configuration for pin PIO0_10. This is the
AnnaBridge 171:3a7713b1edbc 511 pin configuration for the true open-drain pin. */
AnnaBridge 171:3a7713b1edbc 512 __IO uint32_t PIO0_16; /*!< (@ 0x40044024) I/O configuration for pin PIO0_16 */
AnnaBridge 171:3a7713b1edbc 513 __IO uint32_t PIO0_15; /*!< (@ 0x40044028) I/O configuration for pin PIO0_15 */
AnnaBridge 171:3a7713b1edbc 514 __IO uint32_t PIO0_1; /*!< (@ 0x4004402C) I/O configuration for pin PIO0_17 */
AnnaBridge 171:3a7713b1edbc 515 __I uint32_t RESERVED0;
AnnaBridge 171:3a7713b1edbc 516 __IO uint32_t PIO0_9; /*!< (@ 0x40044034) I/O configuration for pin PIO0_9/XTALOUT */
AnnaBridge 171:3a7713b1edbc 517 __IO uint32_t PIO0_8; /*!< (@ 0x40044038) I/O configuration for pin PIO0_8/XTALIN */
AnnaBridge 171:3a7713b1edbc 518 __IO uint32_t PIO0_7; /*!< (@ 0x4004403C) I/O configuration for pin PIO0_7 */
AnnaBridge 171:3a7713b1edbc 519 __IO uint32_t PIO0_6; /*!< (@ 0x40044040) I/O configuration for pin PIO0_6/VDDCMP */
AnnaBridge 171:3a7713b1edbc 520 __IO uint32_t PIO0_0; /*!< (@ 0x40044044) I/O configuration for pin PIO0_0/ACMP_I0 */
AnnaBridge 171:3a7713b1edbc 521 __IO uint32_t PIO0_14; /*!< (@ 0x40044048) I/O configuration for pin PIO0_14 */
AnnaBridge 171:3a7713b1edbc 522 __I uint32_t RESERVED1;
AnnaBridge 171:3a7713b1edbc 523 __IO uint32_t PIO0_28; /*!< (@ 0x40044050) I/O configuration for pin PIO0_28 */
AnnaBridge 171:3a7713b1edbc 524 __IO uint32_t PIO0_27; /*!< (@ 0x40044054) I/O configuration for pin PIO0_27 */
AnnaBridge 171:3a7713b1edbc 525 __IO uint32_t PIO0_26; /*!< (@ 0x40044058) I/O configuration for pin PIO0_26 */
AnnaBridge 171:3a7713b1edbc 526 __IO uint32_t PIO0_25; /*!< (@ 0x4004405C) I/O configuration for pin PIO0_25 */
AnnaBridge 171:3a7713b1edbc 527 __IO uint32_t PIO0_24; /*!< (@ 0x40044060) I/O configuration for pin PIO0_24 */
AnnaBridge 171:3a7713b1edbc 528 __IO uint32_t PIO0_23; /*!< (@ 0x40044064) I/O configuration for pin PIO0_23/ADC_3 */
AnnaBridge 171:3a7713b1edbc 529 __IO uint32_t PIO0_22; /*!< (@ 0x40044068) I/O configuration for pin PIO0_22/ADC_4 */
AnnaBridge 171:3a7713b1edbc 530 __IO uint32_t PIO0_21; /*!< (@ 0x4004406C) I/O configuration for pin PIO0_21/ACMP_I4/ADC_5 */
AnnaBridge 171:3a7713b1edbc 531 __IO uint32_t PIO0_20; /*!< (@ 0x40044070) I/O configuration for pin PIO0_20/ADC_6 */
AnnaBridge 171:3a7713b1edbc 532 __IO uint32_t PIO0_19; /*!< (@ 0x40044074) I/O configuration for pin PIO0_19/ADC_7 */
AnnaBridge 171:3a7713b1edbc 533 __IO uint32_t PIO0_18; /*!< (@ 0x40044078) I/O configuration for pin PIO0_18/ADC_8 */
AnnaBridge 171:3a7713b1edbc 534 } LPC_IOCON_Type;
AnnaBridge 171:3a7713b1edbc 535
AnnaBridge 171:3a7713b1edbc 536
AnnaBridge 171:3a7713b1edbc 537 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 538 /* ================ SYSCON ================ */
AnnaBridge 171:3a7713b1edbc 539 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 540
AnnaBridge 171:3a7713b1edbc 541
AnnaBridge 171:3a7713b1edbc 542 /**
AnnaBridge 171:3a7713b1edbc 543 * @brief System configuration (SYSCON) (SYSCON)
AnnaBridge 171:3a7713b1edbc 544 */
AnnaBridge 171:3a7713b1edbc 545
AnnaBridge 171:3a7713b1edbc 546 typedef struct { /*!< (@ 0x40048000) SYSCON Structure */
AnnaBridge 171:3a7713b1edbc 547 __IO uint32_t SYSMEMREMAP; /*!< (@ 0x40048000) System memory remap */
AnnaBridge 171:3a7713b1edbc 548 __IO uint32_t PRESETCTRL; /*!< (@ 0x40048004) Peripheral reset control */
AnnaBridge 171:3a7713b1edbc 549 __IO uint32_t SYSPLLCTRL; /*!< (@ 0x40048008) System PLL control */
AnnaBridge 171:3a7713b1edbc 550 __I uint32_t SYSPLLSTAT; /*!< (@ 0x4004800C) System PLL status */
AnnaBridge 171:3a7713b1edbc 551 __I uint32_t RESERVED0[4];
AnnaBridge 171:3a7713b1edbc 552 __IO uint32_t SYSOSCCTRL; /*!< (@ 0x40048020) System oscillator control */
AnnaBridge 171:3a7713b1edbc 553 __IO uint32_t WDTOSCCTRL; /*!< (@ 0x40048024) Watchdog oscillator control */
AnnaBridge 171:3a7713b1edbc 554 __IO uint32_t IRCCTRL; /*!< (@ 0x40048028) IRC control */
AnnaBridge 171:3a7713b1edbc 555 __I uint32_t RESERVED1;
AnnaBridge 171:3a7713b1edbc 556 __IO uint32_t SYSRSTSTAT; /*!< (@ 0x40048030) System reset status register */
AnnaBridge 171:3a7713b1edbc 557 __I uint32_t RESERVED2[3];
AnnaBridge 171:3a7713b1edbc 558 __IO uint32_t SYSPLLCLKSEL; /*!< (@ 0x40048040) System PLL clock source select */
AnnaBridge 171:3a7713b1edbc 559 __IO uint32_t SYSPLLCLKUEN; /*!< (@ 0x40048044) System PLL clock source update enable */
AnnaBridge 171:3a7713b1edbc 560 __I uint32_t RESERVED3[10];
AnnaBridge 171:3a7713b1edbc 561 __IO uint32_t MAINCLKSEL; /*!< (@ 0x40048070) Main clock source select */
AnnaBridge 171:3a7713b1edbc 562 __IO uint32_t MAINCLKUEN; /*!< (@ 0x40048074) Main clock source update enable */
AnnaBridge 171:3a7713b1edbc 563 __IO uint32_t SYSAHBCLKDIV; /*!< (@ 0x40048078) System clock divider */
AnnaBridge 171:3a7713b1edbc 564 __I uint32_t RESERVED4;
AnnaBridge 171:3a7713b1edbc 565 __IO uint32_t SYSAHBCLKCTRL; /*!< (@ 0x40048080) System clock control */
AnnaBridge 171:3a7713b1edbc 566 __I uint32_t RESERVED5[4];
AnnaBridge 171:3a7713b1edbc 567 __IO uint32_t UARTCLKDIV; /*!< (@ 0x40048094) USART clock divider */
AnnaBridge 171:3a7713b1edbc 568 __I uint32_t RESERVED6[18];
AnnaBridge 171:3a7713b1edbc 569 __IO uint32_t CLKOUTSEL; /*!< (@ 0x400480E0) CLKOUT clock source select */
AnnaBridge 171:3a7713b1edbc 570 __IO uint32_t CLKOUTUEN; /*!< (@ 0x400480E4) CLKOUT clock source update enable */
AnnaBridge 171:3a7713b1edbc 571 __IO uint32_t CLKOUTDIV; /*!< (@ 0x400480E8) CLKOUT clock divider */
AnnaBridge 171:3a7713b1edbc 572 __I uint32_t RESERVED7;
AnnaBridge 171:3a7713b1edbc 573 __IO uint32_t UARTFRGDIV; /*!< (@ 0x400480F0) USART1 to USART4 common fractional generator
AnnaBridge 171:3a7713b1edbc 574 divider value */
AnnaBridge 171:3a7713b1edbc 575 __IO uint32_t UARTFRGMULT; /*!< (@ 0x400480F4) USART1 to USART4 common fractional generator
AnnaBridge 171:3a7713b1edbc 576 multiplier value */
AnnaBridge 171:3a7713b1edbc 577 __I uint32_t RESERVED8;
AnnaBridge 171:3a7713b1edbc 578 __IO uint32_t EXTTRACECMD; /*!< (@ 0x400480FC) External trace buffer command register */
AnnaBridge 171:3a7713b1edbc 579 __I uint32_t PIOPORCAP0; /*!< (@ 0x40048100) POR captured PIO status 0 */
AnnaBridge 171:3a7713b1edbc 580 __I uint32_t RESERVED9[12];
AnnaBridge 171:3a7713b1edbc 581 __IO uint32_t IOCONCLKDIV6; /*!< (@ 0x40048134) Peripheral clock 6 to the IOCON block for programmable
AnnaBridge 171:3a7713b1edbc 582 glitch filter */
AnnaBridge 171:3a7713b1edbc 583 __I uint32_t RESERVED10[6];
AnnaBridge 171:3a7713b1edbc 584 __IO uint32_t BODCTRL; /*!< (@ 0x40048150) Brown-Out Detect */
AnnaBridge 171:3a7713b1edbc 585 __IO uint32_t SYSTCKCAL; /*!< (@ 0x40048154) System tick counter calibration */
AnnaBridge 171:3a7713b1edbc 586 __I uint32_t RESERVED11[6];
AnnaBridge 171:3a7713b1edbc 587 __IO uint32_t IRQLATENCY; /*!< (@ 0x40048170) IQR delay. Allows trade-off between interrupt
AnnaBridge 171:3a7713b1edbc 588 latency and determinism. */
AnnaBridge 171:3a7713b1edbc 589 __IO uint32_t NMISRC; /*!< (@ 0x40048174) NMI Source Control */
AnnaBridge 171:3a7713b1edbc 590 union {
AnnaBridge 171:3a7713b1edbc 591 __IO uint32_t PINTSEL[8];
AnnaBridge 171:3a7713b1edbc 592 struct {
AnnaBridge 171:3a7713b1edbc 593 __IO uint32_t PINTSEL0; /*!< (@ 0x40048178) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 594 __IO uint32_t PINTSEL1; /*!< (@ 0x4004817C) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 595 __IO uint32_t PINTSEL2; /*!< (@ 0x40048180) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 596 __IO uint32_t PINTSEL3; /*!< (@ 0x40048184) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 597 __IO uint32_t PINTSEL4; /*!< (@ 0x40048188) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 598 __IO uint32_t PINTSEL5; /*!< (@ 0x4004818C) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 599 __IO uint32_t PINTSEL6; /*!< (@ 0x40048190) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 600 __IO uint32_t PINTSEL7; /*!< (@ 0x40048194) GPIO Pin Interrupt Select register 0 */
AnnaBridge 171:3a7713b1edbc 601 };
AnnaBridge 171:3a7713b1edbc 602 };
AnnaBridge 171:3a7713b1edbc 603 __I uint32_t RESERVED12[27];
AnnaBridge 171:3a7713b1edbc 604 __IO uint32_t STARTERP0; /*!< (@ 0x40048204) Start logic 0 pin wake-up enable register */
AnnaBridge 171:3a7713b1edbc 605 __I uint32_t RESERVED13[3];
AnnaBridge 171:3a7713b1edbc 606 __IO uint32_t STARTERP1; /*!< (@ 0x40048214) Start logic 1 interrupt wake-up enable register */
AnnaBridge 171:3a7713b1edbc 607 __I uint32_t RESERVED14[6];
AnnaBridge 171:3a7713b1edbc 608 __IO uint32_t PDSLEEPCFG; /*!< (@ 0x40048230) Power-down states in deep-sleep mode */
AnnaBridge 171:3a7713b1edbc 609 __IO uint32_t PDAWAKECFG; /*!< (@ 0x40048234) Power-down states for wake-up from deep-sleep */
AnnaBridge 171:3a7713b1edbc 610 __IO uint32_t PDRUNCFG; /*!< (@ 0x40048238) Power configuration register */
AnnaBridge 171:3a7713b1edbc 611 __I uint32_t RESERVED15[111];
AnnaBridge 171:3a7713b1edbc 612 __I uint32_t DEVICE_ID; /*!< (@ 0x400483F8) Device ID */
AnnaBridge 171:3a7713b1edbc 613 } LPC_SYSCON_Type;
AnnaBridge 171:3a7713b1edbc 614
AnnaBridge 171:3a7713b1edbc 615
AnnaBridge 171:3a7713b1edbc 616 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 617 /* ================ I2C0 ================ */
AnnaBridge 171:3a7713b1edbc 618 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 619
AnnaBridge 171:3a7713b1edbc 620
AnnaBridge 171:3a7713b1edbc 621 /**
AnnaBridge 171:3a7713b1edbc 622 * @brief I2C0-bus interface (I2C0)
AnnaBridge 171:3a7713b1edbc 623 */
AnnaBridge 171:3a7713b1edbc 624
AnnaBridge 171:3a7713b1edbc 625 typedef struct { /*!< (@ 0x40050000) I2C0 Structure */
AnnaBridge 171:3a7713b1edbc 626 __IO uint32_t CFG; /*!< (@ 0x40050000) Configuration for shared functions. */
AnnaBridge 171:3a7713b1edbc 627 __IO uint32_t STAT; /*!< (@ 0x40050004) Status register for Master, Slave, and Monitor
AnnaBridge 171:3a7713b1edbc 628 functions. */
AnnaBridge 171:3a7713b1edbc 629 __IO uint32_t INTENSET; /*!< (@ 0x40050008) Interrupt Enable Set and read register. */
AnnaBridge 171:3a7713b1edbc 630 __O uint32_t INTENCLR; /*!< (@ 0x4005000C) Interrupt Enable Clear register. */
AnnaBridge 171:3a7713b1edbc 631 __IO uint32_t TIMEOUT; /*!< (@ 0x40050010) Time-out value register. */
AnnaBridge 171:3a7713b1edbc 632 __IO uint32_t CLKDIV; /*!< (@ 0x40050014) Clock pre-divider for the entire I2C block. This
AnnaBridge 171:3a7713b1edbc 633 determines what time increments are used for the MSTTIME and
AnnaBridge 171:3a7713b1edbc 634 SLVTIME registers. */
AnnaBridge 171:3a7713b1edbc 635 __I uint32_t INTSTAT; /*!< (@ 0x40050018) Interrupt Status register for Master, Slave,
AnnaBridge 171:3a7713b1edbc 636 and Monitor functions. */
AnnaBridge 171:3a7713b1edbc 637 __I uint32_t RESERVED0;
AnnaBridge 171:3a7713b1edbc 638 __IO uint32_t MSTCTL; /*!< (@ 0x40050020) Master control register. */
AnnaBridge 171:3a7713b1edbc 639 __IO uint32_t MSTTIME; /*!< (@ 0x40050024) Master timing configuration. */
AnnaBridge 171:3a7713b1edbc 640 __IO uint32_t MSTDAT; /*!< (@ 0x40050028) Combined Master receiver and transmitter data
AnnaBridge 171:3a7713b1edbc 641 register. */
AnnaBridge 171:3a7713b1edbc 642 __I uint32_t RESERVED1[5];
AnnaBridge 171:3a7713b1edbc 643 __IO uint32_t SLVCTL; /*!< (@ 0x40050040) Slave control register. */
AnnaBridge 171:3a7713b1edbc 644 __IO uint32_t SLVDAT; /*!< (@ 0x40050044) Combined Slave receiver and transmitter data
AnnaBridge 171:3a7713b1edbc 645 register. */
AnnaBridge 171:3a7713b1edbc 646 union {
AnnaBridge 171:3a7713b1edbc 647 __IO uint32_t SLVADR[4];
AnnaBridge 171:3a7713b1edbc 648 struct {
AnnaBridge 171:3a7713b1edbc 649 __IO uint32_t SLVADR0; /*!< (@ 0x40050048) Slave address 0. */
AnnaBridge 171:3a7713b1edbc 650 __IO uint32_t SLVADR1; /*!< (@ 0x4005004C) Slave address 0. */
AnnaBridge 171:3a7713b1edbc 651 __IO uint32_t SLVADR2; /*!< (@ 0x40050050) Slave address 0. */
AnnaBridge 171:3a7713b1edbc 652 __IO uint32_t SLVADR3; /*!< (@ 0x40050054) Slave address 0. */
AnnaBridge 171:3a7713b1edbc 653 };
AnnaBridge 171:3a7713b1edbc 654 };
AnnaBridge 171:3a7713b1edbc 655 __IO uint32_t SLVQUAL0; /*!< (@ 0x40050058) Slave Qualification for address 0. */
AnnaBridge 171:3a7713b1edbc 656 __I uint32_t RESERVED2[9];
AnnaBridge 171:3a7713b1edbc 657 __I uint32_t MONRXDAT; /*!< (@ 0x40050080) Monitor receiver data register. */
AnnaBridge 171:3a7713b1edbc 658 } LPC_I2C0_Type;
AnnaBridge 171:3a7713b1edbc 659
AnnaBridge 171:3a7713b1edbc 660
AnnaBridge 171:3a7713b1edbc 661 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 662 /* ================ SPI0 ================ */
AnnaBridge 171:3a7713b1edbc 663 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 664
AnnaBridge 171:3a7713b1edbc 665
AnnaBridge 171:3a7713b1edbc 666 /**
AnnaBridge 171:3a7713b1edbc 667 * @brief SPI0 (SPI0)
AnnaBridge 171:3a7713b1edbc 668 */
AnnaBridge 171:3a7713b1edbc 669
AnnaBridge 171:3a7713b1edbc 670 typedef struct { /*!< (@ 0x40058000) SPI0 Structure */
AnnaBridge 171:3a7713b1edbc 671 __IO uint32_t CFG; /*!< (@ 0x40058000) SPI Configuration register */
AnnaBridge 171:3a7713b1edbc 672 __IO uint32_t DLY; /*!< (@ 0x40058004) SPI Delay register */
AnnaBridge 171:3a7713b1edbc 673 __IO uint32_t STAT; /*!< (@ 0x40058008) SPI Status. Some status flags can be cleared
AnnaBridge 171:3a7713b1edbc 674 by writing a 1 to that bit position */
AnnaBridge 171:3a7713b1edbc 675 __IO uint32_t INTENSET; /*!< (@ 0x4005800C) SPI Interrupt Enable read and Set. A complete
AnnaBridge 171:3a7713b1edbc 676 value may be read from this register. Writing a 1 to any implemented
AnnaBridge 171:3a7713b1edbc 677 bit position causes that bit to be set. */
AnnaBridge 171:3a7713b1edbc 678 __O uint32_t INTENCLR; /*!< (@ 0x40058010) SPI Interrupt Enable Clear. Writing a 1 to any
AnnaBridge 171:3a7713b1edbc 679 implemented bit position causes the corresponding bit in INTENSET
AnnaBridge 171:3a7713b1edbc 680 to be cleared. */
AnnaBridge 171:3a7713b1edbc 681 __I uint32_t RXDAT; /*!< (@ 0x40058014) SPI Receive Data */
AnnaBridge 171:3a7713b1edbc 682 __IO uint32_t TXDATCTL; /*!< (@ 0x40058018) SPI Transmit Data with Control */
AnnaBridge 171:3a7713b1edbc 683 __IO uint32_t TXDAT; /*!< (@ 0x4005801C) SPI Transmit Data */
AnnaBridge 171:3a7713b1edbc 684 __IO uint32_t TXCTL; /*!< (@ 0x40058020) SPI Transmit Control */
AnnaBridge 171:3a7713b1edbc 685 __IO uint32_t DIV; /*!< (@ 0x40058024) SPI clock Divider */
AnnaBridge 171:3a7713b1edbc 686 __I uint32_t INTSTAT; /*!< (@ 0x40058028) SPI Interrupt Status */
AnnaBridge 171:3a7713b1edbc 687 } LPC_SPI0_Type;
AnnaBridge 171:3a7713b1edbc 688
AnnaBridge 171:3a7713b1edbc 689
AnnaBridge 171:3a7713b1edbc 690 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 691 /* ================ USART0 ================ */
AnnaBridge 171:3a7713b1edbc 692 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 693
AnnaBridge 171:3a7713b1edbc 694
AnnaBridge 171:3a7713b1edbc 695 /**
AnnaBridge 171:3a7713b1edbc 696 * @brief USART0 (USART0)
AnnaBridge 171:3a7713b1edbc 697 */
AnnaBridge 171:3a7713b1edbc 698
AnnaBridge 171:3a7713b1edbc 699 typedef struct { /*!< (@ 0x40064000) USART0 Structure */
AnnaBridge 171:3a7713b1edbc 700 __IO uint32_t CFG; /*!< (@ 0x40064000) USART Configuration register. Basic USART configuration
AnnaBridge 171:3a7713b1edbc 701 settings that typically are not changed during operation. */
AnnaBridge 171:3a7713b1edbc 702 __IO uint32_t CTL; /*!< (@ 0x40064004) USART Control register. USART control settings
AnnaBridge 171:3a7713b1edbc 703 that are more likely to change during operation. */
AnnaBridge 171:3a7713b1edbc 704 __IO uint32_t STAT; /*!< (@ 0x40064008) USART Status register. The complete status value
AnnaBridge 171:3a7713b1edbc 705 can be read here. Writing ones clears some bits in the register.
AnnaBridge 171:3a7713b1edbc 706 Some bits can be cleared by writing a 1 to them. */
AnnaBridge 171:3a7713b1edbc 707 __IO uint32_t INTENSET; /*!< (@ 0x4006400C) Interrupt Enable read and Set register. Contains
AnnaBridge 171:3a7713b1edbc 708 an individual interrupt enable bit for each potential USART
AnnaBridge 171:3a7713b1edbc 709 interrupt. A complete value may be read from this register.
AnnaBridge 171:3a7713b1edbc 710 Writing a 1 to any implemented bit position causes that bit
AnnaBridge 171:3a7713b1edbc 711 to be set. */
AnnaBridge 171:3a7713b1edbc 712 __O uint32_t INTENCLR; /*!< (@ 0x40064010) Interrupt Enable Clear register. Allows clearing
AnnaBridge 171:3a7713b1edbc 713 any combination of bits in the INTENSET register. Writing a
AnnaBridge 171:3a7713b1edbc 714 1 to any implemented bit position causes the corresponding bit
AnnaBridge 171:3a7713b1edbc 715 to be cleared. */
AnnaBridge 171:3a7713b1edbc 716 __I uint32_t RXDAT; /*!< (@ 0x40064014) Receiver Data register. Contains the last character
AnnaBridge 171:3a7713b1edbc 717 received. */
AnnaBridge 171:3a7713b1edbc 718 __I uint32_t RXDATSTAT; /*!< (@ 0x40064018) Receiver Data with Status register. Combines
AnnaBridge 171:3a7713b1edbc 719 the last character received with the current USART receive status.
AnnaBridge 171:3a7713b1edbc 720 Allows DMA or software to recover incoming data and status together. */
AnnaBridge 171:3a7713b1edbc 721 __IO uint32_t TXDAT; /*!< (@ 0x4006401C) Transmit Data register. Data to be transmitted
AnnaBridge 171:3a7713b1edbc 722 is written here. */
AnnaBridge 171:3a7713b1edbc 723 __IO uint32_t BRG; /*!< (@ 0x40064020) Baud Rate Generator register. 16-bit integer
AnnaBridge 171:3a7713b1edbc 724 baud rate divisor value. */
AnnaBridge 171:3a7713b1edbc 725 __I uint32_t INTSTAT; /*!< (@ 0x40064024) Interrupt status register. Reflects interrupts
AnnaBridge 171:3a7713b1edbc 726 that are currently enabled. */
AnnaBridge 171:3a7713b1edbc 727 __IO uint32_t OSR; /*!< (@ 0x40064028) Oversample selection register for asynchronous
AnnaBridge 171:3a7713b1edbc 728 communication. */
AnnaBridge 171:3a7713b1edbc 729 __IO uint32_t ADDR; /*!< (@ 0x4006402C) Address register for automatic address matching. */
AnnaBridge 171:3a7713b1edbc 730 } LPC_USART0_Type;
AnnaBridge 171:3a7713b1edbc 731
AnnaBridge 171:3a7713b1edbc 732
AnnaBridge 171:3a7713b1edbc 733 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 734 /* ================ CRC ================ */
AnnaBridge 171:3a7713b1edbc 735 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 736
AnnaBridge 171:3a7713b1edbc 737
AnnaBridge 171:3a7713b1edbc 738 /**
AnnaBridge 171:3a7713b1edbc 739 * @brief Cyclic Redundancy Check (CRC) engine (CRC)
AnnaBridge 171:3a7713b1edbc 740 */
AnnaBridge 171:3a7713b1edbc 741
AnnaBridge 171:3a7713b1edbc 742 typedef struct { /*!< (@ 0x50000000) CRC Structure */
AnnaBridge 171:3a7713b1edbc 743 __IO uint32_t MODE; /*!< (@ 0x50000000) CRC mode register */
AnnaBridge 171:3a7713b1edbc 744 __IO uint32_t SEED; /*!< (@ 0x50000004) CRC seed register */
AnnaBridge 171:3a7713b1edbc 745
AnnaBridge 171:3a7713b1edbc 746 union {
AnnaBridge 171:3a7713b1edbc 747 __O uint32_t WR_DATA; /*!< (@ 0x50000008) CRC data register */
AnnaBridge 171:3a7713b1edbc 748 __I uint32_t SUM; /*!< (@ 0x50000008) CRC checksum register */
AnnaBridge 171:3a7713b1edbc 749 };
AnnaBridge 171:3a7713b1edbc 750 } LPC_CRC_Type;
AnnaBridge 171:3a7713b1edbc 751
AnnaBridge 171:3a7713b1edbc 752
AnnaBridge 171:3a7713b1edbc 753 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 754 /* ================ SCT ================ */
AnnaBridge 171:3a7713b1edbc 755 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 756
AnnaBridge 171:3a7713b1edbc 757
AnnaBridge 171:3a7713b1edbc 758 /**
AnnaBridge 171:3a7713b1edbc 759 * @brief State Configurable Timer (SCT) (SCT)
AnnaBridge 171:3a7713b1edbc 760 */
AnnaBridge 171:3a7713b1edbc 761
AnnaBridge 171:3a7713b1edbc 762 typedef struct { /*!< (@ 0x50004000) SCT Structure */
AnnaBridge 171:3a7713b1edbc 763 __IO uint32_t CONFIG; /*!< (@ 0x50004000) SCT configuration register */
AnnaBridge 171:3a7713b1edbc 764 __IO uint32_t CTRL; /*!< (@ 0x50004004) SCT control register */
AnnaBridge 171:3a7713b1edbc 765 __IO uint32_t LIMIT; /*!< (@ 0x50004008) SCT limit register */
AnnaBridge 171:3a7713b1edbc 766 __IO uint32_t HALT; /*!< (@ 0x5000400C) SCT halt condition register */
AnnaBridge 171:3a7713b1edbc 767 __IO uint32_t STOP; /*!< (@ 0x50004010) SCT stop condition register */
AnnaBridge 171:3a7713b1edbc 768 __IO uint32_t START; /*!< (@ 0x50004014) SCT start condition register */
AnnaBridge 171:3a7713b1edbc 769 __I uint32_t RESERVED0[10];
AnnaBridge 171:3a7713b1edbc 770 __IO uint32_t COUNT; /*!< (@ 0x50004040) SCT counter register */
AnnaBridge 171:3a7713b1edbc 771 __IO uint32_t STATE; /*!< (@ 0x50004044) SCT state register */
AnnaBridge 171:3a7713b1edbc 772 __I uint32_t INPUT; /*!< (@ 0x50004048) SCT input register */
AnnaBridge 171:3a7713b1edbc 773 __IO uint32_t REGMODE; /*!< (@ 0x5000404C) SCT match/capture registers mode register */
AnnaBridge 171:3a7713b1edbc 774 __IO uint32_t OUTPUT; /*!< (@ 0x50004050) SCT output register */
AnnaBridge 171:3a7713b1edbc 775 __IO uint32_t OUTPUTDIRCTRL; /*!< (@ 0x50004054) SCT output counter direction control register */
AnnaBridge 171:3a7713b1edbc 776 __IO uint32_t RES; /*!< (@ 0x50004058) SCT conflict resolution register */
AnnaBridge 171:3a7713b1edbc 777 __IO uint32_t DMAREQ0; /*!< (@ 0x5000405C) SCT DMA request 0 register */
AnnaBridge 171:3a7713b1edbc 778 __IO uint32_t DMAREQ1; /*!< (@ 0x50004060) SCT DMA request 1 register */
AnnaBridge 171:3a7713b1edbc 779 __I uint32_t RESERVED1[35];
AnnaBridge 171:3a7713b1edbc 780 __IO uint32_t EVEN; /*!< (@ 0x500040F0) SCT event enable register */
AnnaBridge 171:3a7713b1edbc 781 __IO uint32_t EVFLAG; /*!< (@ 0x500040F4) SCT event flag register */
AnnaBridge 171:3a7713b1edbc 782 __IO uint32_t CONEN; /*!< (@ 0x500040F8) SCT conflict enable register */
AnnaBridge 171:3a7713b1edbc 783 __IO uint32_t CONFLAG; /*!< (@ 0x500040FC) SCT conflict flag register */
AnnaBridge 171:3a7713b1edbc 784
AnnaBridge 171:3a7713b1edbc 785 union {
AnnaBridge 171:3a7713b1edbc 786 union {
AnnaBridge 171:3a7713b1edbc 787 __IO uint32_t CAP0; /*!< (@ 0x50004100) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 788 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 789 __IO uint32_t MATCH0; /*!< (@ 0x50004100) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 790 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 791 };
AnnaBridge 171:3a7713b1edbc 792
AnnaBridge 171:3a7713b1edbc 793 union {
AnnaBridge 171:3a7713b1edbc 794 __IO uint32_t CAP1; /*!< (@ 0x50004104) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 795 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 796 __IO uint32_t MATCH1; /*!< (@ 0x50004104) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 797 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 798 };
AnnaBridge 171:3a7713b1edbc 799
AnnaBridge 171:3a7713b1edbc 800 union {
AnnaBridge 171:3a7713b1edbc 801 __IO uint32_t CAP2; /*!< (@ 0x50004108) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 802 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 803 __IO uint32_t MATCH2; /*!< (@ 0x50004108) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 804 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 805 };
AnnaBridge 171:3a7713b1edbc 806
AnnaBridge 171:3a7713b1edbc 807 union {
AnnaBridge 171:3a7713b1edbc 808 __IO uint32_t MATCH3; /*!< (@ 0x5000410C) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 809 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 810 __IO uint32_t CAP3; /*!< (@ 0x5000410C) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 811 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 812 };
AnnaBridge 171:3a7713b1edbc 813
AnnaBridge 171:3a7713b1edbc 814 union {
AnnaBridge 171:3a7713b1edbc 815 __IO uint32_t CAP4; /*!< (@ 0x50004110) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 816 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 817 __IO uint32_t MATCH4; /*!< (@ 0x50004110) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 818 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 819 };
AnnaBridge 171:3a7713b1edbc 820
AnnaBridge 171:3a7713b1edbc 821 union {
AnnaBridge 171:3a7713b1edbc 822 __IO uint32_t MATCH5; /*!< (@ 0x50004114) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 823 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 824 __IO uint32_t CAP5; /*!< (@ 0x50004114) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 825 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 826 };
AnnaBridge 171:3a7713b1edbc 827
AnnaBridge 171:3a7713b1edbc 828 union {
AnnaBridge 171:3a7713b1edbc 829 __IO uint32_t CAP6; /*!< (@ 0x50004118) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 830 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 831 __IO uint32_t MATCH6; /*!< (@ 0x50004118) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 832 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 833 };
AnnaBridge 171:3a7713b1edbc 834
AnnaBridge 171:3a7713b1edbc 835 union {
AnnaBridge 171:3a7713b1edbc 836 __IO uint32_t CAP7; /*!< (@ 0x5000411C) SCT capture register of capture channel 0 to
AnnaBridge 171:3a7713b1edbc 837 7; REGMOD0 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 838 __IO uint32_t MATCH7; /*!< (@ 0x5000411C) SCT match value register of match channels 0
AnnaBridge 171:3a7713b1edbc 839 to 7; REGMOD0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 840 };
AnnaBridge 171:3a7713b1edbc 841 __IO uint32_t CAP[8];
AnnaBridge 171:3a7713b1edbc 842 __IO uint32_t MATCH[8];
AnnaBridge 171:3a7713b1edbc 843 };
AnnaBridge 171:3a7713b1edbc 844 __I uint32_t RESERVED2[56];
AnnaBridge 171:3a7713b1edbc 845
AnnaBridge 171:3a7713b1edbc 846 union {
AnnaBridge 171:3a7713b1edbc 847 struct {
AnnaBridge 171:3a7713b1edbc 848 union {
AnnaBridge 171:3a7713b1edbc 849 __IO uint32_t CAPCTRL0; /*!< (@ 0x50004200) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 850 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 851 __IO uint32_t MATCHREL0; /*!< (@ 0x50004200) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 852 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 853 };
AnnaBridge 171:3a7713b1edbc 854
AnnaBridge 171:3a7713b1edbc 855 union {
AnnaBridge 171:3a7713b1edbc 856 __IO uint32_t CAPCTRL1; /*!< (@ 0x50004204) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 857 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 858 __IO uint32_t MATCHREL1; /*!< (@ 0x50004204) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 859 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 860 };
AnnaBridge 171:3a7713b1edbc 861
AnnaBridge 171:3a7713b1edbc 862 union {
AnnaBridge 171:3a7713b1edbc 863 __IO uint32_t CAPCTRL2; /*!< (@ 0x50004208) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 864 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 865 __IO uint32_t MATCHREL2; /*!< (@ 0x50004208) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 866 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 867 };
AnnaBridge 171:3a7713b1edbc 868
AnnaBridge 171:3a7713b1edbc 869 union {
AnnaBridge 171:3a7713b1edbc 870 __IO uint32_t MATCHREL3; /*!< (@ 0x5000420C) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 871 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 872 __IO uint32_t CAPCTRL3; /*!< (@ 0x5000420C) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 873 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 874 };
AnnaBridge 171:3a7713b1edbc 875
AnnaBridge 171:3a7713b1edbc 876 union {
AnnaBridge 171:3a7713b1edbc 877 __IO uint32_t CAPCTRL4; /*!< (@ 0x50004210) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 878 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 879 __IO uint32_t MATCHREL4; /*!< (@ 0x50004210) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 880 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 881 };
AnnaBridge 171:3a7713b1edbc 882
AnnaBridge 171:3a7713b1edbc 883 union {
AnnaBridge 171:3a7713b1edbc 884 __IO uint32_t CAPCTRL5; /*!< (@ 0x50004214) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 885 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 886 __IO uint32_t MATCHREL5; /*!< (@ 0x50004214) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 887 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 888 };
AnnaBridge 171:3a7713b1edbc 889
AnnaBridge 171:3a7713b1edbc 890 union {
AnnaBridge 171:3a7713b1edbc 891 __IO uint32_t CAPCTRL6; /*!< (@ 0x50004218) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 892 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 893 __IO uint32_t MATCHREL6; /*!< (@ 0x50004218) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 894 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 895 };
AnnaBridge 171:3a7713b1edbc 896
AnnaBridge 171:3a7713b1edbc 897 union {
AnnaBridge 171:3a7713b1edbc 898 __IO uint32_t CAPCTRL7; /*!< (@ 0x5000421C) SCT capture control register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 899 = 1 to REGMODE7 = 1 */
AnnaBridge 171:3a7713b1edbc 900 __IO uint32_t MATCHREL7; /*!< (@ 0x5000421C) SCT match reload value register 0 to 7; REGMOD0
AnnaBridge 171:3a7713b1edbc 901 = 0 to REGMODE7 = 0 */
AnnaBridge 171:3a7713b1edbc 902 };
AnnaBridge 171:3a7713b1edbc 903 };
AnnaBridge 171:3a7713b1edbc 904 __IO uint32_t MATCHREL[8];
AnnaBridge 171:3a7713b1edbc 905 };
AnnaBridge 171:3a7713b1edbc 906 __I uint32_t RESERVED3[56];
AnnaBridge 171:3a7713b1edbc 907
AnnaBridge 171:3a7713b1edbc 908 union {
AnnaBridge 171:3a7713b1edbc 909 struct {
AnnaBridge 171:3a7713b1edbc 910 __IO uint32_t EV0_STATE; /*!< (@ 0x50004300) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 911 __IO uint32_t EV0_CTRL; /*!< (@ 0x50004304) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 912 __IO uint32_t EV1_STATE; /*!< (@ 0x50004308) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 913 __IO uint32_t EV1_CTRL; /*!< (@ 0x5000430C) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 914 __IO uint32_t EV2_STATE; /*!< (@ 0x50004310) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 915 __IO uint32_t EV2_CTRL; /*!< (@ 0x50004314) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 916 __IO uint32_t EV3_STATE; /*!< (@ 0x50004318) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 917 __IO uint32_t EV3_CTRL; /*!< (@ 0x5000431C) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 918 __IO uint32_t EV4_STATE; /*!< (@ 0x50004320) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 919 __IO uint32_t EV4_CTRL; /*!< (@ 0x50004324) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 920 __IO uint32_t EV5_STATE; /*!< (@ 0x50004328) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 921 __IO uint32_t EV5_CTRL; /*!< (@ 0x5000432C) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 922 __IO uint32_t EV6_STATE; /*!< (@ 0x50004330) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 923 __IO uint32_t EV6_CTRL; /*!< (@ 0x50004334) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 924 __IO uint32_t EV7_STATE; /*!< (@ 0x50004338) SCT event state register 0 */
AnnaBridge 171:3a7713b1edbc 925 __IO uint32_t EV7_CTRL; /*!< (@ 0x5000433C) SCT event control register 0 */
AnnaBridge 171:3a7713b1edbc 926 };
AnnaBridge 171:3a7713b1edbc 927 __IO struct {
AnnaBridge 171:3a7713b1edbc 928 uint32_t STATE;
AnnaBridge 171:3a7713b1edbc 929 uint32_t CTRL;
AnnaBridge 171:3a7713b1edbc 930 } EVENT[8];
AnnaBridge 171:3a7713b1edbc 931 };
AnnaBridge 171:3a7713b1edbc 932
AnnaBridge 171:3a7713b1edbc 933 __I uint32_t RESERVED4[112];
AnnaBridge 171:3a7713b1edbc 934
AnnaBridge 171:3a7713b1edbc 935 union {
AnnaBridge 171:3a7713b1edbc 936 struct {
AnnaBridge 171:3a7713b1edbc 937 __IO uint32_t OUT0_SET; /*!< (@ 0x50004500) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 938 __IO uint32_t OUT0_CLR; /*!< (@ 0x50004504) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 939 __IO uint32_t OUT1_SET; /*!< (@ 0x50004508) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 940 __IO uint32_t OUT1_CLR; /*!< (@ 0x5000450C) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 941 __IO uint32_t OUT2_SET; /*!< (@ 0x50004510) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 942 __IO uint32_t OUT2_CLR; /*!< (@ 0x50004514) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 943 __IO uint32_t OUT3_SET; /*!< (@ 0x50004518) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 944 __IO uint32_t OUT3_CLR; /*!< (@ 0x5000451C) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 945 __IO uint32_t OUT4_SET; /*!< (@ 0x50004520) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 946 __IO uint32_t OUT4_CLR; /*!< (@ 0x50004524) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 947 __IO uint32_t OUT5_SET; /*!< (@ 0x50004528) SCT output 0 set register */
AnnaBridge 171:3a7713b1edbc 948 __IO uint32_t OUT5_CLR; /*!< (@ 0x5000452C) SCT output 0 clear register */
AnnaBridge 171:3a7713b1edbc 949 };
AnnaBridge 171:3a7713b1edbc 950 __IO struct {
AnnaBridge 171:3a7713b1edbc 951 uint32_t SET;
AnnaBridge 171:3a7713b1edbc 952 uint32_t CLR;
AnnaBridge 171:3a7713b1edbc 953 } OUT[6];
AnnaBridge 171:3a7713b1edbc 954 };
AnnaBridge 171:3a7713b1edbc 955
AnnaBridge 171:3a7713b1edbc 956 } LPC_SCT_Type;
AnnaBridge 171:3a7713b1edbc 957
AnnaBridge 171:3a7713b1edbc 958
AnnaBridge 171:3a7713b1edbc 959 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 960 /* ================ DMA ================ */
AnnaBridge 171:3a7713b1edbc 961 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 962
AnnaBridge 171:3a7713b1edbc 963
AnnaBridge 171:3a7713b1edbc 964 /**
AnnaBridge 171:3a7713b1edbc 965 * @brief DMA controller (DMA)
AnnaBridge 171:3a7713b1edbc 966 */
AnnaBridge 171:3a7713b1edbc 967
AnnaBridge 171:3a7713b1edbc 968 typedef struct { /*!< (@ 0x50008000) DMA Structure */
AnnaBridge 171:3a7713b1edbc 969 __IO uint32_t CTRL; /*!< (@ 0x50008000) DMA control. */
AnnaBridge 171:3a7713b1edbc 970 __I uint32_t INTSTAT; /*!< (@ 0x50008004) Interrupt status. */
AnnaBridge 171:3a7713b1edbc 971 __IO uint32_t SRAMBASE; /*!< (@ 0x50008008) SRAM address of the channel configuration table. */
AnnaBridge 171:3a7713b1edbc 972 __I uint32_t RESERVED0[5];
AnnaBridge 171:3a7713b1edbc 973 __IO uint32_t ENABLESET0; /*!< (@ 0x50008020) Channel Enable read and Set for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 974 __I uint32_t RESERVED1;
AnnaBridge 171:3a7713b1edbc 975 __O uint32_t ENABLECLR0; /*!< (@ 0x50008028) Channel Enable Clear for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 976 __I uint32_t RESERVED2;
AnnaBridge 171:3a7713b1edbc 977 __I uint32_t ACTIVE0; /*!< (@ 0x50008030) Channel Active status for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 978 __I uint32_t RESERVED3;
AnnaBridge 171:3a7713b1edbc 979 __I uint32_t BUSY0; /*!< (@ 0x50008038) Channel Busy status for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 980 __I uint32_t RESERVED4;
AnnaBridge 171:3a7713b1edbc 981 __IO uint32_t ERRINT0; /*!< (@ 0x50008040) Error Interrupt status for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 982 __I uint32_t RESERVED5;
AnnaBridge 171:3a7713b1edbc 983 __IO uint32_t INTENSET0; /*!< (@ 0x50008048) Interrupt Enable read and Set for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 984 __I uint32_t RESERVED6;
AnnaBridge 171:3a7713b1edbc 985 __O uint32_t INTENCLR0; /*!< (@ 0x50008050) Interrupt Enable Clear for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 986 __I uint32_t RESERVED7;
AnnaBridge 171:3a7713b1edbc 987 __IO uint32_t INTA0; /*!< (@ 0x50008058) Interrupt A status for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 988 __I uint32_t RESERVED8;
AnnaBridge 171:3a7713b1edbc 989 __IO uint32_t INTB0; /*!< (@ 0x50008060) Interrupt B status for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 990 __I uint32_t RESERVED9;
AnnaBridge 171:3a7713b1edbc 991 __O uint32_t SETVALID0; /*!< (@ 0x50008068) Set ValidPending control bits for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 992 __I uint32_t RESERVED10;
AnnaBridge 171:3a7713b1edbc 993 __O uint32_t SETTRIG0; /*!< (@ 0x50008070) Set Trigger control bits for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 994 __I uint32_t RESERVED11;
AnnaBridge 171:3a7713b1edbc 995 __O uint32_t ABORT0; /*!< (@ 0x50008078) Channel Abort control for all DMA channels. */
AnnaBridge 171:3a7713b1edbc 996 __I uint32_t RESERVED12[225];
AnnaBridge 171:3a7713b1edbc 997 __IO uint32_t CFG0; /*!< (@ 0x50008400) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 998 __I uint32_t CTLSTAT0; /*!< (@ 0x50008404) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 999 __IO uint32_t XFERCFG0; /*!< (@ 0x50008408) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1000 0. */
AnnaBridge 171:3a7713b1edbc 1001 __I uint32_t RESERVED13;
AnnaBridge 171:3a7713b1edbc 1002 __IO uint32_t CFG1; /*!< (@ 0x50008410) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1003 __I uint32_t CTLSTAT1; /*!< (@ 0x50008414) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1004 __IO uint32_t XFERCFG1; /*!< (@ 0x50008418) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1005 0. */
AnnaBridge 171:3a7713b1edbc 1006 __I uint32_t RESERVED14;
AnnaBridge 171:3a7713b1edbc 1007 __IO uint32_t CFG2; /*!< (@ 0x50008420) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1008 __I uint32_t CTLSTAT2; /*!< (@ 0x50008424) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1009 __IO uint32_t XFERCFG2; /*!< (@ 0x50008428) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1010 0. */
AnnaBridge 171:3a7713b1edbc 1011 __I uint32_t RESERVED15;
AnnaBridge 171:3a7713b1edbc 1012 __IO uint32_t CFG3; /*!< (@ 0x50008430) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1013 __I uint32_t CTLSTAT3; /*!< (@ 0x50008434) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1014 __IO uint32_t XFERCFG3; /*!< (@ 0x50008438) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1015 0. */
AnnaBridge 171:3a7713b1edbc 1016 __I uint32_t RESERVED16;
AnnaBridge 171:3a7713b1edbc 1017 __IO uint32_t CFG4; /*!< (@ 0x50008440) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1018 __I uint32_t CTLSTAT4; /*!< (@ 0x50008444) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1019 __IO uint32_t XFERCFG4; /*!< (@ 0x50008448) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1020 0. */
AnnaBridge 171:3a7713b1edbc 1021 __I uint32_t RESERVED17;
AnnaBridge 171:3a7713b1edbc 1022 __IO uint32_t CFG5; /*!< (@ 0x50008450) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1023 __I uint32_t CTLSTAT5; /*!< (@ 0x50008454) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1024 __IO uint32_t XFERCFG5; /*!< (@ 0x50008458) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1025 0. */
AnnaBridge 171:3a7713b1edbc 1026 __I uint32_t RESERVED18;
AnnaBridge 171:3a7713b1edbc 1027 __IO uint32_t CFG6; /*!< (@ 0x50008460) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1028 __I uint32_t CTLSTAT6; /*!< (@ 0x50008464) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1029 __IO uint32_t XFERCFG6; /*!< (@ 0x50008468) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1030 0. */
AnnaBridge 171:3a7713b1edbc 1031 __I uint32_t RESERVED19;
AnnaBridge 171:3a7713b1edbc 1032 __IO uint32_t CFG7; /*!< (@ 0x50008470) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1033 __I uint32_t CTLSTAT7; /*!< (@ 0x50008474) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1034 __IO uint32_t XFERCFG7; /*!< (@ 0x50008478) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1035 0. */
AnnaBridge 171:3a7713b1edbc 1036 __I uint32_t RESERVED20;
AnnaBridge 171:3a7713b1edbc 1037 __IO uint32_t CFG8; /*!< (@ 0x50008480) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1038 __I uint32_t CTLSTAT8; /*!< (@ 0x50008484) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1039 __IO uint32_t XFERCFG8; /*!< (@ 0x50008488) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1040 0. */
AnnaBridge 171:3a7713b1edbc 1041 __I uint32_t RESERVED21;
AnnaBridge 171:3a7713b1edbc 1042 __IO uint32_t CFG9; /*!< (@ 0x50008490) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1043 __I uint32_t CTLSTAT9; /*!< (@ 0x50008494) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1044 __IO uint32_t XFERCFG9; /*!< (@ 0x50008498) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1045 0. */
AnnaBridge 171:3a7713b1edbc 1046 __I uint32_t RESERVED22;
AnnaBridge 171:3a7713b1edbc 1047 __IO uint32_t CFG10; /*!< (@ 0x500084A0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1048 __I uint32_t CTLSTAT10; /*!< (@ 0x500084A4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1049 __IO uint32_t XFERCFG10; /*!< (@ 0x500084A8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1050 0. */
AnnaBridge 171:3a7713b1edbc 1051 __I uint32_t RESERVED23;
AnnaBridge 171:3a7713b1edbc 1052 __IO uint32_t CFG11; /*!< (@ 0x500084B0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1053 __I uint32_t CTLSTAT11; /*!< (@ 0x500084B4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1054 __IO uint32_t XFERCFG11; /*!< (@ 0x500084B8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1055 0. */
AnnaBridge 171:3a7713b1edbc 1056 __I uint32_t RESERVED24;
AnnaBridge 171:3a7713b1edbc 1057 __IO uint32_t CFG12; /*!< (@ 0x500084C0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1058 __I uint32_t CTLSTAT12; /*!< (@ 0x500084C4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1059 __IO uint32_t XFERCFG12; /*!< (@ 0x500084C8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1060 0. */
AnnaBridge 171:3a7713b1edbc 1061 __I uint32_t RESERVED25;
AnnaBridge 171:3a7713b1edbc 1062 __IO uint32_t CFG13; /*!< (@ 0x500084D0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1063 __I uint32_t CTLSTAT13; /*!< (@ 0x500084D4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1064 __IO uint32_t XFERCFG13; /*!< (@ 0x500084D8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1065 0. */
AnnaBridge 171:3a7713b1edbc 1066 __I uint32_t RESERVED26;
AnnaBridge 171:3a7713b1edbc 1067 __IO uint32_t CFG14; /*!< (@ 0x500084E0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1068 __I uint32_t CTLSTAT14; /*!< (@ 0x500084E4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1069 __IO uint32_t XFERCFG14; /*!< (@ 0x500084E8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1070 0. */
AnnaBridge 171:3a7713b1edbc 1071 __I uint32_t RESERVED27;
AnnaBridge 171:3a7713b1edbc 1072 __IO uint32_t CFG15; /*!< (@ 0x500084F0) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1073 __I uint32_t CTLSTAT15; /*!< (@ 0x500084F4) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1074 __IO uint32_t XFERCFG15; /*!< (@ 0x500084F8) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1075 0. */
AnnaBridge 171:3a7713b1edbc 1076 __I uint32_t RESERVED28;
AnnaBridge 171:3a7713b1edbc 1077 __IO uint32_t CFG16; /*!< (@ 0x50008500) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1078 __I uint32_t CTLSTAT16; /*!< (@ 0x50008504) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1079 __IO uint32_t XFERCFG16; /*!< (@ 0x50008508) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1080 0. */
AnnaBridge 171:3a7713b1edbc 1081 __I uint32_t RESERVED29;
AnnaBridge 171:3a7713b1edbc 1082 __IO uint32_t CFG17; /*!< (@ 0x50008510) Configuration register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1083 __I uint32_t CTLSTAT17; /*!< (@ 0x50008514) Control and status register for DMA channel 0. */
AnnaBridge 171:3a7713b1edbc 1084 __IO uint32_t XFERCFG17; /*!< (@ 0x50008518) Transfer configuration register for DMA channel
AnnaBridge 171:3a7713b1edbc 1085 0. */
AnnaBridge 171:3a7713b1edbc 1086 } LPC_DMA_Type;
AnnaBridge 171:3a7713b1edbc 1087
AnnaBridge 171:3a7713b1edbc 1088
AnnaBridge 171:3a7713b1edbc 1089 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1090 /* ================ GPIO_PORT ================ */
AnnaBridge 171:3a7713b1edbc 1091 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1092
AnnaBridge 171:3a7713b1edbc 1093
AnnaBridge 171:3a7713b1edbc 1094 /**
AnnaBridge 171:3a7713b1edbc 1095 * @brief General Purpose I/O port (GPIO) (GPIO_PORT)
AnnaBridge 171:3a7713b1edbc 1096 */
AnnaBridge 171:3a7713b1edbc 1097
AnnaBridge 171:3a7713b1edbc 1098 typedef struct { /*!< (@ 0xA0000000) GPIO_PORT Structure */
AnnaBridge 171:3a7713b1edbc 1099 __IO uint8_t B0; /*!< (@ 0xA0000000) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1100 __IO uint8_t B1; /*!< (@ 0xA0000001) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1101 __IO uint8_t B2; /*!< (@ 0xA0000002) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1102 __IO uint8_t B3; /*!< (@ 0xA0000003) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1103 __IO uint8_t B4; /*!< (@ 0xA0000004) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1104 __IO uint8_t B5; /*!< (@ 0xA0000005) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1105 __IO uint8_t B6; /*!< (@ 0xA0000006) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1106 __IO uint8_t B7; /*!< (@ 0xA0000007) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1107 __IO uint8_t B8; /*!< (@ 0xA0000008) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1108 __IO uint8_t B9; /*!< (@ 0xA0000009) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1109 __IO uint8_t B10; /*!< (@ 0xA000000A) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1110 __IO uint8_t B11; /*!< (@ 0xA000000B) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1111 __IO uint8_t B12; /*!< (@ 0xA000000C) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1112 __IO uint8_t B13; /*!< (@ 0xA000000D) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1113 __IO uint8_t B14; /*!< (@ 0xA000000E) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1114 __IO uint8_t B15; /*!< (@ 0xA000000F) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1115 __IO uint8_t B16; /*!< (@ 0xA0000010) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1116 __IO uint8_t B17; /*!< (@ 0xA0000011) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1117 __IO uint8_t B18; /*!< (@ 0xA0000012) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1118 __IO uint8_t B19; /*!< (@ 0xA0000013) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1119 __IO uint8_t B20; /*!< (@ 0xA0000014) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1120 __IO uint8_t B21; /*!< (@ 0xA0000015) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1121 __IO uint8_t B22; /*!< (@ 0xA0000016) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1122 __IO uint8_t B23; /*!< (@ 0xA0000017) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1123 __IO uint8_t B24; /*!< (@ 0xA0000018) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1124 __IO uint8_t B25; /*!< (@ 0xA0000019) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1125 __IO uint8_t B26; /*!< (@ 0xA000001A) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1126 __IO uint8_t B27; /*!< (@ 0xA000001B) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1127 __IO uint8_t B28; /*!< (@ 0xA000001C) Byte pin registers port 0; pins PIO0_0 to PIO0_28 */
AnnaBridge 171:3a7713b1edbc 1128 __I uint8_t RESERVED0[4067];
AnnaBridge 171:3a7713b1edbc 1129 __IO uint32_t W0; /*!< (@ 0xA0001000) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1130 __IO uint32_t W1; /*!< (@ 0xA0001004) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1131 __IO uint32_t W2; /*!< (@ 0xA0001008) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1132 __IO uint32_t W3; /*!< (@ 0xA000100C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1133 __IO uint32_t W4; /*!< (@ 0xA0001010) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1134 __IO uint32_t W5; /*!< (@ 0xA0001014) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1135 __IO uint32_t W6; /*!< (@ 0xA0001018) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1136 __IO uint32_t W7; /*!< (@ 0xA000101C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1137 __IO uint32_t W8; /*!< (@ 0xA0001020) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1138 __IO uint32_t W9; /*!< (@ 0xA0001024) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1139 __IO uint32_t W10; /*!< (@ 0xA0001028) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1140 __IO uint32_t W11; /*!< (@ 0xA000102C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1141 __IO uint32_t W12; /*!< (@ 0xA0001030) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1142 __IO uint32_t W13; /*!< (@ 0xA0001034) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1143 __IO uint32_t W14; /*!< (@ 0xA0001038) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1144 __IO uint32_t W15; /*!< (@ 0xA000103C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1145 __IO uint32_t W16; /*!< (@ 0xA0001040) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1146 __IO uint32_t W17; /*!< (@ 0xA0001044) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1147 __IO uint32_t W18; /*!< (@ 0xA0001048) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1148 __IO uint32_t W19; /*!< (@ 0xA000104C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1149 __IO uint32_t W20; /*!< (@ 0xA0001050) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1150 __IO uint32_t W21; /*!< (@ 0xA0001054) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1151 __IO uint32_t W22; /*!< (@ 0xA0001058) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1152 __IO uint32_t W23; /*!< (@ 0xA000105C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1153 __IO uint32_t W24; /*!< (@ 0xA0001060) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1154 __IO uint32_t W25; /*!< (@ 0xA0001064) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1155 __IO uint32_t W26; /*!< (@ 0xA0001068) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1156 __IO uint32_t W27; /*!< (@ 0xA000106C) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1157 __IO uint32_t W28; /*!< (@ 0xA0001070) Word pin registers port 0 */
AnnaBridge 171:3a7713b1edbc 1158 __I uint32_t RESERVED1[995];
AnnaBridge 171:3a7713b1edbc 1159 __IO uint32_t DIR0; /*!< (@ 0xA0002000) Direction registers port 0 */
AnnaBridge 171:3a7713b1edbc 1160 __I uint32_t RESERVED2[31];
AnnaBridge 171:3a7713b1edbc 1161 __IO uint32_t MASK0; /*!< (@ 0xA0002080) Mask register port 0 */
AnnaBridge 171:3a7713b1edbc 1162 __I uint32_t RESERVED3[31];
AnnaBridge 171:3a7713b1edbc 1163 __IO uint32_t PIN0; /*!< (@ 0xA0002100) Port pin register port 0 */
AnnaBridge 171:3a7713b1edbc 1164 __I uint32_t RESERVED4[31];
AnnaBridge 171:3a7713b1edbc 1165 __IO uint32_t MPIN0; /*!< (@ 0xA0002180) Masked port register port 0 */
AnnaBridge 171:3a7713b1edbc 1166 __I uint32_t RESERVED5[31];
AnnaBridge 171:3a7713b1edbc 1167 __IO uint32_t SET0; /*!< (@ 0xA0002200) Write: Set register for port 0 Read: output bits
AnnaBridge 171:3a7713b1edbc 1168 for port 0 */
AnnaBridge 171:3a7713b1edbc 1169 __I uint32_t RESERVED6[31];
AnnaBridge 171:3a7713b1edbc 1170 __O uint32_t CLR0; /*!< (@ 0xA0002280) Clear port 0 */
AnnaBridge 171:3a7713b1edbc 1171 __I uint32_t RESERVED7[31];
AnnaBridge 171:3a7713b1edbc 1172 __O uint32_t NOT0; /*!< (@ 0xA0002300) Toggle port 0 */
AnnaBridge 171:3a7713b1edbc 1173 __I uint32_t RESERVED8[31];
AnnaBridge 171:3a7713b1edbc 1174 __O uint32_t DIRSET0; /*!< (@ 0xA0002380) Set pin direction bits for port 0. */
AnnaBridge 171:3a7713b1edbc 1175 __I uint32_t RESERVED9[31];
AnnaBridge 171:3a7713b1edbc 1176 __O uint32_t DIRCLR0; /*!< (@ 0xA0002400) Clear pin direction bits for port 0. */
AnnaBridge 171:3a7713b1edbc 1177 __I uint32_t RESERVED10[31];
AnnaBridge 171:3a7713b1edbc 1178 __O uint32_t DIRNOT0; /*!< (@ 0xA0002480) Toggle pin direction bits for port 0. */
AnnaBridge 171:3a7713b1edbc 1179 } LPC_GPIO_PORT_Type;
AnnaBridge 171:3a7713b1edbc 1180
AnnaBridge 171:3a7713b1edbc 1181
AnnaBridge 171:3a7713b1edbc 1182 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1183 /* ================ PIN_INT ================ */
AnnaBridge 171:3a7713b1edbc 1184 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1185
AnnaBridge 171:3a7713b1edbc 1186
AnnaBridge 171:3a7713b1edbc 1187 /**
AnnaBridge 171:3a7713b1edbc 1188 * @brief Pin interrupt and pattern match engine (PIN_INT)
AnnaBridge 171:3a7713b1edbc 1189 */
AnnaBridge 171:3a7713b1edbc 1190
AnnaBridge 171:3a7713b1edbc 1191 typedef struct { /*!< (@ 0xA0004000) PIN_INT Structure */
AnnaBridge 171:3a7713b1edbc 1192 __IO uint32_t ISEL; /*!< (@ 0xA0004000) Pin Interrupt Mode register */
AnnaBridge 171:3a7713b1edbc 1193 __IO uint32_t IENR; /*!< (@ 0xA0004004) Pin interrupt level or rising edge interrupt
AnnaBridge 171:3a7713b1edbc 1194 enable register */
AnnaBridge 171:3a7713b1edbc 1195 __O uint32_t SIENR; /*!< (@ 0xA0004008) Pin interrupt level (rising edge) interrupt set
AnnaBridge 171:3a7713b1edbc 1196 register */
AnnaBridge 171:3a7713b1edbc 1197 __O uint32_t CIENR; /*!< (@ 0xA000400C) Pin interrupt level or rising edge interrupt
AnnaBridge 171:3a7713b1edbc 1198 clear register */
AnnaBridge 171:3a7713b1edbc 1199 __IO uint32_t IENF; /*!< (@ 0xA0004010) Pin interrupt active level or falling edge interrupt
AnnaBridge 171:3a7713b1edbc 1200 enable register */
AnnaBridge 171:3a7713b1edbc 1201 __O uint32_t SIENF; /*!< (@ 0xA0004014) Pin interrupt active level or falling edge interrupt
AnnaBridge 171:3a7713b1edbc 1202 set register */
AnnaBridge 171:3a7713b1edbc 1203 __O uint32_t CIENF; /*!< (@ 0xA0004018) Pin interrupt active level (falling edge) interrupt
AnnaBridge 171:3a7713b1edbc 1204 clear register */
AnnaBridge 171:3a7713b1edbc 1205 __IO uint32_t RISE; /*!< (@ 0xA000401C) Pin interrupt rising edge register */
AnnaBridge 171:3a7713b1edbc 1206 __IO uint32_t FALL; /*!< (@ 0xA0004020) Pin interrupt falling edge register */
AnnaBridge 171:3a7713b1edbc 1207 __IO uint32_t IST; /*!< (@ 0xA0004024) Pin interrupt status register */
AnnaBridge 171:3a7713b1edbc 1208 __IO uint32_t PMCTRL; /*!< (@ 0xA0004028) GPIO pattern match interrupt control register */
AnnaBridge 171:3a7713b1edbc 1209 __IO uint32_t PMSRC; /*!< (@ 0xA000402C) GPIO pattern match interrupt bit-slice source
AnnaBridge 171:3a7713b1edbc 1210 register */
AnnaBridge 171:3a7713b1edbc 1211 __IO uint32_t PMCFG; /*!< (@ 0xA0004030) GPIO pattern match interrupt bit slice configuration
AnnaBridge 171:3a7713b1edbc 1212 register */
AnnaBridge 171:3a7713b1edbc 1213 } LPC_PIN_INT_Type;
AnnaBridge 171:3a7713b1edbc 1214
AnnaBridge 171:3a7713b1edbc 1215
AnnaBridge 171:3a7713b1edbc 1216 /* -------------------- End of section using anonymous unions ------------------- */
AnnaBridge 171:3a7713b1edbc 1217 #if defined(__CC_ARM)
AnnaBridge 171:3a7713b1edbc 1218 #pragma pop
AnnaBridge 171:3a7713b1edbc 1219 #elif defined(__ICCARM__)
AnnaBridge 171:3a7713b1edbc 1220 /* leave anonymous unions enabled */
AnnaBridge 171:3a7713b1edbc 1221 #elif defined(__GNUC__)
AnnaBridge 171:3a7713b1edbc 1222 /* anonymous unions are enabled by default */
AnnaBridge 171:3a7713b1edbc 1223 #elif defined(__TMS470__)
AnnaBridge 171:3a7713b1edbc 1224 /* anonymous unions are enabled by default */
AnnaBridge 171:3a7713b1edbc 1225 #elif defined(__TASKING__)
AnnaBridge 171:3a7713b1edbc 1226 #pragma warning restore
AnnaBridge 171:3a7713b1edbc 1227 #else
AnnaBridge 171:3a7713b1edbc 1228 #warning Not supported compiler type
AnnaBridge 171:3a7713b1edbc 1229 #endif
AnnaBridge 171:3a7713b1edbc 1230
AnnaBridge 171:3a7713b1edbc 1231
AnnaBridge 171:3a7713b1edbc 1232
AnnaBridge 171:3a7713b1edbc 1233
AnnaBridge 171:3a7713b1edbc 1234 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1235 /* ================ Peripheral memory map ================ */
AnnaBridge 171:3a7713b1edbc 1236 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1237
AnnaBridge 171:3a7713b1edbc 1238 #define LPC_WWDT_BASE 0x40000000UL
AnnaBridge 171:3a7713b1edbc 1239 #define LPC_MRT_BASE 0x40004000UL
AnnaBridge 171:3a7713b1edbc 1240 #define LPC_WKT_BASE 0x40008000UL
AnnaBridge 171:3a7713b1edbc 1241 #define LPC_SWM_BASE 0x4000C000UL
AnnaBridge 171:3a7713b1edbc 1242 #define LPC_ADC_BASE 0x4001C000UL
AnnaBridge 171:3a7713b1edbc 1243 #define LPC_PMU_BASE 0x40020000UL
AnnaBridge 171:3a7713b1edbc 1244 #define LPC_CMP_BASE 0x40024000UL
AnnaBridge 171:3a7713b1edbc 1245 #define LPC_DMATRIGMUX_BASE 0x40028000UL
AnnaBridge 171:3a7713b1edbc 1246 #define LPC_INPUTMUX_BASE 0x4002C000UL
AnnaBridge 171:3a7713b1edbc 1247 #define LPC_FLASHCTRL_BASE 0x40040000UL
AnnaBridge 171:3a7713b1edbc 1248 #define LPC_IOCON_BASE 0x40044000UL
AnnaBridge 171:3a7713b1edbc 1249 #define LPC_SYSCON_BASE 0x40048000UL
AnnaBridge 171:3a7713b1edbc 1250 #define LPC_I2C0_BASE 0x40050000UL
AnnaBridge 171:3a7713b1edbc 1251 #define LPC_I2C1_BASE 0x40054000UL
AnnaBridge 171:3a7713b1edbc 1252 #define LPC_SPI0_BASE 0x40058000UL
AnnaBridge 171:3a7713b1edbc 1253 #define LPC_SPI1_BASE 0x4005C000UL
AnnaBridge 171:3a7713b1edbc 1254 #define LPC_USART0_BASE 0x40064000UL
AnnaBridge 171:3a7713b1edbc 1255 #define LPC_USART1_BASE 0x40068000UL
AnnaBridge 171:3a7713b1edbc 1256 #define LPC_USART2_BASE 0x4006C000UL
AnnaBridge 171:3a7713b1edbc 1257 #define LPC_I2C2_BASE 0x40070000UL
AnnaBridge 171:3a7713b1edbc 1258 #define LPC_I2C3_BASE 0x40074000UL
AnnaBridge 171:3a7713b1edbc 1259 #define LPC_CRC_BASE 0x50000000UL
AnnaBridge 171:3a7713b1edbc 1260 #define LPC_SCT_BASE 0x50004000UL
AnnaBridge 171:3a7713b1edbc 1261 #define LPC_DMA_BASE 0x50008000UL
AnnaBridge 171:3a7713b1edbc 1262 #define LPC_GPIO_PORT_BASE 0xA0000000UL
AnnaBridge 171:3a7713b1edbc 1263 #define LPC_PIN_INT_BASE 0xA0004000UL
AnnaBridge 171:3a7713b1edbc 1264
AnnaBridge 171:3a7713b1edbc 1265
AnnaBridge 171:3a7713b1edbc 1266 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1267 /* ================ Peripheral declaration ================ */
AnnaBridge 171:3a7713b1edbc 1268 /* ================================================================================ */
AnnaBridge 171:3a7713b1edbc 1269
AnnaBridge 171:3a7713b1edbc 1270 #define LPC_WWDT ((LPC_WWDT_Type *) LPC_WWDT_BASE)
AnnaBridge 171:3a7713b1edbc 1271 #define LPC_MRT ((LPC_MRT_Type *) LPC_MRT_BASE)
AnnaBridge 171:3a7713b1edbc 1272 #define LPC_WKT ((LPC_WKT_Type *) LPC_WKT_BASE)
AnnaBridge 171:3a7713b1edbc 1273 #define LPC_SWM ((LPC_SWM_Type *) LPC_SWM_BASE)
AnnaBridge 171:3a7713b1edbc 1274 #define LPC_ADC ((LPC_ADC_Type *) LPC_ADC_BASE)
AnnaBridge 171:3a7713b1edbc 1275 #define LPC_PMU ((LPC_PMU_Type *) LPC_PMU_BASE)
AnnaBridge 171:3a7713b1edbc 1276 #define LPC_CMP ((LPC_CMP_Type *) LPC_CMP_BASE)
AnnaBridge 171:3a7713b1edbc 1277 #define LPC_DMATRIGMUX ((LPC_DMATRIGMUX_Type *) LPC_DMATRIGMUX_BASE)
AnnaBridge 171:3a7713b1edbc 1278 #define LPC_INPUTMUX ((LPC_INPUTMUX_Type *) LPC_INPUTMUX_BASE)
AnnaBridge 171:3a7713b1edbc 1279 #define LPC_FLASHCTRL ((LPC_FLASHCTRL_Type *) LPC_FLASHCTRL_BASE)
AnnaBridge 171:3a7713b1edbc 1280 #define LPC_IOCON ((LPC_IOCON_Type *) LPC_IOCON_BASE)
AnnaBridge 171:3a7713b1edbc 1281 #define LPC_SYSCON ((LPC_SYSCON_Type *) LPC_SYSCON_BASE)
AnnaBridge 171:3a7713b1edbc 1282 #define LPC_I2C0 ((LPC_I2C0_Type *) LPC_I2C0_BASE)
AnnaBridge 171:3a7713b1edbc 1283 #define LPC_I2C1 ((LPC_I2C0_Type *) LPC_I2C1_BASE)
AnnaBridge 171:3a7713b1edbc 1284 #define LPC_SPI0 ((LPC_SPI0_Type *) LPC_SPI0_BASE)
AnnaBridge 171:3a7713b1edbc 1285 #define LPC_SPI1 ((LPC_SPI0_Type *) LPC_SPI1_BASE)
AnnaBridge 171:3a7713b1edbc 1286 #define LPC_USART0 ((LPC_USART0_Type *) LPC_USART0_BASE)
AnnaBridge 171:3a7713b1edbc 1287 #define LPC_USART1 ((LPC_USART0_Type *) LPC_USART1_BASE)
AnnaBridge 171:3a7713b1edbc 1288 #define LPC_USART2 ((LPC_USART0_Type *) LPC_USART2_BASE)
AnnaBridge 171:3a7713b1edbc 1289 #define LPC_I2C2 ((LPC_I2C0_Type *) LPC_I2C2_BASE)
AnnaBridge 171:3a7713b1edbc 1290 #define LPC_I2C3 ((LPC_I2C0_Type *) LPC_I2C3_BASE)
AnnaBridge 171:3a7713b1edbc 1291 #define LPC_CRC ((LPC_CRC_Type *) LPC_CRC_BASE)
AnnaBridge 171:3a7713b1edbc 1292 #define LPC_SCT ((LPC_SCT_Type *) LPC_SCT_BASE)
AnnaBridge 171:3a7713b1edbc 1293 #define LPC_DMA ((LPC_DMA_Type *) LPC_DMA_BASE)
AnnaBridge 171:3a7713b1edbc 1294 #define LPC_GPIO_PORT ((LPC_GPIO_PORT_Type *) LPC_GPIO_PORT_BASE)
AnnaBridge 171:3a7713b1edbc 1295 #define LPC_PIN_INT ((LPC_PIN_INT_Type *) LPC_PIN_INT_BASE)
AnnaBridge 171:3a7713b1edbc 1296
AnnaBridge 171:3a7713b1edbc 1297
AnnaBridge 171:3a7713b1edbc 1298 /** @} */ /* End of group Device_Peripheral_Registers */
AnnaBridge 171:3a7713b1edbc 1299 /** @} */ /* End of group LPC82x */
AnnaBridge 171:3a7713b1edbc 1300 /** @} */ /* End of group (null) */
AnnaBridge 171:3a7713b1edbc 1301
AnnaBridge 171:3a7713b1edbc 1302 #ifdef __cplusplus
AnnaBridge 171:3a7713b1edbc 1303 }
AnnaBridge 171:3a7713b1edbc 1304 #endif
AnnaBridge 171:3a7713b1edbc 1305
AnnaBridge 171:3a7713b1edbc 1306
AnnaBridge 171:3a7713b1edbc 1307 #endif /* LPC82x_H */
AnnaBridge 171:3a7713b1edbc 1308