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