PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
Main Page
Modules
Data Structures
Files
File List
Globals
debug.h
Go to the documentation of this file.
1
27
#ifndef _DEBUG_H_
28
#define _DEBUG_H_
29
30
/*---------------------------------------------------------------------------*/
31
/* include files */
32
/*---------------------------------------------------------------------------*/
33
#include <stdio.h>
34
/*---------------------------------------------------------------------------*/
35
/* constants and macros */
36
/*---------------------------------------------------------------------------*/
37
/* Uncomment the line below to expanse the "ASSERT" macro in the
38
Standard Peripheral Library drivers code */
39
#define DEBUG_MODE
40
#define DEBUGGING
41
#ifdef DEBUG_MODE
42
#define ASSERT(expr) \
43
{do \
44
{ \
45
if (!(expr)) \
46
{ \
47
printf("FILE: %s\n", __FILE__); \
48
printf("FUNC: %s\n", __FUNCTION__); \
49
printf("LINE: %u\n\n", __LINE__); \
50
} \
51
}while(0);}
52
#else
53
#define ASSERT(expr)
54
#endif
55
56
57
/*---------------------------------------------------------------------------*/
58
/* function prototypes */
59
/*---------------------------------------------------------------------------*/
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
/* _DEBUG_H_ */
69
/*****************************************************************************/
70
/* END OF FILE */
PDL_1_2
library
driver
sd
debug.h
Generated on Wed May 28 2014 09:28:10 for PDL for FM4 by
1.8.3.1