summaryrefslogtreecommitdiff
path: root/n/avr/modules/uart/avrconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/modules/uart/avrconfig.h')
-rw-r--r--n/avr/modules/uart/avrconfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/n/avr/modules/uart/avrconfig.h b/n/avr/modules/uart/avrconfig.h
index a1c0691..0710835 100644
--- a/n/avr/modules/uart/avrconfig.h
+++ b/n/avr/modules/uart/avrconfig.h
@@ -32,7 +32,7 @@
* 115200, 230400, 250000, 500000, 1000000. */
#define AC_UART0_BAUDRATE 115200
/** Send mode:
- * - POLLING: no interrupts;
+ * - POLLING: no interrupts.
* - RING: interrupts, ring buffer. */
#define AC_UART0_SEND_MODE RING
/** Recv mode, same as send mode. */
@@ -47,6 +47,10 @@
#define AC_UART0_SEND_BUFFER_SIZE 32
/** Recv buffer size, should be power of 2 for RING mode. */
#define AC_UART0_RECV_BUFFER_SIZE 32
+/** If the send buffer is full when putc:
+ * - DROP: drop the new byte.
+ * - WAIT: wait until there is room in the send buffer. */
+#define AC_UART0_SEND_BUFFER_FULL WAIT
/** Same thing for secondary port. */
#define AC_UART1_PORT -1
#define AC_UART1_BAUDRATE 115200
@@ -57,5 +61,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
#endif /* avrconfig_h */