aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/x300/include/wb_uart.h
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
committermichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
commit04292f9b109479b639add31f83fd240a6387f488 (patch)
tree4b8723a4ae63626029704f901ee0083bb23bc1e9 /firmware/x300/include/wb_uart.h
parent09915aa57bc88099cbcbbe925946ae65bc0ad8f0 (diff)
parentff8a1252f3a51369abe0a165d963b781089ec66c (diff)
downloaduhd-04292f9b109479b639add31f83fd240a6387f488.tar.gz
uhd-04292f9b109479b639add31f83fd240a6387f488.tar.bz2
uhd-04292f9b109479b639add31f83fd240a6387f488.zip
Merge branch 'master' into mwest/b200_docs
Diffstat (limited to 'firmware/x300/include/wb_uart.h')
-rw-r--r--firmware/x300/include/wb_uart.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/firmware/x300/include/wb_uart.h b/firmware/x300/include/wb_uart.h
new file mode 100644
index 000000000..46dd97441
--- /dev/null
+++ b/firmware/x300/include/wb_uart.h
@@ -0,0 +1,23 @@
+
+// Copyright 2012 Ettus Research LLC
+
+#ifndef INCLUDED_WB_UART_H
+#define INCLUDED_WB_UART_H
+
+#include <stdint.h>
+#include <stdbool.h>
+#include <stddef.h>
+
+//! Init the uart in question
+void wb_uart_init(const uint32_t base, const size_t div);
+
+//! Put character blocking
+void wb_uart_putc(const uint32_t base, const int ch);
+
+//! Put character not blocking - false for fail
+bool wb_uart_try_putc(const uint32_t base, const int ch);
+
+//! Get character non blocking, -1 for none
+int wb_uart_getc(const uint32_t base);
+
+#endif /* INCLUDED_WB_UART_H */