summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-01-03 20:46:25 -0800
committerKeith Packard <keithp@keithp.com>2012-01-03 20:46:25 -0800
commitc6821ae734a7efaf2e069f6c5edf9605a9dbe125 (patch)
tree9e3798f1999d1e0c2dd0be24ead830b83ec2cc42 /src/core/ao.h
parent65b9b5d0d91fef2c7452dc77017f31f176672304 (diff)
altos: flush stdout when fifo from arduino serial port is empty
This avoids leaving bytes pending inside altos Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 494993f1..8c5335c4 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -943,6 +943,10 @@ ao_serial_init(void);
#endif
#if HAS_SERIAL_0
+
+extern volatile __xdata struct ao_fifo ao_usart0_rx_fifo;
+extern volatile __xdata struct ao_fifo ao_usart0_tx_fifo;
+
void
ao_serial0_rx0_isr(void) ao_arch_interrupt(2);