stdin_uart_interrupt: add support for nonblock and a timeout.
This commit is contained in:
parent
5830e001cf
commit
efff445a03
2 changed files with 42 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue