lpc17xx_libcfg_default.h
163 lines
| 4.6 KiB
| text/x-c
|
CLexer
r71 | /***********************************************************************//** | |||
* @file : lpc17xx_libcfg_default.h | ||||
* @brief : Default Library configuration header file | ||||
* @version : 1.0 | ||||
* @date : 26. Mar. 2009 | ||||
* @author : HieuNguyen | ||||
************************************************************************** | ||||
* Software that is described herein is for illustrative purposes only | ||||
* which provides customers with programming information regarding the | ||||
* products. This software is supplied "AS IS" without any warranties. | ||||
* NXP Semiconductors assumes no responsibility or liability for the | ||||
* use of the software, conveys no license or title under any patent, | ||||
* copyright, or mask work right to the product. NXP Semiconductors | ||||
* reserves the right to make changes in the software without | ||||
* notification. NXP Semiconductors also make no representation or | ||||
* warranty that such application will be suitable for the specified | ||||
* use without further testing or modification. | ||||
**************************************************************************/ | ||||
/* Library Configuration group ----------------------------------------------------------- */ | ||||
/** @defgroup LIBCFG_DEFAULT | ||||
* @ingroup LPC1700CMSIS_FwLib_Drivers | ||||
* @{ | ||||
*/ | ||||
#ifndef LPC17XX_LIBCFG_DEFAULT_H_ | ||||
#define LPC17XX_LIBCFG_DEFAULT_H_ | ||||
/* Includes ------------------------------------------------------------------- */ | ||||
#include "lpc_types.h" | ||||
/* Public Macros -------------------------------------------------------------- */ | ||||
/** @defgroup LIBCFG_DEFAULT_Public_Macros | ||||
* @{ | ||||
*/ | ||||
/************************** DEBUG MODE DEFINITIONS *********************************/ | ||||
/* Un-comment the line below to compile the library in DEBUG mode, this will expanse | ||||
the "CHECK_PARAM" macro in the FW library code */ | ||||
#define DEBUG 1 | ||||
/******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/ | ||||
/* Comment the line below to disable the specific peripheral inclusion */ | ||||
/* GPIO ------------------------------- */ | ||||
#define _GPIO 1 | ||||
/* UART ------------------------------- */ | ||||
#define _UART 1 | ||||
#define _UART0 1 | ||||
#define _UART1 1 | ||||
#define _UART2 1 | ||||
#define _UART3 1 | ||||
/* SPI ------------------------------- */ | ||||
#define _SPI 1 | ||||
/* SSP ------------------------------- */ | ||||
#define _SSP 1 | ||||
#define _SSP0 1 | ||||
#define _SSP1 1 | ||||
/* I2C ------------------------------- */ | ||||
#define _I2C 1 | ||||
#define _I2C0 1 | ||||
#define _I2C1 1 | ||||
#define _I2C2 1 | ||||
/* TIMER ------------------------------- */ | ||||
#define _TIM 1 | ||||
/* WDT ------------------------------- */ | ||||
#define _WDT 1 | ||||
/* GPDMA ------------------------------- */ | ||||
#define _GPDMA 1 | ||||
/* DAC ------------------------------- */ | ||||
#define _DAC 1 | ||||
/* DAC ------------------------------- */ | ||||
#define _ADC 1 | ||||
/* PWM ------------------------------- */ | ||||
#define _PWM 1 | ||||
#define _PWM1 1 | ||||
/* RTC ------------------------------- */ | ||||
#define _RTC 1 | ||||
/* I2S ------------------------------- */ | ||||
#define _I2S 1 | ||||
/* USB device ------------------------------- */ | ||||
#define _USBDEV 1 | ||||
#define _USB_DMA 1 | ||||
/* QEI ------------------------------- */ | ||||
#define _QEI 1 | ||||
/* MCPWM ------------------------------- */ | ||||
#define _MCPWM 1 | ||||
/* CAN--------------------------------*/ | ||||
#define _CAN 1 | ||||
/* RIT ------------------------------- */ | ||||
#define _RIT 1 | ||||
/* EMAC ------------------------------ */ | ||||
#define _EMAC 1 | ||||
/************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/ | ||||
#ifdef DEBUG | ||||
/******************************************************************************* | ||||
* @brief The CHECK_PARAM macro is used for function's parameters check. | ||||
* It is used only if the library is compiled in DEBUG mode. | ||||
* @param[in] expr - If expr is false, it calls check_failed() function | ||||
* which reports the name of the source file and the source | ||||
* line number of the call that failed. | ||||
* - If expr is true, it returns no value. | ||||
* @return None | ||||
*******************************************************************************/ | ||||
#define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__)) | ||||
#else | ||||
#define CHECK_PARAM(expr) | ||||
#endif /* DEBUG */ | ||||
/** | ||||
* @} | ||||
*/ | ||||
/* Public Functions ----------------------------------------------------------- */ | ||||
/** @defgroup LIBCFG_DEFAULT_Public_Functions | ||||
* @{ | ||||
*/ | ||||
#ifdef DEBUG | ||||
void check_failed(uint8_t *file, uint32_t line); | ||||
#endif | ||||
/** | ||||
* @} | ||||
*/ | ||||
#endif /* LPC17XX_LIBCFG_DEFAULT_H_ */ | ||||
/** | ||||
* @} | ||||
*/ | ||||
/* --------------------------------- End Of File ------------------------------ */ | ||||