libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cmsis.h Source File

cmsis.h

00001 /*
00002  * @brief LPC11xx selective CMSIS inclusion file
00003  *
00004  * Copyright(C) NXP Semiconductors, 2012
00005  * All rights reserved.
00006  *
00007  * Software that is described herein is for illustrative purposes only
00008  * which provides customers with programming information regarding the
00009  * LPC products.  This software is supplied "AS IS" without any warranties of
00010  * any kind, and NXP Semiconductors and its licensor disclaim any and
00011  * all warranties, express or implied, including all implied warranties of
00012  * merchantability, fitness for a particular purpose and non-infringement of
00013  * intellectual property rights.  NXP Semiconductors assumes no responsibility
00014  * or liability for the use of the software, conveys no license or rights under any
00015  * patent, copyright, mask work right, or any other intellectual property rights in
00016  * or to any products. NXP Semiconductors reserves the right to make changes
00017  * in the software without notification. NXP Semiconductors also makes no
00018  * representation or warranty that such application will be suitable for the
00019  * specified use without further testing or modification.
00020  *
00021  * Permission to use, copy, modify, and distribute this software and its
00022  * documentation is hereby granted, under NXP Semiconductors' and its
00023  * licensor's relevant copyrights in the software, without fee, provided that it
00024  * is used in conjunction with NXP Semiconductors microcontrollers.  This
00025  * copyright, permission, and disclaimer notice must appear in all copies of
00026  * this code.
00027  */
00028 
00029 #ifndef __CMSIS_H_
00030 #define __CMSIS_H_
00031 
00032 #include "lpc_types.h"
00033 #include "sys_config.h"
00034 
00035 /* Select correct CMSIS include file based on CHIP_* definition */
00036 #if defined(CHIP_LPC110X)
00037 #include "cmsis_110x.h"
00038 typedef LPC110X_IRQn_Type IRQn_Type;
00039 #elif defined(CHIP_LPC1125)
00040 #include "cmsis_1125.h"
00041 typedef LPC1125_IRQn_Type IRQn_Type;
00042 #elif defined(CHIP_LPC11AXX)
00043 #include "cmsis_11axx.h"
00044 typedef LPC11AXX_IRQn_Type IRQn_Type;
00045 #elif defined(CHIP_LPC11CXX)
00046 #include "cmsis_11cxx.h"
00047 typedef LPC11CXX_IRQn_Type IRQn_Type;
00048 #elif defined(CHIP_LPC11EXX)
00049 #include "cmsis_11exx.h"
00050 typedef LPC11EXX_IRQn_Type IRQn_Type;
00051 #elif defined(CHIP_LPC11UXX)
00052 #include "cmsis_11uxx.h"
00053 typedef LPC11UXX_IRQn_Type IRQn_Type;
00054 #elif defined(CHIP_LPC11XXLV)
00055 #include "cmsis_11lvxx.h"
00056 typedef LPC11XXLV_IRQn_Type IRQn_Type;
00057 #else
00058 #error "No CHIP_* definition is defined"
00059 #endif
00060 
00061 /* Cortex-M0 processor and core peripherals */
00062 #include "core_cm0.h"
00063 
00064 #endif /* __CMSIS_H_ */