aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_io.h
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-12 10:23:33 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-12 10:23:33 -0700
commit32c40b5f5956d29e3be1fc3c94a213f8f0d68f42 (patch)
tree3e059559d9b1d80e807a114240052b2947684e87 /firmware/microblaze/lib/hal_io.h
parentdfafbd5f2dbf0758df33d10922eec3c1a37dd32b (diff)
downloaduhd-32c40b5f5956d29e3be1fc3c94a213f8f0d68f42.tar.gz
uhd-32c40b5f5956d29e3be1fc3c94a213f8f0d68f42.tar.bz2
uhd-32c40b5f5956d29e3be1fc3c94a213f8f0d68f42.zip
Working support for multiple UARTs.
Default behavior (printf, gets, etc.) routes to DEFAULT_UART, set in hal_uart.h. Use fputstr() to print to other UARTs. Bring fgets() from hal_io.c out in hal_io.h if you want to read data from other UARTs. Still blocking. No interrupt-driven stuff yet.
Diffstat (limited to 'firmware/microblaze/lib/hal_io.h')
-rw-r--r--firmware/microblaze/lib/hal_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/hal_io.h b/firmware/microblaze/lib/hal_io.h
index c67d96c62..99f8f7fc9 100644
--- a/firmware/microblaze/lib/hal_io.h
+++ b/firmware/microblaze/lib/hal_io.h
@@ -20,10 +20,12 @@
#define INCLUDED_HAL_IO_H
#include "memory_map.h"
+#include "hal_uart.h"
void hal_io_init(void);
void hal_finish();
char *gets(char * const s);
+int fputstr(hal_uart_name_t u, const char *s);
/*
* ------------------------------------------------------------------------