uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
lpc17xx_libcfg_default.h
Go to the documentation of this file.
1
/***********************************************************************/
20
/* Library Configuration group ----------------------------------------------------------- */
26
#ifndef LPC17XX_LIBCFG_DEFAULT_H_
27
#define LPC17XX_LIBCFG_DEFAULT_H_
28
29
/* Includes ------------------------------------------------------------------- */
30
#include "
lpc_types.h
"
31
32
33
/* Public Macros -------------------------------------------------------------- */
38
/************************** DEBUG MODE DEFINITIONS *********************************/
39
/* Un-comment the line below to compile the library in DEBUG mode, this will expanse
40
the "CHECK_PARAM" macro in the FW library code */
41
42
#define DEBUG
43
44
45
/******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
46
/* Comment the line below to disable the specific peripheral inclusion */
47
48
/* DEBUG_FRAMWORK ------------------------------ */
49
#define _DBGFWK
50
51
/* GPIO ------------------------------- */
52
#define _GPIO
53
54
/* EXTI ------------------------------- */
55
#define _EXTI
56
57
/* UART ------------------------------- */
58
#define _UART
59
#define _UART0
60
#define _UART1
61
#define _UART2
62
#define _UART3
63
64
/* SPI ------------------------------- */
65
#define _SPI
66
67
/* SYSTICK --------------------------- */
68
#define _SYSTICK
69
70
/* SSP ------------------------------- */
71
#define _SSP
72
#define _SSP0
73
#define _SSP1
74
75
76
/* I2C ------------------------------- */
77
#define _I2C
78
#define _I2C0
79
#define _I2C1
80
#define _I2C2
81
82
/* TIMER ------------------------------- */
83
#define _TIM
84
85
/* WDT ------------------------------- */
86
#define _WDT
87
88
89
/* GPDMA ------------------------------- */
90
#define _GPDMA
91
92
93
/* DAC ------------------------------- */
94
#define _DAC
95
96
/* DAC ------------------------------- */
97
#define _ADC
98
99
100
/* PWM ------------------------------- */
101
#define _PWM
102
#define _PWM1
103
104
/* RTC ------------------------------- */
105
#define _RTC
106
107
/* I2S ------------------------------- */
108
#define _I2S
109
110
/* USB device ------------------------------- */
111
#define _USBDEV
112
#define _USB_DMA
113
114
/* QEI ------------------------------- */
115
#define _QEI
116
117
/* MCPWM ------------------------------- */
118
#define _MCPWM
119
120
/* CAN--------------------------------*/
121
#define _CAN
122
123
/* RIT ------------------------------- */
124
#define _RIT
125
126
/* EMAC ------------------------------ */
127
#define _EMAC
128
129
/************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
130
131
#ifdef DEBUG
132
/*******************************************************************************
133
* @brief The CHECK_PARAM macro is used for function's parameters check.
134
* It is used only if the library is compiled in DEBUG mode.
135
* @param[in] expr - If expr is false, it calls check_failed() function
136
* which reports the name of the source file and the source
137
* line number of the call that failed.
138
* - If expr is true, it returns no value.
139
* @return None
140
*******************************************************************************/
141
#define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
142
#else
143
#define CHECK_PARAM(expr)
144
#endif
/* DEBUG */
145
151
/* Public Functions ----------------------------------------------------------- */
156
#ifdef DEBUG
157
void
check_failed
(uint8_t *file, uint32_t line);
158
#endif
159
164
#endif
/* LPC17XX_LIBCFG_DEFAULT_H_ */
165
170
/* --------------------------------- End Of File ------------------------------ */
arch
arm
lpc17xx
Drivers
include
lpc17xx_libcfg_default.h
Generated on Fri Nov 15 2013 05:00:16 for uc-sdk by
1.8.4