aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-10 21:04:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:59 -0400
commit8e1c0941b0664b102ec18a60ac61719aa9d7f9bc (patch)
tree6e52e15013e0d8604290526d31ac0f1566423a26 /src/avr/serial.c
parent62f96f09115edca4ce090dc062916dc95f61a1e3 (diff)
downloadkutter-8e1c0941b0664b102ec18a60ac61719aa9d7f9bc.tar.gz
kutter-8e1c0941b0664b102ec18a60ac61719aa9d7f9bc.tar.xz
kutter-8e1c0941b0664b102ec18a60ac61719aa9d7f9bc.zip
generic: Add new file generic/io.h and move read/writeb() to it
Move the definitions of the readb() style functions to a new header generic/io.h. This eliminates the dependency of stdint.h on compiler.h. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr/serial.c')
-rw-r--r--src/avr/serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/avr/serial.c b/src/avr/serial.c
index fc71cf0e..33b42fc6 100644
--- a/src/avr/serial.c
+++ b/src/avr/serial.c
@@ -7,6 +7,7 @@
#include <avr/interrupt.h> // USART0_RX_vect
#include <string.h> // memmove
#include "autoconf.h" // CONFIG_SERIAL_BAUD
+#include "board/io.h" // readb
#include "board/misc.h" // console_get_input
#include "sched.h" // DECL_INIT
#include "irq.h" // irq_save