summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/uart.h
diff options
context:
space:
mode:
authormarc hoffman <marc.m.hoffman@gmail.com>2017-01-29 21:48:55 -0500
committerDamien George <damien.p.george@gmail.com>2017-02-03 17:15:43 +1100
commit91eb0153d30420618b06efd18631490ac7fbfaae (patch)
tree83098e3bada4c2c151be6df799843830e03538a2 /esp8266/uart.h
parent90ab191b65a83d20fbae98014642e08afdc8d1ae (diff)
downloadmicropython-91eb0153d30420618b06efd18631490ac7fbfaae.tar.gz
micropython-91eb0153d30420618b06efd18631490ac7fbfaae.zip
esp8266/uart: Add support for polling uart device.
Diffstat (limited to 'esp8266/uart.h')
-rw-r--r--esp8266/uart.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/uart.h b/esp8266/uart.h
index 2b97683ff8..f6850c42db 100644
--- a/esp8266/uart.h
+++ b/esp8266/uart.h
@@ -99,5 +99,8 @@ void uart_tx_one_char(uint8 uart, uint8 TxChar);
void uart_flush(uint8 uart);
void uart_os_config(int uart);
void uart_setup(uint8 uart);
+// check status of rx/tx
+int uart_rx_any(uint8 uart);
+int uart_tx_any_room(uint8 uart);
#endif // _INCLUDED_UART_H_