aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/usrp3/include/wb_uart.h
blob: 46dd974418f0cbceef873e2f9ee8d2d9db230ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */