lpc-field

Template project for programming NXP's LPC1768 MCUs
git clone git://git.mdnr.space/lpc-field
Log | Files | Refs | README | LICENSE

lpc17xx_libcfg_default.h (5179B)


      1 /**********************************************************************
      2 * $Id$		lpc17xx_libcfg_default.h				2010-05-21
      3 *//**
      4 * @file		lpc17xx_libcfg_default.h
      5 * @brief	Default Library configuration header file
      6 * @version	2.0
      7 * @date		21. May. 2010
      8 * @author	NXP MCU SW Application Team
      9 *
     10 * Copyright(C) 2010, NXP Semiconductor
     11 * All rights reserved.
     12 *
     13 ***********************************************************************
     14 * Software that is described herein is for illustrative purposes only
     15 * which provides customers with programming information regarding the
     16 * products. This software is supplied "AS IS" without any warranties.
     17 * NXP Semiconductors assumes no responsibility or liability for the
     18 * use of the software, conveys no license or title under any patent,
     19 * copyright, or mask work right to the product. NXP Semiconductors
     20 * reserves the right to make changes in the software without
     21 * notification. NXP Semiconductors also make no representation or
     22 * warranty that such application will be suitable for the specified
     23 * use without further testing or modification.
     24 * Permission to use, copy, modify, and distribute this software and its
     25 * documentation is hereby granted, under NXP Semiconductors'
     26 * relevant copyright in the software, without fee, provided that it
     27 * is used in conjunction with NXP Semiconductors microcontrollers.  This
     28 * copyright, permission, and disclaimer notice must appear in all copies of
     29 * this code.
     30 **********************************************************************/
     31 
     32 /* Library Configuration group ----------------------------------------------------------- */
     33 /** @defgroup LIBCFG_DEFAULT LIBCFG_DEFAULT (Default Library Configuration)
     34  * @ingroup LPC1700CMSIS_FwLib_Drivers
     35  * @{
     36  */
     37 
     38 #ifndef LPC17XX_LIBCFG_DEFAULT_H_
     39 #define LPC17XX_LIBCFG_DEFAULT_H_
     40 
     41 /* Includes ------------------------------------------------------------------- */
     42 #include "lpc_types.h"
     43 
     44 
     45 /* Public Macros -------------------------------------------------------------- */
     46 /** @defgroup LIBCFG_DEFAULT_Public_Macros LIBCFG_DEFAULT Public Macros
     47  * @{
     48  */
     49 
     50 /************************** DEBUG MODE DEFINITIONS *********************************/
     51 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
     52    the "CHECK_PARAM" macro in the FW library code */
     53 
     54 #define DEBUG
     55 
     56 
     57 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
     58 /* Comment the line below to disable the specific peripheral inclusion */
     59 
     60 /* DEBUG_FRAMWORK ------------------------------ */
     61 #define _DBGFWK
     62 
     63 /* GPIO ------------------------------- */
     64 #define _GPIO
     65 
     66 /* EXTI ------------------------------- */
     67 #define _EXTI
     68 
     69 /* UART ------------------------------- */
     70 #define _UART
     71 #define _UART0
     72 #define _UART1
     73 #define _UART2
     74 #define _UART3
     75 
     76 /* SPI ------------------------------- */
     77 #define _SPI
     78 
     79 /* SYSTICK --------------------------- */
     80 #define _SYSTICK
     81 
     82 /* SSP ------------------------------- */
     83 #define _SSP
     84 #define _SSP0
     85 #define _SSP1
     86 
     87 
     88 /* I2C ------------------------------- */
     89 #define _I2C
     90 #define _I2C0
     91 #define _I2C1
     92 #define _I2C2
     93 
     94 /* TIMER ------------------------------- */
     95 #define _TIM
     96 
     97 /* WDT ------------------------------- */
     98 #define _WDT
     99 
    100 
    101 /* GPDMA ------------------------------- */
    102 #define _GPDMA
    103 
    104 
    105 /* DAC ------------------------------- */
    106 #define _DAC
    107 
    108 /* DAC ------------------------------- */
    109 #define _ADC
    110 
    111 
    112 /* PWM ------------------------------- */
    113 #define _PWM
    114 #define _PWM1
    115 
    116 /* RTC ------------------------------- */
    117 #define _RTC
    118 
    119 /* I2S ------------------------------- */
    120 #define _I2S
    121 
    122 /* USB device ------------------------------- */
    123 #define _USBDEV
    124 #define _USB_DMA
    125 
    126 /* QEI ------------------------------- */
    127 #define _QEI
    128 
    129 /* MCPWM ------------------------------- */
    130 #define _MCPWM
    131 
    132 /* CAN--------------------------------*/
    133 #define _CAN
    134 
    135 /* RIT ------------------------------- */
    136 #define _RIT
    137 
    138 /* EMAC ------------------------------ */
    139 #define _EMAC
    140 
    141 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
    142 
    143 #ifdef  DEBUG
    144 /*******************************************************************************
    145 * @brief		The CHECK_PARAM macro is used for function's parameters check.
    146 * 				It is used only if the library is compiled in DEBUG mode.
    147 * @param[in]	expr - If expr is false, it calls check_failed() function
    148 *                    	which reports the name of the source file and the source
    149 *                    	line number of the call that failed.
    150 *                    - If expr is true, it returns no value.
    151 * @return		None
    152 *******************************************************************************/
    153 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
    154 #else
    155 #define CHECK_PARAM(expr)
    156 #endif /* DEBUG */
    157 
    158 /**
    159  * @}
    160  */
    161 
    162 
    163 /* Public Functions ----------------------------------------------------------- */
    164 /** @defgroup LIBCFG_DEFAULT_Public_Functions LIBCFG_DEFAULT Public Functions
    165  * @{
    166  */
    167 
    168 #ifdef  DEBUG
    169 void check_failed(uint8_t *file, uint32_t line);
    170 #endif
    171 
    172 /**
    173  * @}
    174  */
    175 
    176 #endif /* LPC17XX_LIBCFG_DEFAULT_H_ */
    177 
    178 /**
    179  * @}
    180  */
    181 
    182 /* --------------------------------- End Of File ------------------------------ */