Project

General

Profile

Download (694 Bytes) Statistics
| Branch: | Tag: | Revision:
1 5dec22af meri
#ifndef dbgu_h
2
#define dbgu_h
3
4
#define AT91C_DBGU_BAUD 115200
5
6
#define DEBUGP(x, args ...) debugp(x, ## args)
7
#define DEBUGPCR(x, args ...) DEBUGP(x "\r\n", ## args)
8
#define DEBUGPCRF(x, args ...) DEBUGPCR("%s(%d): " x, __FUNCTION__, __LINE__, ## args)
9
10
extern void AT91F_DBGU_Init(void);
11
extern void AT91F_DBGU_Printk(char *buffer);
12
extern int AT91F_DBGU_Get(char *val);
13
extern void AT91F_DBGU_Ready(void);
14
15
#ifdef DEBUG
16
extern void debugp(const char *format, ...);
17
extern const char *hexdump(const void *data, unsigned int len);
18
extern void AT91F_DBGU_Frame(char *buffer);
19
#else
20
#define debugp(x, args ...)
21
#define hexdump(x, args ...)
22
#define AT91F_DBGU_Frame(x)
23
#endif
24
25
#endif /* dbgu_h */
Add picture from clipboard (Maximum size: 48.8 MB)