blob: cd27155e3386d77329df89de98d67803701a7d72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _CONSOLE_H
#define _CONSOLE_H
/* This is the direct (IRQ driven) UART console, bypassing the HDLC layer.
* You should not need to call those functions unless you've decided to
* not use the HLDC layer or have a device with two UARTs */
int cons_rb_append(const char *data, int len);
int cons_puts(const char *s);
int cons_putchar(char c);
int cons_rb_flush(void);
void cons_init(void);
void cons_bind_uart(int uart);
int cons_get_uart(void);
/* Size of the static ring-buffer that we keep for console print messages */
#define CONS_RB_SIZE 4096
#endif /* _CONSOLE_H */
|