change some io settings for TWR-K22F-120M
TARGET_LPC1114/LPC11xx.h@0:b16d94660a33, 2014-12-23 (annotated)
- Committer:
- Jasper_lee
- Date:
- Tue Dec 23 03:35:08 2014 +0000
- Revision:
- 0:b16d94660a33
change some io setting used in TWR-K22F120M
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jasper_lee | 0:b16d94660a33 | 1 | /**************************************************************************** |
Jasper_lee | 0:b16d94660a33 | 2 | * $Id:: LPC11xx.h 9198 2012-05-29 usb00175 $ |
Jasper_lee | 0:b16d94660a33 | 3 | * Project: NXP LPC11xx software example |
Jasper_lee | 0:b16d94660a33 | 4 | * |
Jasper_lee | 0:b16d94660a33 | 5 | * Description: |
Jasper_lee | 0:b16d94660a33 | 6 | * CMSIS Cortex-M0 Core Peripheral Access Layer Header File for |
Jasper_lee | 0:b16d94660a33 | 7 | * NXP LPC11xx Device Series |
Jasper_lee | 0:b16d94660a33 | 8 | |
Jasper_lee | 0:b16d94660a33 | 9 | **************************************************************************** |
Jasper_lee | 0:b16d94660a33 | 10 | * Software that is described herein is for illustrative purposes only |
Jasper_lee | 0:b16d94660a33 | 11 | * which provides customers with programming information regarding the |
Jasper_lee | 0:b16d94660a33 | 12 | * products. This software is supplied "AS IS" without any warranties. |
Jasper_lee | 0:b16d94660a33 | 13 | * NXP Semiconductors assumes no responsibility or liability for the |
Jasper_lee | 0:b16d94660a33 | 14 | * use of the software, conveys no license or title under any patent, |
Jasper_lee | 0:b16d94660a33 | 15 | * copyright, or mask work right to the product. NXP Semiconductors |
Jasper_lee | 0:b16d94660a33 | 16 | * reserves the right to make changes in the software without |
Jasper_lee | 0:b16d94660a33 | 17 | * notification. NXP Semiconductors also make no representation or |
Jasper_lee | 0:b16d94660a33 | 18 | * warranty that such application will be suitable for the specified |
Jasper_lee | 0:b16d94660a33 | 19 | * use without further testing or modification. |
Jasper_lee | 0:b16d94660a33 | 20 | |
Jasper_lee | 0:b16d94660a33 | 21 | * Permission to use, copy, modify, and distribute this software and its |
Jasper_lee | 0:b16d94660a33 | 22 | * documentation is hereby granted, under NXP Semiconductors' |
Jasper_lee | 0:b16d94660a33 | 23 | * relevant copyright in the software, without fee, provided that it |
Jasper_lee | 0:b16d94660a33 | 24 | * is used in conjunction with NXP Semiconductors microcontrollers. This |
Jasper_lee | 0:b16d94660a33 | 25 | * copyright, permission, and disclaimer notice must appear in all copies of |
Jasper_lee | 0:b16d94660a33 | 26 | * this code. |
Jasper_lee | 0:b16d94660a33 | 27 | |
Jasper_lee | 0:b16d94660a33 | 28 | ****************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 29 | #ifndef __LPC11xx_H__ |
Jasper_lee | 0:b16d94660a33 | 30 | #define __LPC11xx_H__ |
Jasper_lee | 0:b16d94660a33 | 31 | |
Jasper_lee | 0:b16d94660a33 | 32 | #ifdef __cplusplus |
Jasper_lee | 0:b16d94660a33 | 33 | extern "C" { |
Jasper_lee | 0:b16d94660a33 | 34 | #endif |
Jasper_lee | 0:b16d94660a33 | 35 | |
Jasper_lee | 0:b16d94660a33 | 36 | /** @addtogroup LPC11xx_Definitions LPC11xx Definitions |
Jasper_lee | 0:b16d94660a33 | 37 | This file defines all structures and symbols for LPC11xx: |
Jasper_lee | 0:b16d94660a33 | 38 | - Registers and bitfields |
Jasper_lee | 0:b16d94660a33 | 39 | - peripheral base address |
Jasper_lee | 0:b16d94660a33 | 40 | - peripheral ID |
Jasper_lee | 0:b16d94660a33 | 41 | - PIO definitions |
Jasper_lee | 0:b16d94660a33 | 42 | @{ |
Jasper_lee | 0:b16d94660a33 | 43 | */ |
Jasper_lee | 0:b16d94660a33 | 44 | |
Jasper_lee | 0:b16d94660a33 | 45 | |
Jasper_lee | 0:b16d94660a33 | 46 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 47 | /* Processor and Core Peripherals */ |
Jasper_lee | 0:b16d94660a33 | 48 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 49 | /** @addtogroup LPC11xx_CMSIS LPC11xx CMSIS Definitions |
Jasper_lee | 0:b16d94660a33 | 50 | Configuration of the Cortex-M0 Processor and Core Peripherals |
Jasper_lee | 0:b16d94660a33 | 51 | @{ |
Jasper_lee | 0:b16d94660a33 | 52 | */ |
Jasper_lee | 0:b16d94660a33 | 53 | |
Jasper_lee | 0:b16d94660a33 | 54 | /* |
Jasper_lee | 0:b16d94660a33 | 55 | * ========================================================================== |
Jasper_lee | 0:b16d94660a33 | 56 | * ---------- Interrupt Number Definition ----------------------------------- |
Jasper_lee | 0:b16d94660a33 | 57 | * ========================================================================== |
Jasper_lee | 0:b16d94660a33 | 58 | */ |
Jasper_lee | 0:b16d94660a33 | 59 | typedef enum IRQn |
Jasper_lee | 0:b16d94660a33 | 60 | { |
Jasper_lee | 0:b16d94660a33 | 61 | /****** Cortex-M0 Processor Exceptions Numbers ***************************************************/ |
Jasper_lee | 0:b16d94660a33 | 62 | NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 63 | HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 64 | SVCall_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 65 | PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 66 | SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 67 | |
Jasper_lee | 0:b16d94660a33 | 68 | /****** LPC11Cxx or LPC11xx Specific Interrupt Numbers *******************************************************/ |
Jasper_lee | 0:b16d94660a33 | 69 | WAKEUP0_IRQn = 0, /*!< All I/O pins can be used as wakeup source. */ |
Jasper_lee | 0:b16d94660a33 | 70 | WAKEUP1_IRQn = 1, /*!< There are 13 pins in total for LPC11xx */ |
Jasper_lee | 0:b16d94660a33 | 71 | WAKEUP2_IRQn = 2, |
Jasper_lee | 0:b16d94660a33 | 72 | WAKEUP3_IRQn = 3, |
Jasper_lee | 0:b16d94660a33 | 73 | WAKEUP4_IRQn = 4, |
Jasper_lee | 0:b16d94660a33 | 74 | WAKEUP5_IRQn = 5, |
Jasper_lee | 0:b16d94660a33 | 75 | WAKEUP6_IRQn = 6, |
Jasper_lee | 0:b16d94660a33 | 76 | WAKEUP7_IRQn = 7, |
Jasper_lee | 0:b16d94660a33 | 77 | WAKEUP8_IRQn = 8, |
Jasper_lee | 0:b16d94660a33 | 78 | WAKEUP9_IRQn = 9, |
Jasper_lee | 0:b16d94660a33 | 79 | WAKEUP10_IRQn = 10, |
Jasper_lee | 0:b16d94660a33 | 80 | WAKEUP11_IRQn = 11, |
Jasper_lee | 0:b16d94660a33 | 81 | WAKEUP12_IRQn = 12, |
Jasper_lee | 0:b16d94660a33 | 82 | CAN_IRQn = 13, /*!< CAN Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 83 | SSP1_IRQn = 14, /*!< SSP1 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 84 | I2C_IRQn = 15, /*!< I2C Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 85 | TIMER_16_0_IRQn = 16, /*!< 16-bit Timer0 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 86 | TIMER_16_1_IRQn = 17, /*!< 16-bit Timer1 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 87 | TIMER_32_0_IRQn = 18, /*!< 32-bit Timer0 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 88 | TIMER_32_1_IRQn = 19, /*!< 32-bit Timer1 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 89 | SSP0_IRQn = 20, /*!< SSP0 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 90 | UART_IRQn = 21, /*!< UART Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 91 | Reserved0_IRQn = 22, /*!< Reserved Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 92 | Reserved1_IRQn = 23, |
Jasper_lee | 0:b16d94660a33 | 93 | ADC_IRQn = 24, /*!< A/D Converter Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 94 | WDT_IRQn = 25, /*!< Watchdog timer Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 95 | BOD_IRQn = 26, /*!< Brown Out Detect(BOD) Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 96 | FMC_IRQn = 27, /*!< Flash Memory Controller Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 97 | EINT3_IRQn = 28, /*!< External Interrupt 3 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 98 | EINT2_IRQn = 29, /*!< External Interrupt 2 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 99 | EINT1_IRQn = 30, /*!< External Interrupt 1 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 100 | EINT0_IRQn = 31, /*!< External Interrupt 0 Interrupt */ |
Jasper_lee | 0:b16d94660a33 | 101 | } IRQn_Type; |
Jasper_lee | 0:b16d94660a33 | 102 | |
Jasper_lee | 0:b16d94660a33 | 103 | /* |
Jasper_lee | 0:b16d94660a33 | 104 | * ========================================================================== |
Jasper_lee | 0:b16d94660a33 | 105 | * ----------- Processor and Core Peripheral Section ------------------------ |
Jasper_lee | 0:b16d94660a33 | 106 | * ========================================================================== |
Jasper_lee | 0:b16d94660a33 | 107 | */ |
Jasper_lee | 0:b16d94660a33 | 108 | |
Jasper_lee | 0:b16d94660a33 | 109 | /* Configuration of the Cortex-M0 Processor and Core Peripherals */ |
Jasper_lee | 0:b16d94660a33 | 110 | #define __MPU_PRESENT 0 /*!< MPU present or not */ |
Jasper_lee | 0:b16d94660a33 | 111 | #define __NVIC_PRIO_BITS 2 /*!< Number of Bits used for Priority Levels */ |
Jasper_lee | 0:b16d94660a33 | 112 | #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ |
Jasper_lee | 0:b16d94660a33 | 113 | |
Jasper_lee | 0:b16d94660a33 | 114 | /*@}*/ /* end of group LPC11xx_CMSIS */ |
Jasper_lee | 0:b16d94660a33 | 115 | |
Jasper_lee | 0:b16d94660a33 | 116 | |
Jasper_lee | 0:b16d94660a33 | 117 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */ |
Jasper_lee | 0:b16d94660a33 | 118 | #include "system_LPC11xx.h" /* System Header */ |
Jasper_lee | 0:b16d94660a33 | 119 | |
Jasper_lee | 0:b16d94660a33 | 120 | |
Jasper_lee | 0:b16d94660a33 | 121 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 122 | /* Device Specific Peripheral Registers structures */ |
Jasper_lee | 0:b16d94660a33 | 123 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 124 | |
Jasper_lee | 0:b16d94660a33 | 125 | #if defined ( __CC_ARM ) |
Jasper_lee | 0:b16d94660a33 | 126 | #pragma anon_unions |
Jasper_lee | 0:b16d94660a33 | 127 | #endif |
Jasper_lee | 0:b16d94660a33 | 128 | |
Jasper_lee | 0:b16d94660a33 | 129 | /*------------- System Control (SYSCON) --------------------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 130 | /** @addtogroup LPC11xx_SYSCON LPC11xx System Control Block |
Jasper_lee | 0:b16d94660a33 | 131 | @{ |
Jasper_lee | 0:b16d94660a33 | 132 | */ |
Jasper_lee | 0:b16d94660a33 | 133 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 134 | { |
Jasper_lee | 0:b16d94660a33 | 135 | __IO uint32_t SYSMEMREMAP; /*!< Offset: 0x000 System memory remap (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 136 | __IO uint32_t PRESETCTRL; /*!< Offset: 0x004 Peripheral reset control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 137 | __IO uint32_t SYSPLLCTRL; /*!< Offset: 0x008 System PLL control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 138 | __I uint32_t SYSPLLSTAT; /*!< Offset: 0x00C System PLL status (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 139 | uint32_t RESERVED0[4]; |
Jasper_lee | 0:b16d94660a33 | 140 | |
Jasper_lee | 0:b16d94660a33 | 141 | __IO uint32_t SYSOSCCTRL; /*!< Offset: 0x020 System oscillator control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 142 | __IO uint32_t WDTOSCCTRL; /*!< Offset: 0x024 Watchdog oscillator control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 143 | __IO uint32_t IRCCTRL; /*!< Offset: 0x028 IRC control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 144 | uint32_t RESERVED1[1]; |
Jasper_lee | 0:b16d94660a33 | 145 | __IO uint32_t SYSRSTSTAT; /*!< Offset: 0x030 System reset status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 146 | uint32_t RESERVED2[3]; |
Jasper_lee | 0:b16d94660a33 | 147 | __IO uint32_t SYSPLLCLKSEL; /*!< Offset: 0x040 System PLL clock source select (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 148 | __IO uint32_t SYSPLLCLKUEN; /*!< Offset: 0x044 System PLL clock source update enable (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 149 | uint32_t RESERVED3[10]; |
Jasper_lee | 0:b16d94660a33 | 150 | |
Jasper_lee | 0:b16d94660a33 | 151 | __IO uint32_t MAINCLKSEL; /*!< Offset: 0x070 Main clock source select (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 152 | __IO uint32_t MAINCLKUEN; /*!< Offset: 0x074 Main clock source update enable (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 153 | __IO uint32_t SYSAHBCLKDIV; /*!< Offset: 0x078 System AHB clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 154 | uint32_t RESERVED4[1]; |
Jasper_lee | 0:b16d94660a33 | 155 | |
Jasper_lee | 0:b16d94660a33 | 156 | __IO uint32_t SYSAHBCLKCTRL; /*!< Offset: 0x080 System AHB clock control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 157 | uint32_t RESERVED5[4]; |
Jasper_lee | 0:b16d94660a33 | 158 | __IO uint32_t SSP0CLKDIV; /*!< Offset: 0x094 SSP0 clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 159 | __IO uint32_t UARTCLKDIV; /*!< Offset: 0x098 UART clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 160 | __IO uint32_t SSP1CLKDIV; /*!< Offset: 0x09C SSP1 clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 161 | uint32_t RESERVED6[12]; |
Jasper_lee | 0:b16d94660a33 | 162 | |
Jasper_lee | 0:b16d94660a33 | 163 | __IO uint32_t WDTCLKSEL; /*!< Offset: 0x0D0 WDT clock source select (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 164 | __IO uint32_t WDTCLKUEN; /*!< Offset: 0x0D4 WDT clock source update enable (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 165 | __IO uint32_t WDTCLKDIV; /*!< Offset: 0x0D8 WDT clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 166 | uint32_t RESERVED8[1]; |
Jasper_lee | 0:b16d94660a33 | 167 | __IO uint32_t CLKOUTCLKSEL; /*!< Offset: 0x0E0 CLKOUT clock source select (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 168 | __IO uint32_t CLKOUTUEN; /*!< Offset: 0x0E4 CLKOUT clock source update enable (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 169 | __IO uint32_t CLKOUTDIV; /*!< Offset: 0x0E8 CLKOUT clock divider (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 170 | uint32_t RESERVED9[5]; |
Jasper_lee | 0:b16d94660a33 | 171 | |
Jasper_lee | 0:b16d94660a33 | 172 | __IO uint32_t PIOPORCAP0; /*!< Offset: 0x100 POR captured PIO status 0 (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 173 | __IO uint32_t PIOPORCAP1; /*!< Offset: 0x104 POR captured PIO status 1 (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 174 | uint32_t RESERVED10[18]; |
Jasper_lee | 0:b16d94660a33 | 175 | __IO uint32_t BODCTRL; /*!< Offset: 0x150 BOD control (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 176 | __IO uint32_t SYSTCKCAL; /*!< Offset: 0x154 System tick counter calibration (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 177 | |
Jasper_lee | 0:b16d94660a33 | 178 | uint32_t RESERVED13[7]; |
Jasper_lee | 0:b16d94660a33 | 179 | __IO uint32_t NMISRC; /*!< Offset: 0x174 NMI source selection register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 180 | uint32_t RESERVED14[34]; |
Jasper_lee | 0:b16d94660a33 | 181 | |
Jasper_lee | 0:b16d94660a33 | 182 | __IO uint32_t STARTAPRP0; /*!< Offset: 0x200 Start logic edge control Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 183 | __IO uint32_t STARTERP0; /*!< Offset: 0x204 Start logic signal enable Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 184 | __O uint32_t STARTRSRP0CLR; /*!< Offset: 0x208 Start logic reset Register 0 ( /W) */ |
Jasper_lee | 0:b16d94660a33 | 185 | __I uint32_t STARTSRP0; /*!< Offset: 0x20C Start logic status Register 0 (R/) */ |
Jasper_lee | 0:b16d94660a33 | 186 | __IO uint32_t STARTAPRP1; /*!< Offset: 0x210 Start logic edge control Register 0 (R/W). (LPC11UXX only) */ |
Jasper_lee | 0:b16d94660a33 | 187 | __IO uint32_t STARTERP1; /*!< Offset: 0x214 Start logic signal enable Register 0 (R/W). (LPC11UXX only) */ |
Jasper_lee | 0:b16d94660a33 | 188 | __O uint32_t STARTRSRP1CLR; /*!< Offset: 0x218 Start logic reset Register 0 ( /W). (LPC11UXX only) */ |
Jasper_lee | 0:b16d94660a33 | 189 | __IO uint32_t STARTSRP1; /*!< Offset: 0x21C Start logic status Register 0 (R/W). (LPC11UXX only) */ |
Jasper_lee | 0:b16d94660a33 | 190 | uint32_t RESERVED17[4]; |
Jasper_lee | 0:b16d94660a33 | 191 | |
Jasper_lee | 0:b16d94660a33 | 192 | __IO uint32_t PDSLEEPCFG; /*!< Offset: 0x230 Power-down states in Deep-sleep mode (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 193 | __IO uint32_t PDAWAKECFG; /*!< Offset: 0x234 Power-down states after wake-up (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 194 | __IO uint32_t PDRUNCFG; /*!< Offset: 0x238 Power-down configuration Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 195 | uint32_t RESERVED15[110]; |
Jasper_lee | 0:b16d94660a33 | 196 | __I uint32_t DEVICE_ID; /*!< Offset: 0x3F4 Device ID (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 197 | } LPC_SYSCON_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 198 | /*@}*/ /* end of group LPC11xx_SYSCON */ |
Jasper_lee | 0:b16d94660a33 | 199 | |
Jasper_lee | 0:b16d94660a33 | 200 | |
Jasper_lee | 0:b16d94660a33 | 201 | /*------------- Pin Connect Block (IOCON) --------------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 202 | /** @addtogroup LPC11xx_IOCON LPC11xx I/O Configuration Block |
Jasper_lee | 0:b16d94660a33 | 203 | @{ |
Jasper_lee | 0:b16d94660a33 | 204 | */ |
Jasper_lee | 0:b16d94660a33 | 205 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 206 | { |
Jasper_lee | 0:b16d94660a33 | 207 | __IO uint32_t PIO2_6; /*!< Offset: 0x000 I/O configuration for pin PIO2_6 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 208 | uint32_t RESERVED0[1]; |
Jasper_lee | 0:b16d94660a33 | 209 | __IO uint32_t PIO2_0; /*!< Offset: 0x008 I/O configuration for pin PIO2_0/DTR/SSEL1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 210 | __IO uint32_t RESET_PIO0_0; /*!< Offset: 0x00C I/O configuration for pin RESET/PIO0_0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 211 | __IO uint32_t PIO0_1; /*!< Offset: 0x010 I/O configuration for pin PIO0_1/CLKOUT/CT32B0_MAT2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 212 | __IO uint32_t PIO1_8; /*!< Offset: 0x014 I/O configuration for pin PIO1_8/CT16B1_CAP0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 213 | __IO uint32_t SSEL1_LOC; /*!< Offset: 0x018 IOCON SSEL1 location register (IOCON_SSEL1_LOC, address 0x4004 4018) */ |
Jasper_lee | 0:b16d94660a33 | 214 | __IO uint32_t PIO0_2; /*!< Offset: 0x01C I/O configuration for pin PIO0_2/SSEL0/CT16B0_CAP0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 215 | |
Jasper_lee | 0:b16d94660a33 | 216 | __IO uint32_t PIO2_7; /*!< Offset: 0x020 I/O configuration for pin PIO2_7 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 217 | __IO uint32_t PIO2_8; /*!< Offset: 0x024 I/O configuration for pin PIO2_8 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 218 | __IO uint32_t PIO2_1; /*!< Offset: 0x028 I/O configuration for pin PIO2_1/nDSR/SCK1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 219 | __IO uint32_t PIO0_3; /*!< Offset: 0x02C I/O configuration for pin PIO0_3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 220 | __IO uint32_t PIO0_4; /*!< Offset: 0x030 I/O configuration for pin PIO0_4/SCL (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 221 | __IO uint32_t PIO0_5; /*!< Offset: 0x034 I/O configuration for pin PIO0_5/SDA (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 222 | __IO uint32_t PIO1_9; /*!< Offset: 0x038 I/O configuration for pin PIO1_9/CT16B1_MAT0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 223 | __IO uint32_t PIO3_4; /*!< Offset: 0x03C I/O configuration for pin PIO3_4 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 224 | |
Jasper_lee | 0:b16d94660a33 | 225 | __IO uint32_t PIO2_4; /*!< Offset: 0x040 I/O configuration for pin PIO2_4 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 226 | __IO uint32_t PIO2_5; /*!< Offset: 0x044 I/O configuration for pin PIO2_5 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 227 | __IO uint32_t PIO3_5; /*!< Offset: 0x048 I/O configuration for pin PIO3_5 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 228 | __IO uint32_t PIO0_6; /*!< Offset: 0x04C I/O configuration for pin PIO0_6/SCK0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 229 | __IO uint32_t PIO0_7; /*!< Offset: 0x050 I/O configuration for pin PIO0_7/nCTS (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 230 | __IO uint32_t PIO2_9; /*!< Offset: 0x054 I/O configuration for pin PIO2_9 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 231 | __IO uint32_t PIO2_10; /*!< Offset: 0x058 I/O configuration for pin PIO2_10 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 232 | __IO uint32_t PIO2_2; /*!< Offset: 0x05C I/O configuration for pin PIO2_2/DCD/MISO1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 233 | |
Jasper_lee | 0:b16d94660a33 | 234 | __IO uint32_t PIO0_8; /*!< Offset: 0x060 I/O configuration for pin PIO0_8/MISO0/CT16B0_MAT0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 235 | __IO uint32_t PIO0_9; /*!< Offset: 0x064 I/O configuration for pin PIO0_9/MOSI0/CT16B0_MAT1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 236 | __IO uint32_t SWCLK_PIO0_10; /*!< Offset: 0x068 I/O configuration for pin SWCLK/PIO0_10/SCK0/CT16B0_MAT2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 237 | __IO uint32_t PIO1_10; /*!< Offset: 0x06C I/O configuration for pin PIO1_10/AD6/CT16B1_MAT1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 238 | __IO uint32_t PIO2_11; /*!< Offset: 0x070 I/O configuration for pin PIO2_11/SCK0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 239 | __IO uint32_t R_PIO0_11; /*!< Offset: 0x074 I/O configuration for pin TDI/PIO0_11/AD0/CT32B0_MAT3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 240 | __IO uint32_t R_PIO1_0; /*!< Offset: 0x078 I/O configuration for pin TMS/PIO1_0/AD1/CT32B1_CAP0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 241 | __IO uint32_t R_PIO1_1; /*!< Offset: 0x07C I/O configuration for pin TDO/PIO1_1/AD2/CT32B1_MAT0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 242 | |
Jasper_lee | 0:b16d94660a33 | 243 | __IO uint32_t R_PIO1_2; /*!< Offset: 0x080 I/O configuration for pin nTRST/PIO1_2/AD3/CT32B1_MAT1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 244 | __IO uint32_t PIO3_0; /*!< Offset: 0x084 I/O configuration for pin PIO3_0/nDTR (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 245 | __IO uint32_t PIO3_1; /*!< Offset: 0x088 I/O configuration for pin PIO3_1/nDSR (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 246 | __IO uint32_t PIO2_3; /*!< Offset: 0x08C I/O configuration for pin PIO2_3/RI/MOSI1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 247 | __IO uint32_t SWDIO_PIO1_3; /*!< Offset: 0x090 I/O configuration for pin SWDIO/PIO1_3/AD4/CT32B1_MAT2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 248 | __IO uint32_t PIO1_4; /*!< Offset: 0x094 I/O configuration for pin PIO1_4/AD5/CT32B1_MAT3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 249 | __IO uint32_t PIO1_11; /*!< Offset: 0x098 I/O configuration for pin PIO1_11/AD7 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 250 | __IO uint32_t PIO3_2; /*!< Offset: 0x09C I/O configuration for pin PIO3_2/nDCD (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 251 | |
Jasper_lee | 0:b16d94660a33 | 252 | __IO uint32_t PIO1_5; /*!< Offset: 0x0A0 I/O configuration for pin PIO1_5/nRTS/CT32B0_CAP0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 253 | __IO uint32_t PIO1_6; /*!< Offset: 0x0A4 I/O configuration for pin PIO1_6/RXD/CT32B0_MAT0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 254 | __IO uint32_t PIO1_7; /*!< Offset: 0x0A8 I/O configuration for pin PIO1_7/TXD/CT32B0_MAT1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 255 | __IO uint32_t PIO3_3; /*!< Offset: 0x0AC I/O configuration for pin PIO3_3/nRI (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 256 | __IO uint32_t SCK_LOC; /*!< Offset: 0x0B0 SCK pin location select Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 257 | __IO uint32_t DSR_LOC; /*!< Offset: 0x0B4 DSR pin location select Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 258 | __IO uint32_t DCD_LOC; /*!< Offset: 0x0B8 DCD pin location select Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 259 | __IO uint32_t RI_LOC; /*!< Offset: 0x0BC RI pin location Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 260 | |
Jasper_lee | 0:b16d94660a33 | 261 | __IO uint32_t CT16B0_CAP0_LOC; /*!< Offset: 0x0C0 IOCON CT16B0_CAP0 location register (IOCON_CT16B0_CAP0_LOC, address 0x4004 40C0) */ |
Jasper_lee | 0:b16d94660a33 | 262 | __IO uint32_t SCK1_LOC; /*!< Offset: 0x0C4 IOCON SCK1 location register (IOCON_SCK1_LOC, address 0x4004 40C4) */ |
Jasper_lee | 0:b16d94660a33 | 263 | __IO uint32_t MISO1_LOC; /*!< Offset: 0x0C8 IOCON MISO1 location register (IOCON_MISO1_LOC, address 0x4004 40C8) */ |
Jasper_lee | 0:b16d94660a33 | 264 | __IO uint32_t MOSI1_LOC; /*!< Offset: 0x0CC IOCON MOSI1 location register (IOCON_MOSI1_LOC, address 0x4004 40CC) */ |
Jasper_lee | 0:b16d94660a33 | 265 | __IO uint32_t CT32B0_CAP0_LOC; /*!< Offset: 0x0D0 IOCON CT32B0_CAP0 location register (IOCON_CT32B0_CAP0_LOC, address 0x4004 40D0) */ |
Jasper_lee | 0:b16d94660a33 | 266 | __IO uint32_t RXD_LOC; /*!< Offset: 0x0D4 IOCON RXD location register (IOCON_RXD_LOC, address 0x4004 40D4) */ |
Jasper_lee | 0:b16d94660a33 | 267 | } LPC_IOCON_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 268 | /*@}*/ /* end of group LPC11xx_IOCON */ |
Jasper_lee | 0:b16d94660a33 | 269 | |
Jasper_lee | 0:b16d94660a33 | 270 | |
Jasper_lee | 0:b16d94660a33 | 271 | /*------------- Power Management Unit (PMU) --------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 272 | /** @addtogroup LPC11xx_PMU LPC11xx Power Management Unit |
Jasper_lee | 0:b16d94660a33 | 273 | @{ |
Jasper_lee | 0:b16d94660a33 | 274 | */ |
Jasper_lee | 0:b16d94660a33 | 275 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 276 | { |
Jasper_lee | 0:b16d94660a33 | 277 | __IO uint32_t PCON; /*!< Offset: 0x000 Power control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 278 | __IO uint32_t GPREG0; /*!< Offset: 0x004 General purpose Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 279 | __IO uint32_t GPREG1; /*!< Offset: 0x008 General purpose Register 1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 280 | __IO uint32_t GPREG2; /*!< Offset: 0x00C General purpose Register 2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 281 | __IO uint32_t GPREG3; /*!< Offset: 0x010 General purpose Register 3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 282 | __IO uint32_t GPREG4; /*!< Offset: 0x014 General purpose Register 4 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 283 | } LPC_PMU_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 284 | /*@}*/ /* end of group LPC11xx_PMU */ |
Jasper_lee | 0:b16d94660a33 | 285 | |
Jasper_lee | 0:b16d94660a33 | 286 | |
Jasper_lee | 0:b16d94660a33 | 287 | |
Jasper_lee | 0:b16d94660a33 | 288 | // ------------------------------------------------------------------------------------------------ |
Jasper_lee | 0:b16d94660a33 | 289 | // ----- FLASHCTRL ----- |
Jasper_lee | 0:b16d94660a33 | 290 | // ------------------------------------------------------------------------------------------------ |
Jasper_lee | 0:b16d94660a33 | 291 | |
Jasper_lee | 0:b16d94660a33 | 292 | typedef struct { /*!< (@ 0x4003C000) FLASHCTRL Structure */ |
Jasper_lee | 0:b16d94660a33 | 293 | __I uint32_t RESERVED0[4]; |
Jasper_lee | 0:b16d94660a33 | 294 | __IO uint32_t FLASHCFG; /*!< (@ 0x4003C010) Flash memory access time configuration register */ |
Jasper_lee | 0:b16d94660a33 | 295 | __I uint32_t RESERVED1[3]; |
Jasper_lee | 0:b16d94660a33 | 296 | __IO uint32_t FMSSTART; /*!< (@ 0x4003C020) Signature start address register */ |
Jasper_lee | 0:b16d94660a33 | 297 | __IO uint32_t FMSSTOP; /*!< (@ 0x4003C024) Signature stop-address register */ |
Jasper_lee | 0:b16d94660a33 | 298 | __I uint32_t RESERVED2[1]; |
Jasper_lee | 0:b16d94660a33 | 299 | __I uint32_t FMSW0; /*!< (@ 0x4003C02C) Word 0 [31:0] */ |
Jasper_lee | 0:b16d94660a33 | 300 | __I uint32_t FMSW1; /*!< (@ 0x4003C030) Word 1 [63:32] */ |
Jasper_lee | 0:b16d94660a33 | 301 | __I uint32_t FMSW2; /*!< (@ 0x4003C034) Word 2 [95:64] */ |
Jasper_lee | 0:b16d94660a33 | 302 | __I uint32_t FMSW3; /*!< (@ 0x4003C038) Word 3 [127:96] */ |
Jasper_lee | 0:b16d94660a33 | 303 | __I uint32_t RESERVED3[1001]; |
Jasper_lee | 0:b16d94660a33 | 304 | __I uint32_t FMSTAT; /*!< (@ 0x4003CFE0) Signature generation status register */ |
Jasper_lee | 0:b16d94660a33 | 305 | __I uint32_t RESERVED4[1]; |
Jasper_lee | 0:b16d94660a33 | 306 | __IO uint32_t FMSTATCLR; /*!< (@ 0x4003CFE8) Signature generation status clear register */ |
Jasper_lee | 0:b16d94660a33 | 307 | } LPC_FLASHCTRL_Type; |
Jasper_lee | 0:b16d94660a33 | 308 | |
Jasper_lee | 0:b16d94660a33 | 309 | |
Jasper_lee | 0:b16d94660a33 | 310 | /*------------- General Purpose Input/Output (GPIO) --------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 311 | /** @addtogroup LPC11xx_GPIO LPC11xx General Purpose Input/Output |
Jasper_lee | 0:b16d94660a33 | 312 | @{ |
Jasper_lee | 0:b16d94660a33 | 313 | */ |
Jasper_lee | 0:b16d94660a33 | 314 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 315 | { |
Jasper_lee | 0:b16d94660a33 | 316 | union { |
Jasper_lee | 0:b16d94660a33 | 317 | __IO uint32_t MASKED_ACCESS[4096]; /*!< Offset: 0x0000 to 0x3FFC Port data Register for pins PIOn_0 to PIOn_11 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 318 | struct { |
Jasper_lee | 0:b16d94660a33 | 319 | uint32_t RESERVED0[4095]; |
Jasper_lee | 0:b16d94660a33 | 320 | __IO uint32_t DATA; /*!< Offset: 0x3FFC Port data Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 321 | }; |
Jasper_lee | 0:b16d94660a33 | 322 | }; |
Jasper_lee | 0:b16d94660a33 | 323 | uint32_t RESERVED1[4096]; |
Jasper_lee | 0:b16d94660a33 | 324 | __IO uint32_t DIR; /*!< Offset: 0x8000 Data direction Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 325 | __IO uint32_t IS; /*!< Offset: 0x8004 Interrupt sense Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 326 | __IO uint32_t IBE; /*!< Offset: 0x8008 Interrupt both edges Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 327 | __IO uint32_t IEV; /*!< Offset: 0x800C Interrupt event Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 328 | __IO uint32_t IE; /*!< Offset: 0x8010 Interrupt mask Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 329 | __I uint32_t RIS; /*!< Offset: 0x8014 Raw interrupt status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 330 | __I uint32_t MIS; /*!< Offset: 0x8018 Masked interrupt status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 331 | __O uint32_t IC; /*!< Offset: 0x801C Interrupt clear Register (/W) */ |
Jasper_lee | 0:b16d94660a33 | 332 | } LPC_GPIO_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 333 | /*@}*/ /* end of group LPC11xx_GPIO */ |
Jasper_lee | 0:b16d94660a33 | 334 | |
Jasper_lee | 0:b16d94660a33 | 335 | /*------------- Timer (TMR) --------------------------------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 336 | /** @addtogroup LPC11xx_TMR LPC11xx 16/32-bit Counter/Timer |
Jasper_lee | 0:b16d94660a33 | 337 | @{ |
Jasper_lee | 0:b16d94660a33 | 338 | */ |
Jasper_lee | 0:b16d94660a33 | 339 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 340 | { |
Jasper_lee | 0:b16d94660a33 | 341 | __IO uint32_t IR; /*!< Offset: 0x000 Interrupt Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 342 | __IO uint32_t TCR; /*!< Offset: 0x004 Timer Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 343 | __IO uint32_t TC; /*!< Offset: 0x008 Timer Counter Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 344 | __IO uint32_t PR; /*!< Offset: 0x00C Prescale Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 345 | __IO uint32_t PC; /*!< Offset: 0x010 Prescale Counter Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 346 | __IO uint32_t MCR; /*!< Offset: 0x014 Match Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 347 | union { |
Jasper_lee | 0:b16d94660a33 | 348 | __IO uint32_t MR[4]; /*!< Offset: Match Register base */ |
Jasper_lee | 0:b16d94660a33 | 349 | struct{ |
Jasper_lee | 0:b16d94660a33 | 350 | __IO uint32_t MR0; /*!< Offset: 0x018 Match Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 351 | __IO uint32_t MR1; /*!< Offset: 0x01C Match Register 1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 352 | __IO uint32_t MR2; /*!< Offset: 0x020 Match Register 2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 353 | __IO uint32_t MR3; /*!< Offset: 0x024 Match Register 3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 354 | }; |
Jasper_lee | 0:b16d94660a33 | 355 | }; |
Jasper_lee | 0:b16d94660a33 | 356 | __IO uint32_t CCR; /*!< Offset: 0x028 Capture Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 357 | __I uint32_t CR0; /*!< Offset: 0x02C Capture Register 0 (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 358 | __I uint32_t CR1; /*!< Offset: 0x030 Capture Register 1 (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 359 | uint32_t RESERVED1[2]; |
Jasper_lee | 0:b16d94660a33 | 360 | __IO uint32_t EMR; /*!< Offset: 0x03C External Match Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 361 | uint32_t RESERVED2[12]; |
Jasper_lee | 0:b16d94660a33 | 362 | __IO uint32_t CTCR; /*!< Offset: 0x070 Count Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 363 | __IO uint32_t PWMC; /*!< Offset: 0x074 PWM Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 364 | } LPC_TMR_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 365 | /*@}*/ /* end of group LPC11xx_TMR */ |
Jasper_lee | 0:b16d94660a33 | 366 | |
Jasper_lee | 0:b16d94660a33 | 367 | |
Jasper_lee | 0:b16d94660a33 | 368 | /*------------- Universal Asynchronous Receiver Transmitter (UART) -----------*/ |
Jasper_lee | 0:b16d94660a33 | 369 | /** @addtogroup LPC11xx_UART LPC11xx Universal Asynchronous Receiver/Transmitter |
Jasper_lee | 0:b16d94660a33 | 370 | @{ |
Jasper_lee | 0:b16d94660a33 | 371 | */ |
Jasper_lee | 0:b16d94660a33 | 372 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 373 | { |
Jasper_lee | 0:b16d94660a33 | 374 | union { |
Jasper_lee | 0:b16d94660a33 | 375 | __I uint32_t RBR; /*!< Offset: 0x000 Receiver Buffer Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 376 | __O uint32_t THR; /*!< Offset: 0x000 Transmit Holding Register ( /W) */ |
Jasper_lee | 0:b16d94660a33 | 377 | __IO uint32_t DLL; /*!< Offset: 0x000 Divisor Latch LSB (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 378 | }; |
Jasper_lee | 0:b16d94660a33 | 379 | union { |
Jasper_lee | 0:b16d94660a33 | 380 | __IO uint32_t DLM; /*!< Offset: 0x004 Divisor Latch MSB (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 381 | __IO uint32_t IER; /*!< Offset: 0x000 Interrupt Enable Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 382 | }; |
Jasper_lee | 0:b16d94660a33 | 383 | union { |
Jasper_lee | 0:b16d94660a33 | 384 | __I uint32_t IIR; /*!< Offset: 0x008 Interrupt ID Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 385 | __O uint32_t FCR; /*!< Offset: 0x008 FIFO Control Register ( /W) */ |
Jasper_lee | 0:b16d94660a33 | 386 | }; |
Jasper_lee | 0:b16d94660a33 | 387 | __IO uint32_t LCR; /*!< Offset: 0x00C Line Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 388 | __IO uint32_t MCR; /*!< Offset: 0x010 Modem control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 389 | __I uint32_t LSR; /*!< Offset: 0x014 Line Status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 390 | __I uint32_t MSR; /*!< Offset: 0x018 Modem status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 391 | __IO uint32_t SCR; /*!< Offset: 0x01C Scratch Pad Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 392 | __IO uint32_t ACR; /*!< Offset: 0x020 Auto-baud Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 393 | uint32_t RESERVED0; |
Jasper_lee | 0:b16d94660a33 | 394 | __IO uint32_t FDR; /*!< Offset: 0x028 Fractional Divider Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 395 | uint32_t RESERVED1; |
Jasper_lee | 0:b16d94660a33 | 396 | __IO uint32_t TER; /*!< Offset: 0x030 Transmit Enable Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 397 | uint32_t RESERVED2[6]; |
Jasper_lee | 0:b16d94660a33 | 398 | __IO uint32_t RS485CTRL; /*!< Offset: 0x04C RS-485/EIA-485 Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 399 | __IO uint32_t ADRMATCH; /*!< Offset: 0x050 RS-485/EIA-485 address match Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 400 | __IO uint32_t RS485DLY; /*!< Offset: 0x054 RS-485/EIA-485 direction control delay Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 401 | __I uint32_t FIFOLVL; /*!< Offset: 0x058 FIFO Level Register (R) */ |
Jasper_lee | 0:b16d94660a33 | 402 | } LPC_UART_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 403 | /*@}*/ /* end of group LPC11xx_UART */ |
Jasper_lee | 0:b16d94660a33 | 404 | |
Jasper_lee | 0:b16d94660a33 | 405 | |
Jasper_lee | 0:b16d94660a33 | 406 | /*------------- Synchronous Serial Communication (SSP) -----------------------*/ |
Jasper_lee | 0:b16d94660a33 | 407 | /** @addtogroup LPC11xx_SSP LPC11xx Synchronous Serial Port |
Jasper_lee | 0:b16d94660a33 | 408 | @{ |
Jasper_lee | 0:b16d94660a33 | 409 | */ |
Jasper_lee | 0:b16d94660a33 | 410 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 411 | { |
Jasper_lee | 0:b16d94660a33 | 412 | __IO uint32_t CR0; /*!< Offset: 0x000 Control Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 413 | __IO uint32_t CR1; /*!< Offset: 0x004 Control Register 1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 414 | __IO uint32_t DR; /*!< Offset: 0x008 Data Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 415 | __I uint32_t SR; /*!< Offset: 0x00C Status Registe (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 416 | __IO uint32_t CPSR; /*!< Offset: 0x010 Clock Prescale Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 417 | __IO uint32_t IMSC; /*!< Offset: 0x014 Interrupt Mask Set and Clear Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 418 | __I uint32_t RIS; /*!< Offset: 0x018 Raw Interrupt Status Register (R/) */ |
Jasper_lee | 0:b16d94660a33 | 419 | __I uint32_t MIS; /*!< Offset: 0x01C Masked Interrupt Status Register (R/) */ |
Jasper_lee | 0:b16d94660a33 | 420 | __O uint32_t ICR; /*!< Offset: 0x020 SSPICR Interrupt Clear Register (/W) */ |
Jasper_lee | 0:b16d94660a33 | 421 | } LPC_SSP_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 422 | /*@}*/ /* end of group LPC11xx_SSP */ |
Jasper_lee | 0:b16d94660a33 | 423 | |
Jasper_lee | 0:b16d94660a33 | 424 | |
Jasper_lee | 0:b16d94660a33 | 425 | /*------------- Inter-Integrated Circuit (I2C) -------------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 426 | /** @addtogroup LPC11xx_I2C LPC11xx I2C-Bus Interface |
Jasper_lee | 0:b16d94660a33 | 427 | @{ |
Jasper_lee | 0:b16d94660a33 | 428 | */ |
Jasper_lee | 0:b16d94660a33 | 429 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 430 | { |
Jasper_lee | 0:b16d94660a33 | 431 | __IO uint32_t CONSET; /*!< Offset: 0x000 I2C Control Set Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 432 | __I uint32_t STAT; /*!< Offset: 0x004 I2C Status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 433 | __IO uint32_t DAT; /*!< Offset: 0x008 I2C Data Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 434 | __IO uint32_t ADR0; /*!< Offset: 0x00C I2C Slave Address Register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 435 | __IO uint32_t SCLH; /*!< Offset: 0x010 SCH Duty Cycle Register High Half Word (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 436 | __IO uint32_t SCLL; /*!< Offset: 0x014 SCL Duty Cycle Register Low Half Word (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 437 | __O uint32_t CONCLR; /*!< Offset: 0x018 I2C Control Clear Register ( /W) */ |
Jasper_lee | 0:b16d94660a33 | 438 | __IO uint32_t MMCTRL; /*!< Offset: 0x01C Monitor mode control register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 439 | __IO uint32_t ADR1; /*!< Offset: 0x020 I2C Slave Address Register 1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 440 | __IO uint32_t ADR2; /*!< Offset: 0x024 I2C Slave Address Register 2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 441 | __IO uint32_t ADR3; /*!< Offset: 0x028 I2C Slave Address Register 3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 442 | __I uint32_t DATA_BUFFER; /*!< Offset: 0x02C Data buffer register ( /W) */ |
Jasper_lee | 0:b16d94660a33 | 443 | __IO uint32_t MASK0; /*!< Offset: 0x030 I2C Slave address mask register 0 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 444 | __IO uint32_t MASK1; /*!< Offset: 0x034 I2C Slave address mask register 1 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 445 | __IO uint32_t MASK2; /*!< Offset: 0x038 I2C Slave address mask register 2 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 446 | __IO uint32_t MASK3; /*!< Offset: 0x03C I2C Slave address mask register 3 (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 447 | } LPC_I2C_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 448 | /*@}*/ /* end of group LPC11xx_I2C */ |
Jasper_lee | 0:b16d94660a33 | 449 | |
Jasper_lee | 0:b16d94660a33 | 450 | |
Jasper_lee | 0:b16d94660a33 | 451 | /*------------- Watchdog Timer (WDT) -----------------------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 452 | /** @addtogroup LPC11xx_WDT LPC11xx WatchDog Timer |
Jasper_lee | 0:b16d94660a33 | 453 | @{ |
Jasper_lee | 0:b16d94660a33 | 454 | */ |
Jasper_lee | 0:b16d94660a33 | 455 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 456 | { |
Jasper_lee | 0:b16d94660a33 | 457 | __IO uint32_t MOD; /*!< Offset: 0x000 Watchdog mode register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 458 | __IO uint32_t TC; /*!< Offset: 0x004 Watchdog timer constant register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 459 | __O uint32_t FEED; /*!< Offset: 0x008 Watchdog feed sequence register (W) */ |
Jasper_lee | 0:b16d94660a33 | 460 | __I uint32_t TV; /*!< Offset: 0x00C Watchdog timer value register (R) */ |
Jasper_lee | 0:b16d94660a33 | 461 | uint32_t RESERVED0; |
Jasper_lee | 0:b16d94660a33 | 462 | __IO uint32_t WARNINT; /*!< Offset: 0x014 Watchdog timer warning int. register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 463 | __IO uint32_t WINDOW; /*!< Offset: 0x018 Watchdog timer window value register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 464 | } LPC_WDT_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 465 | /*@}*/ /* end of group LPC11xx_WDT */ |
Jasper_lee | 0:b16d94660a33 | 466 | |
Jasper_lee | 0:b16d94660a33 | 467 | |
Jasper_lee | 0:b16d94660a33 | 468 | /*------------- Analog-to-Digital Converter (ADC) ----------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 469 | /** @addtogroup LPC11xx_ADC LPC11xx Analog-to-Digital Converter |
Jasper_lee | 0:b16d94660a33 | 470 | @{ |
Jasper_lee | 0:b16d94660a33 | 471 | */ |
Jasper_lee | 0:b16d94660a33 | 472 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 473 | { |
Jasper_lee | 0:b16d94660a33 | 474 | __IO uint32_t CR; /*!< Offset: 0x000 A/D Control Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 475 | __IO uint32_t GDR; /*!< Offset: 0x004 A/D Global Data Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 476 | uint32_t RESERVED0; |
Jasper_lee | 0:b16d94660a33 | 477 | __IO uint32_t INTEN; /*!< Offset: 0x00C A/D Interrupt Enable Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 478 | __IO uint32_t DR[8]; /*!< Offset: 0x010-0x02C A/D Channel 0..7 Data Register (R/W) */ |
Jasper_lee | 0:b16d94660a33 | 479 | __I uint32_t STAT; /*!< Offset: 0x030 A/D Status Register (R/ ) */ |
Jasper_lee | 0:b16d94660a33 | 480 | } LPC_ADC_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 481 | /*@}*/ /* end of group LPC11xx_ADC */ |
Jasper_lee | 0:b16d94660a33 | 482 | |
Jasper_lee | 0:b16d94660a33 | 483 | |
Jasper_lee | 0:b16d94660a33 | 484 | /*------------- CAN Controller (CAN) ----------------------------*/ |
Jasper_lee | 0:b16d94660a33 | 485 | /** @addtogroup LPC11xx_CAN LPC11xx Controller Area Network(CAN) |
Jasper_lee | 0:b16d94660a33 | 486 | @{ |
Jasper_lee | 0:b16d94660a33 | 487 | */ |
Jasper_lee | 0:b16d94660a33 | 488 | typedef struct |
Jasper_lee | 0:b16d94660a33 | 489 | { |
Jasper_lee | 0:b16d94660a33 | 490 | __IO uint32_t CNTL; /* 0x000 */ |
Jasper_lee | 0:b16d94660a33 | 491 | __IO uint32_t STAT; |
Jasper_lee | 0:b16d94660a33 | 492 | __IO uint32_t EC; |
Jasper_lee | 0:b16d94660a33 | 493 | __IO uint32_t BT; |
Jasper_lee | 0:b16d94660a33 | 494 | __IO uint32_t INT; |
Jasper_lee | 0:b16d94660a33 | 495 | __IO uint32_t TEST; |
Jasper_lee | 0:b16d94660a33 | 496 | __IO uint32_t BRPE; |
Jasper_lee | 0:b16d94660a33 | 497 | uint32_t RESERVED0; |
Jasper_lee | 0:b16d94660a33 | 498 | __IO uint32_t IF1_CMDREQ; /* 0x020 */ |
Jasper_lee | 0:b16d94660a33 | 499 | __IO uint32_t IF1_CMDMSK; |
Jasper_lee | 0:b16d94660a33 | 500 | __IO uint32_t IF1_MSK1; |
Jasper_lee | 0:b16d94660a33 | 501 | __IO uint32_t IF1_MSK2; |
Jasper_lee | 0:b16d94660a33 | 502 | __IO uint32_t IF1_ARB1; |
Jasper_lee | 0:b16d94660a33 | 503 | __IO uint32_t IF1_ARB2; |
Jasper_lee | 0:b16d94660a33 | 504 | __IO uint32_t IF1_MCTRL; |
Jasper_lee | 0:b16d94660a33 | 505 | __IO uint32_t IF1_DA1; |
Jasper_lee | 0:b16d94660a33 | 506 | __IO uint32_t IF1_DA2; |
Jasper_lee | 0:b16d94660a33 | 507 | __IO uint32_t IF1_DB1; |
Jasper_lee | 0:b16d94660a33 | 508 | __IO uint32_t IF1_DB2; |
Jasper_lee | 0:b16d94660a33 | 509 | uint32_t RESERVED1[13]; |
Jasper_lee | 0:b16d94660a33 | 510 | __IO uint32_t IF2_CMDREQ; /* 0x080 */ |
Jasper_lee | 0:b16d94660a33 | 511 | __IO uint32_t IF2_CMDMSK; |
Jasper_lee | 0:b16d94660a33 | 512 | __IO uint32_t IF2_MSK1; |
Jasper_lee | 0:b16d94660a33 | 513 | __IO uint32_t IF2_MSK2; |
Jasper_lee | 0:b16d94660a33 | 514 | __IO uint32_t IF2_ARB1; |
Jasper_lee | 0:b16d94660a33 | 515 | __IO uint32_t IF2_ARB2; |
Jasper_lee | 0:b16d94660a33 | 516 | __IO uint32_t IF2_MCTRL; |
Jasper_lee | 0:b16d94660a33 | 517 | __IO uint32_t IF2_DA1; |
Jasper_lee | 0:b16d94660a33 | 518 | __IO uint32_t IF2_DA2; |
Jasper_lee | 0:b16d94660a33 | 519 | __IO uint32_t IF2_DB1; |
Jasper_lee | 0:b16d94660a33 | 520 | __IO uint32_t IF2_DB2; |
Jasper_lee | 0:b16d94660a33 | 521 | uint32_t RESERVED2[21]; |
Jasper_lee | 0:b16d94660a33 | 522 | __I uint32_t TXREQ1; /* 0x100 */ |
Jasper_lee | 0:b16d94660a33 | 523 | __I uint32_t TXREQ2; |
Jasper_lee | 0:b16d94660a33 | 524 | uint32_t RESERVED3[6]; |
Jasper_lee | 0:b16d94660a33 | 525 | __I uint32_t ND1; /* 0x120 */ |
Jasper_lee | 0:b16d94660a33 | 526 | __I uint32_t ND2; |
Jasper_lee | 0:b16d94660a33 | 527 | uint32_t RESERVED4[6]; |
Jasper_lee | 0:b16d94660a33 | 528 | __I uint32_t IR1; /* 0x140 */ |
Jasper_lee | 0:b16d94660a33 | 529 | __I uint32_t IR2; |
Jasper_lee | 0:b16d94660a33 | 530 | uint32_t RESERVED5[6]; |
Jasper_lee | 0:b16d94660a33 | 531 | __I uint32_t MSGV1; /* 0x160 */ |
Jasper_lee | 0:b16d94660a33 | 532 | __I uint32_t MSGV2; |
Jasper_lee | 0:b16d94660a33 | 533 | uint32_t RESERVED6[6]; |
Jasper_lee | 0:b16d94660a33 | 534 | __IO uint32_t CLKDIV; /* 0x180 */ |
Jasper_lee | 0:b16d94660a33 | 535 | } LPC_CAN_TypeDef; |
Jasper_lee | 0:b16d94660a33 | 536 | /*@}*/ /* end of group LPC11xx_CAN */ |
Jasper_lee | 0:b16d94660a33 | 537 | |
Jasper_lee | 0:b16d94660a33 | 538 | #if defined ( __CC_ARM ) |
Jasper_lee | 0:b16d94660a33 | 539 | #pragma no_anon_unions |
Jasper_lee | 0:b16d94660a33 | 540 | #endif |
Jasper_lee | 0:b16d94660a33 | 541 | |
Jasper_lee | 0:b16d94660a33 | 542 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 543 | /* Peripheral memory map */ |
Jasper_lee | 0:b16d94660a33 | 544 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 545 | /* Base addresses */ |
Jasper_lee | 0:b16d94660a33 | 546 | #define LPC_FLASH_BASE (0x00000000UL) |
Jasper_lee | 0:b16d94660a33 | 547 | #define LPC_RAM_BASE (0x10000000UL) |
Jasper_lee | 0:b16d94660a33 | 548 | #define LPC_APB0_BASE (0x40000000UL) |
Jasper_lee | 0:b16d94660a33 | 549 | #define LPC_AHB_BASE (0x50000000UL) |
Jasper_lee | 0:b16d94660a33 | 550 | |
Jasper_lee | 0:b16d94660a33 | 551 | /* APB0 peripherals */ |
Jasper_lee | 0:b16d94660a33 | 552 | #define LPC_I2C_BASE (LPC_APB0_BASE + 0x00000) |
Jasper_lee | 0:b16d94660a33 | 553 | #define LPC_WDT_BASE (LPC_APB0_BASE + 0x04000) |
Jasper_lee | 0:b16d94660a33 | 554 | #define LPC_UART_BASE (LPC_APB0_BASE + 0x08000) |
Jasper_lee | 0:b16d94660a33 | 555 | #define LPC_CT16B0_BASE (LPC_APB0_BASE + 0x0C000) |
Jasper_lee | 0:b16d94660a33 | 556 | #define LPC_CT16B1_BASE (LPC_APB0_BASE + 0x10000) |
Jasper_lee | 0:b16d94660a33 | 557 | #define LPC_CT32B0_BASE (LPC_APB0_BASE + 0x14000) |
Jasper_lee | 0:b16d94660a33 | 558 | #define LPC_CT32B1_BASE (LPC_APB0_BASE + 0x18000) |
Jasper_lee | 0:b16d94660a33 | 559 | #define LPC_ADC_BASE (LPC_APB0_BASE + 0x1C000) |
Jasper_lee | 0:b16d94660a33 | 560 | #define LPC_PMU_BASE (LPC_APB0_BASE + 0x38000) |
Jasper_lee | 0:b16d94660a33 | 561 | #define LPC_FLASHCTRL_BASE (LPC_APB0_BASE + 0x3C000) |
Jasper_lee | 0:b16d94660a33 | 562 | #define LPC_SSP0_BASE (LPC_APB0_BASE + 0x40000) |
Jasper_lee | 0:b16d94660a33 | 563 | #define LPC_IOCON_BASE (LPC_APB0_BASE + 0x44000) |
Jasper_lee | 0:b16d94660a33 | 564 | #define LPC_SYSCON_BASE (LPC_APB0_BASE + 0x48000) |
Jasper_lee | 0:b16d94660a33 | 565 | #define LPC_CAN_BASE (LPC_APB0_BASE + 0x50000) |
Jasper_lee | 0:b16d94660a33 | 566 | #define LPC_SSP1_BASE (LPC_APB0_BASE + 0x58000) |
Jasper_lee | 0:b16d94660a33 | 567 | |
Jasper_lee | 0:b16d94660a33 | 568 | /* AHB peripherals */ |
Jasper_lee | 0:b16d94660a33 | 569 | #define LPC_GPIO_BASE (LPC_AHB_BASE + 0x00000) |
Jasper_lee | 0:b16d94660a33 | 570 | #define LPC_GPIO0_BASE (LPC_AHB_BASE + 0x00000) |
Jasper_lee | 0:b16d94660a33 | 571 | #define LPC_GPIO1_BASE (LPC_AHB_BASE + 0x10000) |
Jasper_lee | 0:b16d94660a33 | 572 | #define LPC_GPIO2_BASE (LPC_AHB_BASE + 0x20000) |
Jasper_lee | 0:b16d94660a33 | 573 | #define LPC_GPIO3_BASE (LPC_AHB_BASE + 0x30000) |
Jasper_lee | 0:b16d94660a33 | 574 | |
Jasper_lee | 0:b16d94660a33 | 575 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 576 | /* Peripheral declaration */ |
Jasper_lee | 0:b16d94660a33 | 577 | /******************************************************************************/ |
Jasper_lee | 0:b16d94660a33 | 578 | #define LPC_I2C ((LPC_I2C_TypeDef *) LPC_I2C_BASE ) |
Jasper_lee | 0:b16d94660a33 | 579 | #define LPC_WDT ((LPC_WDT_TypeDef *) LPC_WDT_BASE ) |
Jasper_lee | 0:b16d94660a33 | 580 | #define LPC_UART ((LPC_UART_TypeDef *) LPC_UART_BASE ) |
Jasper_lee | 0:b16d94660a33 | 581 | #define LPC_TMR16B0 ((LPC_TMR_TypeDef *) LPC_CT16B0_BASE) |
Jasper_lee | 0:b16d94660a33 | 582 | #define LPC_TMR16B1 ((LPC_TMR_TypeDef *) LPC_CT16B1_BASE) |
Jasper_lee | 0:b16d94660a33 | 583 | #define LPC_TMR32B0 ((LPC_TMR_TypeDef *) LPC_CT32B0_BASE) |
Jasper_lee | 0:b16d94660a33 | 584 | #define LPC_TMR32B1 ((LPC_TMR_TypeDef *) LPC_CT32B1_BASE) |
Jasper_lee | 0:b16d94660a33 | 585 | #define LPC_ADC ((LPC_ADC_TypeDef *) LPC_ADC_BASE ) |
Jasper_lee | 0:b16d94660a33 | 586 | #define LPC_PMU ((LPC_PMU_TypeDef *) LPC_PMU_BASE ) |
Jasper_lee | 0:b16d94660a33 | 587 | #define LPC_FLASHCTRL ((LPC_FLASHCTRL_Type *) LPC_FLASHCTRL_BASE) |
Jasper_lee | 0:b16d94660a33 | 588 | #define LPC_SSP0 ((LPC_SSP_TypeDef *) LPC_SSP0_BASE ) |
Jasper_lee | 0:b16d94660a33 | 589 | #define LPC_SSP1 ((LPC_SSP_TypeDef *) LPC_SSP1_BASE ) |
Jasper_lee | 0:b16d94660a33 | 590 | #define LPC_CAN ((LPC_CAN_TypeDef *) LPC_CAN_BASE ) |
Jasper_lee | 0:b16d94660a33 | 591 | #define LPC_IOCON ((LPC_IOCON_TypeDef *) LPC_IOCON_BASE ) |
Jasper_lee | 0:b16d94660a33 | 592 | #define LPC_SYSCON ((LPC_SYSCON_TypeDef *) LPC_SYSCON_BASE) |
Jasper_lee | 0:b16d94660a33 | 593 | #define LPC_GPIO0 ((LPC_GPIO_TypeDef *) LPC_GPIO0_BASE ) |
Jasper_lee | 0:b16d94660a33 | 594 | #define LPC_GPIO1 ((LPC_GPIO_TypeDef *) LPC_GPIO1_BASE ) |
Jasper_lee | 0:b16d94660a33 | 595 | #define LPC_GPIO2 ((LPC_GPIO_TypeDef *) LPC_GPIO2_BASE ) |
Jasper_lee | 0:b16d94660a33 | 596 | #define LPC_GPIO3 ((LPC_GPIO_TypeDef *) LPC_GPIO3_BASE ) |
Jasper_lee | 0:b16d94660a33 | 597 | |
Jasper_lee | 0:b16d94660a33 | 598 | #ifdef __cplusplus |
Jasper_lee | 0:b16d94660a33 | 599 | } |
Jasper_lee | 0:b16d94660a33 | 600 | #endif |
Jasper_lee | 0:b16d94660a33 | 601 | |
Jasper_lee | 0:b16d94660a33 | 602 | #endif /* __LPC11xx_H__ */ |