summaryrefslogtreecommitdiff
path: root/esp8266/uart.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-21 15:19:00 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-21 15:19:00 +0100
commit7652ab77efdd7ba4d5a49d6db006cdbd73dfc3b7 (patch)
treee6240b37773fe5d31bc1c70ee3aa0e16074f8cff /esp8266/uart.h
parent495da1561149d63b6caa061517c7dee7df2c1929 (diff)
esp8266: Add uart_rx_wait and uart_rx_char functions.
Diffstat (limited to 'esp8266/uart.h')
-rw-r--r--esp8266/uart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/uart.h b/esp8266/uart.h
index 2f762db5a..8e09beea5 100644
--- a/esp8266/uart.h
+++ b/esp8266/uart.h
@@ -91,6 +91,8 @@ typedef struct {
void uart_init(UartBautRate uart0_br, UartBautRate uart1_br);
int uart0_rx(void);
+bool uart_rx_wait(uint32_t timeout_us);
+int uart_rx_char(void);
void uart_tx_one_char(uint8 uart, uint8 TxChar);
void uart_flush(uint8 uart);
void uart_os_config(int uart);