summaryrefslogtreecommitdiff
path: root/n/avr/modules/uart/avrconfig.h
diff options
context:
space:
mode:
authorschodet2005-07-09 12:16:06 +0000
committerschodet2005-07-09 12:16:06 +0000
commit3947ce7c8a79883c964aa19d6c29988b565dd722 (patch)
tree14e4fa639617ffc9fc81e87b2b821b410449fc4b /n/avr/modules/uart/avrconfig.h
parent5ae2619ef0052a827646009474d8a8e3f2196aa7 (diff)
STDIO support for uart.
Diffstat (limited to 'n/avr/modules/uart/avrconfig.h')
-rw-r--r--n/avr/modules/uart/avrconfig.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/n/avr/modules/uart/avrconfig.h b/n/avr/modules/uart/avrconfig.h
index 0710835..c52072c 100644
--- a/n/avr/modules/uart/avrconfig.h
+++ b/n/avr/modules/uart/avrconfig.h
@@ -51,6 +51,10 @@
* - DROP: drop the new byte.
* - WAIT: wait until there is room in the send buffer. */
#define AC_UART0_SEND_BUFFER_FULL WAIT
+/** In HOST compilation:
+ * - STDIO: use stdin/out.
+ * - PTS: use pseudo terminal. */
+#define AC_UART0_HOST_DRIVER PTS
/** Same thing for secondary port. */
#define AC_UART1_PORT -1
#define AC_UART1_BAUDRATE 115200
@@ -61,6 +65,6 @@
#define AC_UART1_STOP_BITS 1
#define AC_UART1_SEND_BUFFER_SIZE 32
#define AC_UART1_RECV_BUFFER_SIZE 32
-#define AC_UART0_SEND_BUFFER_FULL WAIT
+#define AC_UART1_SEND_BUFFER_FULL WAIT
#endif /* avrconfig_h */