diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-14 20:38:26 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-10-07 14:38:33 -0400 |
commit | e92073f86f6c6cb5002e235a4bc6f39b6609d177 (patch) | |
tree | 8819b3ae100391d6062b7fe9974eaeb82a5d91c3 /libmaple/usart.h | |
parent | 60eb25f9156f3d7b2af07e5b6c0b741c7e43e969 (diff) | |
download | librambutan-e92073f86f6c6cb5002e235a4bc6f39b6609d177.tar.gz librambutan-e92073f86f6c6cb5002e235a4bc6f39b6609d177.zip |
usart: Add usart_rx().
usart_rx() is a nonblocking USART receive. Add it for symmetry with
usart_tx().
Diffstat (limited to 'libmaple/usart.h')
-rw-r--r-- | libmaple/usart.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/usart.h b/libmaple/usart.h index e747e65..ed00e16 100644 --- a/libmaple/usart.h +++ b/libmaple/usart.h @@ -259,6 +259,7 @@ void usart_enable(usart_dev *dev); void usart_disable(usart_dev *dev); void usart_foreach(void (*fn)(usart_dev *dev)); uint32 usart_tx(usart_dev *dev, const uint8 *buf, uint32 len); +uint32 usart_rx(usart_dev *dev, uint8 *buf, uint32 len); void usart_putudec(usart_dev *dev, uint32 val); /** |