These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lpc17xx_libcfg.h Source File

lpc17xx_libcfg.h

00001 /***********************************************************************//**
00002  * @file        lpc17xx_libcfg.h
00003  * @purpose     Library configuration file
00004  * @version     2.0
00005  * @date        21. May. 2010
00006  * @author      NXP MCU SW Application Team
00007  **************************************************************************
00008  * Software that is described herein is for illustrative purposes only
00009  * which provides customers with programming information regarding the
00010  * products. This software is supplied "AS IS" without any warranties.
00011  * NXP Semiconductors assumes no responsibility or liability for the
00012  * use of the software, conveys no license or title under any patent,
00013  * copyright, or mask work right to the product. NXP Semiconductors
00014  * reserves the right to make changes in the software without
00015  * notification. NXP Semiconductors also make no representation or
00016  * warranty that such application will be suitable for the specified
00017  * use without further testing or modification.
00018  **************************************************************************/
00019 
00020 #ifndef LPC17XX_LIBCFG_H_
00021 #define LPC17XX_LIBCFG_H_
00022 
00023 #include "lpc_types.h"
00024 
00025 
00026 /************************** DEBUG MODE DEFINITIONS *********************************/
00027 
00028 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
00029    the "CHECK_PARAM" macro in the FW library code */
00030 
00031 #define DEBUG
00032 
00033 
00034 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
00035 
00036 /* Comment the line below to disable the specific peripheral inclusion */
00037 
00038 /* DEBUG_FRAMWORK ------------------------------ */
00039 #define _DBGFWK
00040 
00041 /* GPIO ------------------------------- */
00042 //#define _GPIO
00043 
00044 /* EXTI ------------------------------- */
00045 //#define _EXTI
00046 
00047 /* UART ------------------------------- */
00048 #define _UART
00049 #define _UART0
00050 //#define _UART1
00051 //#define _UART2
00052 //#define _UART3
00053 
00054 /* SPI ------------------------------- */
00055 //#define _SPI
00056 
00057 /* SSP ------------------------------- */
00058 //#define _SSP
00059 //#define _SSP0
00060 //#define _SSP1
00061 
00062 /* SYSTICK --------------------------- */
00063 //#define _SYSTICK
00064 
00065 /* I2C ------------------------------- */
00066 //#define _I2C
00067 //#define _I2C0
00068 //#define _I2C1
00069 //#define _I2C2
00070 
00071 /* TIMER ------------------------------- */
00072 //#define _TIM
00073 
00074 /* WDT ------------------------------- */
00075 //#define _WDT
00076 
00077 
00078 /* GPDMA ------------------------------- */
00079 //#define _GPDMA
00080 
00081 
00082 /* DAC ------------------------------- */
00083 //#define _DAC
00084 
00085 /* DAC ------------------------------- */
00086 //#define _ADC
00087 
00088 
00089 /* PWM ------------------------------- */
00090 //#define _PWM
00091 //#define _PWM1
00092 
00093 /* RTC ------------------------------- */
00094 //#define _RTC
00095 
00096 /* I2S ------------------------------- */
00097 //#define _I2S
00098 
00099 /* USB device ------------------------------- */
00100 //#define _USBDEV
00101 //#define _USB_DMA
00102 
00103 /* QEI ------------------------------- */
00104 //#define _QEI
00105 
00106 /* MCPWM ------------------------------- */
00107 #define _MCPWM
00108 
00109 /* CAN--------------------------------*/
00110 //#define _CAN
00111 
00112 /* RIT ------------------------------- */
00113 //#define _RIT
00114 
00115 /* EMAC ------------------------------ */
00116 //#define _EMAC
00117 
00118 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
00119 
00120 /* Comment the line below to disable the specific peripheral inclusion */
00121 
00122 /* UART ------------------------------- */
00123 #define _UART
00124 #define _UART0
00125 
00126 /* SPI ------------------------------- */
00127 //#define _SPI
00128 
00129 /* SSP ------------------------------- */
00130 //#define _SSP
00131 //#define _SSP0
00132 //#define _SSP1
00133 
00134 
00135 /* I2C ------------------------------- */
00136 //#define _I2C
00137 //#define _I2C0
00138 //#define _I2C1
00139 //#define _I2C2
00140 
00141 /* TIMER ------------------------------- */
00142 #define _TIM
00143 
00144 /* WDT ------------------------------- */
00145 //#define _WDT
00146 
00147 
00148 /* GPDMA ------------------------------- */
00149 //#define _GPDMA
00150 
00151 
00152 /* DAC ------------------------------- */
00153 //#define _DAC
00154 
00155 /* DAC ------------------------------- */
00156 //#define _ADC
00157 
00158 
00159 /* PWM ------------------------------- */
00160 //#define _PWM
00161 //#define _PWM1
00162 
00163 /* RTC ------------------------------- */
00164 //#define _RTC
00165 
00166 /* I2S ------------------------------- */
00167 //#define _I2S
00168 
00169 /* USB device ------------------------------- */
00170 //#define _USBDEV
00171 //#define _USB_DMA
00172 
00173 /* QEI ------------------------------- */
00174 #define _QEI
00175 
00176 /* MCPWM ------------------------------- */
00177 #define _MCPWM
00178 
00179 
00180 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
00181 
00182 #ifdef  DEBUG
00183 /*******************************************************************************
00184 * @brief        The CHECK_PARAM macro is used for function's parameters check.
00185 *               It is used only if the library is compiled in DEBUG mode.
00186 * @param[in]    expr - If expr is false, it calls check_failed() function
00187 *                       which reports the name of the source file and the source
00188 *                       line number of the call that failed.
00189 *                    - If expr is true, it returns no value.
00190 * @return       None
00191 *******************************************************************************/
00192 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
00193 #else
00194 #define CHECK_PARAM(expr)
00195 #endif /* DEBUG */
00196 
00197 
00198 
00199 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
00200 
00201 #ifdef  DEBUG
00202 void check_failed(uint8_t *file, uint32_t line);
00203 #endif
00204 
00205 
00206 #endif /* LPC17XX_LIBCFG_H_ */