diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-03 02:23:27 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-03 02:23:27 -0400 |
commit | 7277d15c68641b4f840240aa4f0557b5f69d727d (patch) | |
tree | 17188d4b75661cb935b55e3ad0c2de4abdaddeb1 /libmaple/stm32f2/include | |
parent | 4723f6525215ee5bce550ceb615326f05f8fbc3f (diff) | |
download | librambutan-7277d15c68641b4f840240aa4f0557b5f69d727d.tar.gz librambutan-7277d15c68641b4f840240aa4f0557b5f69d727d.zip |
F2: Add usart_get_af().
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f2/include')
-rw-r--r-- | libmaple/stm32f2/include/series/usart.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libmaple/stm32f2/include/series/usart.h b/libmaple/stm32f2/include/series/usart.h index 805a2b2..8936efa 100644 --- a/libmaple/stm32f2/include/series/usart.h +++ b/libmaple/stm32f2/include/series/usart.h @@ -37,6 +37,8 @@ extern "C"{ #endif +#include <libmaple/gpio.h> /* for gpio_af */ + /* * Register map base pointers. */ @@ -96,6 +98,12 @@ extern struct usart_dev *UART4; extern struct usart_dev *UART5; extern struct usart_dev *USART6; +/* + * Routines + */ + +gpio_af usart_get_af(struct usart_dev *dev); + #ifdef __cplusplus } #endif |