openpcd/firmware/src/os/dbgu.h @ master
1 | f57b548d | (no author) | //*----------------------------------------------------------------------------
|
---|---|---|---|
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 | 9d0d7022 | (no author) | extern const char *hexdump(const void *data, unsigned int len); |
23 | f57b548d | (no author) | void AT91F_DBGU_Init(void); |
24 | b7722bed | laforge | void AT91F_DBGU_Fini(void); |
25 | ca4e8055 | Min Xu | void AT91F_DBGU_Frame(char *buffer); |
26 | #define AT91F_DBGU_Printk(x) AT91F_DBGU_Frame(x)
|
||
27 | f57b548d | (no author) | int AT91F_DBGU_Get( char *val); |
28 | #ifndef __WinARM__
|
||
29 | void AT91F_DBGU_scanf(char * type,unsigned int * val); |
||
30 | #endif
|
||
31 | |||
32 | 41333333 | (no author) | #ifdef DEBUG
|
33 | extern void debugp(const char *format, ...); |
||
34 | #define DEBUGP(x, args ...) debugp(x, ## args)
|
||
35 | #else
|
||
36 | 5f148f59 | (no author) | #define DEBUGP(x, args ...) do {} while(0)
|
37 | 41333333 | (no author) | #endif
|
38 | |||
39 | eca19c6f | (no author) | #define DEBUGPCR(x, args ...) DEBUGP(x "\r\n", ## args)
|
40 | #define DEBUGPCRF(x, args ...) DEBUGPCR("%s(%d): " x, __FUNCTION__, __LINE__, ## args)
|
||
41 | |||
42 | f57b548d | (no author) | #endif /* dbgu_h */ |