Project

General

Profile

Revision 1562

updated baud rate code (it works for 9600 and 115200 now, haven't tested the others)

View differences:

wl_defs.h
40 40
#define ROBOT
41 41

  
42 42
//uncomment this line for debug information
43
#define WL_DEBUG
43
//#define WL_DEBUG
44 44

  
45 45
//return value definitions
46 46
/** @brief Error code for init failure **/
......
84 84

  
85 85
#ifdef ROBOT
86 86
#define WL_DEBUG_PRINT( s ) usb_puts( s )
87
#define WL_DEBUG_PRINT_CHAR( c ) usb_putc( c )
88
#define WL_DEBUG_PRINT_INT( i ) usb_puti(i)
87 89
#else
88 90
#define WL_DEBUG_PRINT( s ) printf( s )
91
#define WL_DEBUG_PRINT_CHAR( c ) printf("%c", c)
92
#define WL_DEBUG_PRINT_INT( i ) printf("%i", i)
89 93
#endif
90 94

  
91 95
#ifdef ROBOT
92
#define WL_DEBUG_PRINT_INT( i ) usb_puti(i)
93 96
#else
94
#define WL_DEBUG_PRINT_INT( i ) printf("%i", i)
95 97
#endif
96 98

  
97 99
#else
98 100

  
99 101
#define WL_DEBUG_PRINT( s )
102
#define WL_DEBUG_PRINT_CHAR( c )
100 103
#define WL_DEBUG_PRINT_INT( i )
101 104

  
102 105
#endif

Also available in: Unified diff