diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-10-07 09:39:25 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-10-07 09:39:25 +0200 |
commit | 5bd58bc309e959537e3e820abfa39ee629b140a5 (patch) | |
tree | 81e3a611134e02d9118f0aa846b7146234849fe8 /firmware/usrp3/include/wb_uart.h | |
parent | 9f6a11173aef5e661100268bd746963d713adb91 (diff) | |
download | uhd-5bd58bc309e959537e3e820abfa39ee629b140a5.tar.gz uhd-5bd58bc309e959537e3e820abfa39ee629b140a5.tar.bz2 uhd-5bd58bc309e959537e3e820abfa39ee629b140a5.zip |
Reorganized firmware/ subdirectory (x300->usrp3, zpu->usrp2)
Diffstat (limited to 'firmware/usrp3/include/wb_uart.h')
-rw-r--r-- | firmware/usrp3/include/wb_uart.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/firmware/usrp3/include/wb_uart.h b/firmware/usrp3/include/wb_uart.h new file mode 100644 index 000000000..46dd97441 --- /dev/null +++ b/firmware/usrp3/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 */ |