diff options
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_ */ |