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.h
lynxeyed_atsu 0:63ed631d8c3a 3 * @purpose Library configuration 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 #ifndef LPC17XX_LIBCFG_H_
lynxeyed_atsu 0:63ed631d8c3a 21 #define LPC17XX_LIBCFG_H_
lynxeyed_atsu 0:63ed631d8c3a 22
lynxeyed_atsu 0:63ed631d8c3a 23 #include "lpc_types.h"
lynxeyed_atsu 0:63ed631d8c3a 24
lynxeyed_atsu 0:63ed631d8c3a 25
lynxeyed_atsu 0:63ed631d8c3a 26 /************************** DEBUG MODE DEFINITIONS *********************************/
lynxeyed_atsu 0:63ed631d8c3a 27 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
lynxeyed_atsu 0:63ed631d8c3a 28 the "CHECK_PARAM" macro in the FW library code */
lynxeyed_atsu 0:63ed631d8c3a 29
lynxeyed_atsu 0:63ed631d8c3a 30 #define DEBUG
lynxeyed_atsu 0:63ed631d8c3a 31
lynxeyed_atsu 0:63ed631d8c3a 32
lynxeyed_atsu 0:63ed631d8c3a 33 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
lynxeyed_atsu 0:63ed631d8c3a 34
lynxeyed_atsu 0:63ed631d8c3a 35 /* Comment the line below to disable the specific peripheral inclusion */
lynxeyed_atsu 0:63ed631d8c3a 36
lynxeyed_atsu 0:63ed631d8c3a 37 /* DEBUG_FRAMWORK ------------------------------ */
lynxeyed_atsu 0:63ed631d8c3a 38 #define _DBGFWK
lynxeyed_atsu 0:63ed631d8c3a 39
lynxeyed_atsu 0:63ed631d8c3a 40 /* GPIO ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 41 //#define _GPIO
lynxeyed_atsu 0:63ed631d8c3a 42
lynxeyed_atsu 0:63ed631d8c3a 43 /* EXTI ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 44 //#define _EXTI
lynxeyed_atsu 0:63ed631d8c3a 45
lynxeyed_atsu 0:63ed631d8c3a 46 /* UART ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 47 #define _UART
lynxeyed_atsu 0:63ed631d8c3a 48 #define _UART0
lynxeyed_atsu 0:63ed631d8c3a 49 //#define _UART1
lynxeyed_atsu 0:63ed631d8c3a 50 //#define _UART2
lynxeyed_atsu 0:63ed631d8c3a 51 //#define _UART3
lynxeyed_atsu 0:63ed631d8c3a 52
lynxeyed_atsu 0:63ed631d8c3a 53 /* SPI ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 54 //#define _SPI
lynxeyed_atsu 0:63ed631d8c3a 55
lynxeyed_atsu 0:63ed631d8c3a 56 /* SSP ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 57 //#define _SSP
lynxeyed_atsu 0:63ed631d8c3a 58 //#define _SSP0
lynxeyed_atsu 0:63ed631d8c3a 59 //#define _SSP1
lynxeyed_atsu 0:63ed631d8c3a 60
lynxeyed_atsu 0:63ed631d8c3a 61 /* SYSTICK --------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 62 //#define _SYSTICK
lynxeyed_atsu 0:63ed631d8c3a 63
lynxeyed_atsu 0:63ed631d8c3a 64 /* I2C ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 65 //#define _I2C
lynxeyed_atsu 0:63ed631d8c3a 66 //#define _I2C0
lynxeyed_atsu 0:63ed631d8c3a 67 //#define _I2C1
lynxeyed_atsu 0:63ed631d8c3a 68 //#define _I2C2
lynxeyed_atsu 0:63ed631d8c3a 69
lynxeyed_atsu 0:63ed631d8c3a 70 /* TIMER ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 71 //#define _TIM
lynxeyed_atsu 0:63ed631d8c3a 72
lynxeyed_atsu 0:63ed631d8c3a 73 /* WDT ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 74 //#define _WDT
lynxeyed_atsu 0:63ed631d8c3a 75
lynxeyed_atsu 0:63ed631d8c3a 76
lynxeyed_atsu 0:63ed631d8c3a 77 /* GPDMA ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 78 //#define _GPDMA
lynxeyed_atsu 0:63ed631d8c3a 79
lynxeyed_atsu 0:63ed631d8c3a 80
lynxeyed_atsu 0:63ed631d8c3a 81 /* DAC ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 82 //#define _DAC
lynxeyed_atsu 0:63ed631d8c3a 83
lynxeyed_atsu 0:63ed631d8c3a 84 /* DAC ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 85 //#define _ADC
lynxeyed_atsu 0:63ed631d8c3a 86
lynxeyed_atsu 0:63ed631d8c3a 87
lynxeyed_atsu 0:63ed631d8c3a 88 /* PWM ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 89 //#define _PWM
lynxeyed_atsu 0:63ed631d8c3a 90 //#define _PWM1
lynxeyed_atsu 0:63ed631d8c3a 91
lynxeyed_atsu 0:63ed631d8c3a 92 /* RTC ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 93 //#define _RTC
lynxeyed_atsu 0:63ed631d8c3a 94
lynxeyed_atsu 0:63ed631d8c3a 95 /* I2S ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 96 #define _I2S
lynxeyed_atsu 0:63ed631d8c3a 97
lynxeyed_atsu 0:63ed631d8c3a 98 /* USB device ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 99 //#define _USBDEV
lynxeyed_atsu 0:63ed631d8c3a 100 //#define _USB_DMA
lynxeyed_atsu 0:63ed631d8c3a 101
lynxeyed_atsu 0:63ed631d8c3a 102 /* QEI ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 103 //#define _QEI
lynxeyed_atsu 0:63ed631d8c3a 104
lynxeyed_atsu 0:63ed631d8c3a 105 /* MCPWM ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 106 //#define _MCPWM
lynxeyed_atsu 0:63ed631d8c3a 107
lynxeyed_atsu 0:63ed631d8c3a 108 /* CAN--------------------------------*/
lynxeyed_atsu 0:63ed631d8c3a 109 //#define _CAN
lynxeyed_atsu 0:63ed631d8c3a 110
lynxeyed_atsu 0:63ed631d8c3a 111 /* RIT ------------------------------- */
lynxeyed_atsu 0:63ed631d8c3a 112 //#define _RIT
lynxeyed_atsu 0:63ed631d8c3a 113
lynxeyed_atsu 0:63ed631d8c3a 114 /* EMAC ------------------------------ */
lynxeyed_atsu 0:63ed631d8c3a 115 //#define _EMAC
lynxeyed_atsu 0:63ed631d8c3a 116
lynxeyed_atsu 0:63ed631d8c3a 117 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
lynxeyed_atsu 0:63ed631d8c3a 118
lynxeyed_atsu 0:63ed631d8c3a 119 #ifdef DEBUG
lynxeyed_atsu 0:63ed631d8c3a 120 /*******************************************************************************
lynxeyed_atsu 0:63ed631d8c3a 121 * @brief The CHECK_PARAM macro is used for function's parameters check.
lynxeyed_atsu 0:63ed631d8c3a 122 * It is used only if the library is compiled in DEBUG mode.
lynxeyed_atsu 0:63ed631d8c3a 123 * @param[in] expr - If expr is false, it calls check_failed() function
lynxeyed_atsu 0:63ed631d8c3a 124 * which reports the name of the source file and the source
lynxeyed_atsu 0:63ed631d8c3a 125 * line number of the call that failed.
lynxeyed_atsu 0:63ed631d8c3a 126 * - If expr is true, it returns no value.
lynxeyed_atsu 0:63ed631d8c3a 127 * @return None
lynxeyed_atsu 0:63ed631d8c3a 128 *******************************************************************************/
lynxeyed_atsu 0:63ed631d8c3a 129 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
lynxeyed_atsu 0:63ed631d8c3a 130 #else
lynxeyed_atsu 0:63ed631d8c3a 131 #define CHECK_PARAM(expr)
lynxeyed_atsu 0:63ed631d8c3a 132 #endif /* DEBUG */
lynxeyed_atsu 0:63ed631d8c3a 133
lynxeyed_atsu 0:63ed631d8c3a 134
lynxeyed_atsu 0:63ed631d8c3a 135
lynxeyed_atsu 0:63ed631d8c3a 136 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
lynxeyed_atsu 0:63ed631d8c3a 137
lynxeyed_atsu 0:63ed631d8c3a 138 #ifdef DEBUG
lynxeyed_atsu 0:63ed631d8c3a 139 void check_failed(uint8_t *file, uint32_t line);
lynxeyed_atsu 0:63ed631d8c3a 140 #endif
lynxeyed_atsu 0:63ed631d8c3a 141
lynxeyed_atsu 0:63ed631d8c3a 142
lynxeyed_atsu 0:63ed631d8c3a 143 #endif /* LPC17XX_LIBCFG_H_ */