10 #ifndef __oddebug_h_included__
11 #define __oddebug_h_included__
27 # define F_CPU 12000000
34 # define uchar unsigned char
37 #if DEBUG_LEVEL > 0 && !(defined TXEN || defined TXEN0)
38 # warning "Debugging disabled because device has no UART"
43 # define DEBUG_LEVEL 0
49 # define DBG1(prefix, data, len) odDebug(prefix, data, len)
51 # define DBG1(prefix, data, len)
55 # define DBG2(prefix, data, len) odDebug(prefix, data, len)
57 # define DBG2(prefix, data, len)
68 # define ODDBG_UBRR UBRR
70 # define ODDBG_UBRR UBRRL
72 # define ODDBG_UBRR UBRR0
74 # define ODDBG_UBRR UBRR0L
78 # define ODDBG_UCR UCR
80 # define ODDBG_UCR UCSRB
82 # define ODDBG_UCR UCSR0B
86 # define ODDBG_TXEN TXEN
88 # define ODDBG_TXEN TXEN0
92 # define ODDBG_USR USR
94 # define ODDBG_USR UCSRA
96 # define ODDBG_USR UCSR0A
100 # define ODDBG_UDRE UDRE
102 # define ODDBG_UDRE UDRE0
106 # define ODDBG_UDR UDR
108 # define ODDBG_UDR UDR0
113 ODDBG_UCR |= (1<<ODDBG_TXEN);
114 ODDBG_UBRR =
F_CPU / (19200 * 16L) - 1;
117 # define odDebugInit()
#define uchar
Definition: oddebug.h:34
tuple data
Definition: ser-mon-AS7265X.py:40
#define odDebugInit()
Definition: oddebug.h:117
#define F_CPU
Definition: oddebug.h:27