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