summaryrefslogtreecommitdiff
path: root/n/avr/modules/uart/test
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/modules/uart/test')
-rw-r--r--n/avr/modules/uart/test/avrconfig_polling.h4
-rw-r--r--n/avr/modules/uart/test/avrconfig_ring.h4
-rw-r--r--n/avr/modules/uart/test/avrconfig_twoports.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/n/avr/modules/uart/test/avrconfig_polling.h b/n/avr/modules/uart/test/avrconfig_polling.h
index f56a2e1..81e5f0e 100644
--- a/n/avr/modules/uart/test/avrconfig_polling.h
+++ b/n/avr/modules/uart/test/avrconfig_polling.h
@@ -56,6 +56,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 STDIO
/** Same thing for secondary port. */
#define AC_UART1_PORT -1
#define AC_UART1_BAUDRATE 115200
diff --git a/n/avr/modules/uart/test/avrconfig_ring.h b/n/avr/modules/uart/test/avrconfig_ring.h
index 5d80b62..e712d05 100644
--- a/n/avr/modules/uart/test/avrconfig_ring.h
+++ b/n/avr/modules/uart/test/avrconfig_ring.h
@@ -56,6 +56,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
diff --git a/n/avr/modules/uart/test/avrconfig_twoports.h b/n/avr/modules/uart/test/avrconfig_twoports.h
index e9551dd..07993fc 100644
--- a/n/avr/modules/uart/test/avrconfig_twoports.h
+++ b/n/avr/modules/uart/test/avrconfig_twoports.h
@@ -56,6 +56,10 @@
* - DROP: drop the new byte.
* - WAIT: wait until there is room in the send buffer. */
#define AC_UART0_SEND_BUFFER_FULL DROP
+/** 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