瀏覽代碼

USBTTY make some function declarations easier to use.

Zoom2 needs to use these declarations and the include directory is a
better place from them than in the middle of the driver directory.
It did not make sense to create a new file for just a couple of
lines so they were appended to the serial.h

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
Tom Rix 15 年之前
父節點
當前提交
6299487ef5
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/serial.h

+ 6 - 0
include/serial.h

@@ -66,4 +66,10 @@ extern void serial_stdio_init(void);
 extern int serial_assign(char * name);
 extern void serial_reinit_all(void);
 
+/* For usbtty */
+extern int usbtty_getc(void);
+extern void usbtty_putc(const char c);
+extern void usbtty_puts(const char *str);
+extern int usbtty_tstc(void);
+
 #endif