LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
cmsis_18xx.h
Go to the documentation of this file.
1 /*
2  * @brief Basic CMSIS include file for LPC18XX
3  *
4  * @note
5  * Copyright(C) NXP Semiconductors, 2013
6  * All rights reserved.
7  *
8  * @par
9  * Software that is described herein is for illustrative purposes only
10  * which provides customers with programming information regarding the
11  * LPC products. This software is supplied "AS IS" without any warranties of
12  * any kind, and NXP Semiconductors and its licensor disclaim any and
13  * all warranties, express or implied, including all implied warranties of
14  * merchantability, fitness for a particular purpose and non-infringement of
15  * intellectual property rights. NXP Semiconductors assumes no responsibility
16  * or liability for the use of the software, conveys no license or rights under any
17  * patent, copyright, mask work right, or any other intellectual property rights in
18  * or to any products. NXP Semiconductors reserves the right to make changes
19  * in the software without notification. NXP Semiconductors also makes no
20  * representation or warranty that such application will be suitable for the
21  * specified use without further testing or modification.
22  *
23  * @par
24  * Permission to use, copy, modify, and distribute this software and its
25  * documentation is hereby granted, under NXP Semiconductors' and its
26  * licensor's relevant copyrights in the software, without fee, provided that it
27  * is used in conjunction with NXP Semiconductors microcontrollers. This
28  * copyright, permission, and disclaimer notice must appear in all copies of
29  * this code.
30  */
31 
32 #ifndef __CMSIS_18XX_H_
33 #define __CMSIS_18XX_H_
34 
35 #ifndef __CMSIS_H_
36 #error "cmsis_18xx.h should not be included directly use cmsis.h instead"
37 #endif
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
48 #if defined(__ARMCC_VERSION)
49  #pragma diag_suppress 2525
50  #pragma push
51  #pragma anon_unions
52 #elif defined(__CWCC__)
53  #pragma push
54  #pragma cpp_extensions on
55 #elif defined(__GNUC__)
56 /* anonymous unions are enabled by default */
57 #elif defined(__IAR_SYSTEMS_ICC__)
58  #pragma language=extended
59 #else
60  #error Not supported compiler type
61 #endif
62 
66 #define __CM3_REV 0x0201
67 #define __MPU_PRESENT 1
68 #define __NVIC_PRIO_BITS 3
69 #define __Vendor_SysTickConfig 0
70 #define __FPU_PRESENT 0
80 typedef enum {
81  /* ------------------------- Cortex-M3 Processor Exceptions Numbers ----------------------------- */
82  Reset_IRQn = -15,
88  SVCall_IRQn = -5,
90  PendSV_IRQn = -2,
91  SysTick_IRQn = -1,
93  /* --------------------------- LPC18xx/43xx Specific Interrupt Numbers ------------------------------- */
94  DAC_IRQn = 0,
96  DMA_IRQn = 2,
101  LCD_IRQn = 7,
104  SCT_IRQn = 10,
111  ADC0_IRQn = 17,
112  I2C0_IRQn = 18,
113  I2C1_IRQn = 19,
115  ADC1_IRQn = 21,
116  SSP0_IRQn = 22,
117  SSP1_IRQn = 23,
122  I2S0_IRQn = 28,
123  I2S1_IRQn = 29,
141  RTC_IRQn = 47,
143  WWDT_IRQn = 49,
146  QEI_IRQn = 52,
148 
154 
155 /* Cortex-M3 processor and core peripherals */
156 #include "core_cm3.h"
157 
162 #ifdef __cplusplus
163 }
164 #endif
165 
166 #endif /* ifndef __CMSIS_18XX_H_ */