stdin_uart_interrupt: add support for nonblock and a timeout.

This commit is contained in:
Our Air Quality 2018-05-05 12:56:21 +10:00
parent 5830e001cf
commit efff445a03
2 changed files with 42 additions and 2 deletions

View file

@ -27,6 +27,16 @@
#include <stdint.h>
// Return number of characters waiting in UART0
/* Return number of characters waiting in UART0. */
uint32_t uart0_num_char(void);
/* Set UART0 input to nonblocking or blocking, returning the old state. */
int uart0_set_nonblock(int);
/* Set the UART0 input wait time in ticks, or zero to wait indefinitely,
* returning the old wait time. The wait time is only used when the input is
* blocking.
*/
TickType_t uart0_set_vtime(TickType_t ticks);
#endif