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 00035 /* Comment the line below to disable the specific peripheral inclusion */ 00036 00037 /* DEBUG_FRAMWORK ------------------------------ */ 00038 #define _DBGFWK 00039 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 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/ 00119 00120 #ifdef DEBUG 00121 /******************************************************************************* 00122 * @brief The CHECK_PARAM macro is used for function's parameters check. 00123 * It is used only if the library is compiled in DEBUG mode. 00124 * @param[in] expr - If expr is false, it calls check_failed() function 00125 * which reports the name of the source file and the source 00126 * line number of the call that failed. 00127 * - If expr is true, it returns no value. 00128 * @return None 00129 *******************************************************************************/ 00130 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__)) 00131 #else 00132 #define CHECK_PARAM(expr) 00133 #endif /* DEBUG */ 00134 00135 00136 00137 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/ 00138 00139 #ifdef DEBUG 00140 void check_failed(uint8_t *file, uint32_t line); 00141 #endif 00142 00143 00144 #endif /* LPC17XX_LIBCFG_H_ */
Generated on Tue Jul 12 2022 17:28:09 by 1.7.2