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 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
00028 
00029 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
00030    the "CHECK_PARAM" macro in the FW library code */
00031 
00032 #define DEBUG
00033 
00034 
00035 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
00036 
00037 /* Comment the line below to disable the specific peripheral inclusion */
00038 
00039 /* DEBUG_FRAMWORK ------------------------------ */
00040 #define _DBGFWK
00041 
00042 /* GPIO ------------------------------- */
00043 #define _GPIO
00044 
00045 /* EXTI ------------------------------- */
00046 //#define _EXTI
00047 
00048 /* UART ------------------------------- */
00049 #define _UART
00050 #define _UART0
00051 //#define _UART1
00052 //#define _UART2
00053 //#define _UART3
00054 
00055 /* SPI ------------------------------- */
00056 //#define _SPI
00057 
00058 /* SSP ------------------------------- */
00059 //#define _SSP
00060 //#define _SSP0
00061 //#define _SSP1
00062 
00063 /* SYSTICK --------------------------- */
00064 //#define _SYSTICK
00065 
00066 /* I2C ------------------------------- */
00067 //#define _I2C
00068 //#define _I2C0
00069 //#define _I2C1
00070 //#define _I2C2
00071 
00072 /* TIMER ------------------------------- */
00073 //#define _TIM
00074 
00075 /* WDT ------------------------------- */
00076 //#define _WDT
00077 
00078 
00079 /* GPDMA ------------------------------- */
00080 //#define _GPDMA
00081 
00082 
00083 /* DAC ------------------------------- */
00084 //#define _DAC
00085 
00086 /* DAC ------------------------------- */
00087 //#define _ADC
00088 
00089 
00090 /* PWM ------------------------------- */
00091 //#define _PWM
00092 //#define _PWM1
00093 
00094 /* RTC ------------------------------- */
00095 //#define _RTC
00096 
00097 /* I2S ------------------------------- */
00098 //#define _I2S
00099 
00100 /* USB device ------------------------------- */
00101 //#define _USBDEV
00102 //#define _USB_DMA
00103 
00104 /* QEI ------------------------------- */
00105 //#define _QEI
00106 
00107 /* MCPWM ------------------------------- */
00108 //#define _MCPWM
00109 
00110 /* CAN--------------------------------*/
00111 //#define _CAN
00112 
00113 /* RIT ------------------------------- */
00114 //#define _RIT
00115 
00116 /* EMAC ------------------------------ */
00117 #define _EMAC
00118 
00119 
00120 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
00121 
00122 #ifdef  DEBUG
00123 /*******************************************************************************
00124 * @brief        The CHECK_PARAM macro is used for function's parameters check.
00125 *               It is used only if the library is compiled in DEBUG mode.
00126 * @param[in]    expr - If expr is false, it calls check_failed() function
00127 *                       which reports the name of the source file and the source
00128 *                       line number of the call that failed.
00129 *                    - If expr is true, it returns no value.
00130 * @return       None
00131 *******************************************************************************/
00132 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
00133 #else
00134 #define CHECK_PARAM(expr)
00135 #endif /* DEBUG */
00136 
00137 
00138 
00139 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
00140 
00141 #ifdef  DEBUG
00142 void check_failed(uint8_t *file, uint32_t line);
00143 #endif
00144 
00145 
00146 #endif /* LPC17XX_LIBCFG_H_ */