1
|
//*----------------------------------------------------------------------------
|
2
|
//* ATMEL Microcontroller Software Support - ROUSSET -
|
3
|
//*----------------------------------------------------------------------------
|
4
|
//* The software is delivered "AS IS" without warranty or condition of any
|
5
|
//* kind, either express, implied or statutory. This includes without
|
6
|
//* limitation any warranty or condition with respect to merchantability or
|
7
|
//* fitness for any particular purpose, or against the infringements of
|
8
|
//* intellectual property rights of others.
|
9
|
//*----------------------------------------------------------------------------
|
10
|
//* File Name : Debug.h
|
11
|
//* Object : Debug menu
|
12
|
//* Creation : JPP 02/Sep/2004
|
13
|
//*----------------------------------------------------------------------------
|
14
|
|
15
|
#ifndef dbgu_h
|
16
|
#define dbgu_h
|
17
|
|
18
|
#define AT91C_DBGU_BAUD 115200
|
19
|
|
20
|
//* ----------------------- External Function Prototype -----------------------
|
21
|
|
22
|
extern const char *hexdump(const void *data, unsigned int len);
|
23
|
void AT91F_DBGU_Init(void);
|
24
|
void AT91F_DBGU_Fini(void);
|
25
|
void AT91F_DBGU_Frame(char *buffer);
|
26
|
#define AT91F_DBGU_Printk(x) AT91F_DBGU_Frame(x)
|
27
|
int AT91F_DBGU_Get( char *val);
|
28
|
#ifndef __WinARM__
|
29
|
void AT91F_DBGU_scanf(char * type,unsigned int * val);
|
30
|
#endif
|
31
|
|
32
|
#ifdef DEBUG
|
33
|
extern void debugp(const char *format, ...);
|
34
|
#define DEBUGP(x, args ...) debugp(x, ## args)
|
35
|
#else
|
36
|
#define DEBUGP(x, args ...) do {} while(0)
|
37
|
#endif
|
38
|
|
39
|
#define DEBUGPCR(x, args ...) DEBUGP(x "\r\n", ## args)
|
40
|
#define DEBUGPCRF(x, args ...) DEBUGPCR("%s(%d): " x, __FUNCTION__, __LINE__, ## args)
|
41
|
|
42
|
#endif /* dbgu_h */
|