Initial import of OsmocomBB into git repository
[osmocom-bb.git] / src / target / firmware / include / console.h
1 #ifndef _CONSOLE_H
2 #define _CONSOLE_H
3
4 /* This is the direct (IRQ driven) UART console, bypassing the HDLC layer.
5  * You should not need to call those functions unless you've decided to
6  * not use the HLDC layer or have a device with two UARTs */
7
8 int cons_rb_append(const char *data, int len);
9 int cons_puts(const char *s);
10 int cons_putchar(char c);
11 int cons_rb_flush(void);
12 void cons_init(void);
13
14 /* We want the console on UART 0 (IRDA UART) */
15 #define CONS_UART_NR    0
16
17 /* Size of the static ring-buffer that we keep for console print messages */
18 #define CONS_RB_SIZE    4096
19
20 #endif /* _CONSOLE_H */