Dependencies:   mbed

Committer:
lynxeyed_atsu
Date:
Fri Jan 21 08:39:48 2011 +0000
Revision:
0:63ed631d8c3a

        

Who changed what in which revision?

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