summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/uart.h
diff options
context:
space:
mode:
authorRyan Shaw <ryannathans@hotmail.com>2015-11-28 02:31:59 +1100
committerDamien George <damien.p.george@gmail.com>2015-11-30 13:07:20 +0000
commitf99491cbf743d51fd2aa7332c0e03da64448d60a (patch)
tree743473e4b62c3229d5fba0b2a284043bcef9ccd0 /stmhal/uart.h
parentbd33aa313e03a9b2f07178d5a22d9891598c309f (diff)
downloadmicropython-f99491cbf743d51fd2aa7332c0e03da64448d60a.tar.gz
micropython-f99491cbf743d51fd2aa7332c0e03da64448d60a.zip
stmhal: uart.any() function now returns number of bytes available.
Diffstat (limited to 'stmhal/uart.h')
-rw-r--r--stmhal/uart.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/uart.h b/stmhal/uart.h
index 5b223c5c61..a859f722b3 100644
--- a/stmhal/uart.h
+++ b/stmhal/uart.h
@@ -41,7 +41,7 @@ void uart_init0(void);
void uart_deinit(void);
void uart_irq_handler(mp_uint_t uart_id);
-bool uart_rx_any(pyb_uart_obj_t *uart_obj);
+mp_uint_t uart_rx_any(pyb_uart_obj_t *uart_obj);
int uart_rx_char(pyb_uart_obj_t *uart_obj);
void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len);
void uart_tx_strn_cooked(pyb_uart_obj_t *uart_obj, const char *str, uint len);