diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2019-01-13 19:34:27 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2019-01-13 19:36:25 -0700 |
commit | 4767c73fb2e1f96469fe24a83b443c1774b01d86 (patch) | |
tree | aab58ec66ce3e2e4b14557465bdac7cfaacde1fa /03-refactor/include/usart.h | |
parent | 33a15696519e161cd823baaf4214d1ed452a410a (diff) | |
download | stm32l4-4767c73fb2e1f96469fe24a83b443c1774b01d86.tar.gz stm32l4-4767c73fb2e1f96469fe24a83b443c1774b01d86.tar.bz2 stm32l4-4767c73fb2e1f96469fe24a83b443c1774b01d86.zip |
Implemented more to do with printf.
Diffstat (limited to '03-refactor/include/usart.h')
-rw-r--r-- | 03-refactor/include/usart.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/03-refactor/include/usart.h b/03-refactor/include/usart.h index 377048c..265ac2d 100644 --- a/03-refactor/include/usart.h +++ b/03-refactor/include/usart.h @@ -209,5 +209,11 @@ void usart_transmit_str(__IO usart_t* usart, const char* str); void usart_printf(__IO usart_t* usart, const char* fmt, ...); +/* Returns non-zero if usart2 is enabled. */ +int is_usart2_enabled(); + +/* Enable the second USART. */ +int enable_usart2(uint32_t baud); + #endif /* H__USART_ */ |