From 4767c73fb2e1f96469fe24a83b443c1774b01d86 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 13 Jan 2019 19:34:27 -0700 Subject: Implemented more to do with printf. --- 03-refactor/include/usart.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '03-refactor/include') 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_ */ -- cgit