Contiki 3.x
debug-uart.h
1 #ifndef DEBUG_UART_H_1V2039076V__
2 #define DEBUG_UART_H_1V2039076V__
3 
4 
5 void
6 dbg_setup_uart();
7 
8 void
9 dbg_set_input_handler(void (*handler)(const char *inp, unsigned int len));
10 
11 unsigned int
12 dbg_send_bytes(const unsigned char *seq, unsigned int len);
13 
14 #if 0
15 void
16 dbg_printf(const char *format, ...)
17  __attribute__ ((__format__ (__printf__, 1,2)));
18 
19 void
20 dbg_blocking_printf(const char *format, ...)
21  __attribute__ ((__format__ (__printf__, 1,2)));
22 #endif
23 
24 void
25 dbg_putchar(const char ch);
26 
27 void
28 dbg_blocking_putchar(const char ch);
29 
30 void
31 dbg_drain();
32 
33 #endif /* DEBUG_UART_H_1V2039076V__ */
#define __attribute__(nothing)
Define attribute to nothing since it isn't handled by IAR.
Definition: iar.h:194
unsigned int dbg_send_bytes(const unsigned char *seq, unsigned int len)
Print a stream of bytes.
Definition: debug-uart.c:71
int dbg_putchar(int c)
Print a character to debug output.
Definition: dbg.c:63