debug.h
Go to the documentation of this file.
1 #ifndef DEBUG_H_
2 #define DEBUG_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "gpio.h"
9 
10 
11 //_____ M A C R O S ________________________________________________________
12 
13 //_____ D E F I N I T I O N S ______________________________________________
14 
15 //# define DBG_USART (&AVR32_USART1)
16 //# define DBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
17 //# define DBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
18 //# define DBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
19 //# define DBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
20 //# define DBG_USART_BAUDRATE 57600
21 
22 #define DEFAULT_MENU MENU_SYSTEM
23 // #define DEFAULT_MENU MENU_STABILIZED
24 
26 
27 //_____ P R O T O T Y P E S ________________________________________________
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 void dg_printf(const char *__fmt, ...);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #if 0
40 void dg_prt_apd(const char *__fmt, ...);
41 void dg_prt_snd(void);
42 void dg_prt_clr(void);
43 
44 // ANSI/VT100 Terminal Control - http://www.termsys.demon.co.uk/vtansi.htm
45 void dg_vt100_clear(void);
46 void dg_vt100_home(void);
47 void dg_vt100_row(unsigned int row);
48 void dg_vt100_belowParams(void);
49 //void dg_vt100_pos(row,col);
50 //#define VT100_POS(row,col) "\x1B[row;colf" // doesn't work
51 #endif
52 
53 #if 0 // terminal code
54 void init_term(void);
55 void term_update(void);
56 void term_addVarX08( void *ptr, char* name );
57 void term_addVarU08( void *ptr, char* name );
58 void term_addVarS08( void *ptr, char* name );
59 void term_addVarX16( void *ptr, char* name );
60 void term_addVarU16( void *ptr, char* name );
61 void term_addVarS16( void *ptr, char* name );
62 void term_addVarX32( void *ptr, char* name );
63 void term_addVarU32( void *ptr, char* name );
64 void term_addVarS32( void *ptr, char* name );
65 void term_addVarF32( void *ptr, char* name );
66 void term_addVarF64( void *ptr, char* name );
67 void term_addVarF32Rad2Deg( void *ptr, char* name );
68 void term_addVarStr( void *ptr, char* name );
69 void term_addLabel( char* name );
70 
71 void term_addFlaX08( void *ptr, char* name );
72 void term_addFlaU08( void *ptr, char* name );
73 void term_addFlaS08( void *ptr, char* name );
74 void term_addFlaX16( void *ptr, char* name );
75 void term_addFlaU16( void *ptr, char* name );
76 void term_addFlaS16( void *ptr, char* name );
77 void term_addFlaX32( void *ptr, char* name );
78 void term_addFlaU32( void *ptr, char* name );
79 void term_addFlaS32( void *ptr, char* name );
80 void term_addFlaF32( void *ptr, char* name );
81 void term_addFlaF64( void *ptr, char* name );
82 void term_addFlaF32Rad2Deg( void *ptr, char* name );
83 
84 void term_addBlankLine(void);
85 #endif // terminal code
86 
87 //#define CODE_PROFILE(__resultTimeUs__, __codeToProfile__) { uint32_t __startTimeUs__ = time_usec(); __codeToProfile__; uint32_t __endTimeUs__ = time_usec(); __resultTimeUs__ = _MAX((uint32_t)__resultTimeUs__, UINT32_TIME_DIFF(__endTimeUs__, __startTimeUs__)); }
88 #define CODE_PROFILE(__resultTimeUs__, __codeToProfile__) __codeToProfile__
89 
90 // This function controls when to print for terminal compatibility
91 //void term_printf(const char *__fmt, ...);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* DEBUG_H_ */
Common GPIO API.
int g_com_manager_enable_binary_protocol
void dg_printf(const char *__fmt,...)
Definition: debug.cpp:79


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04