From 3e45de7deade177b5caa921ee72a0e36300474c7 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sat, 28 Aug 2021 13:35:52 -0400 Subject: implement USB console --- watch-library/watch/watch_uart.c | 1 + 1 file changed, 1 insertion(+) (limited to 'watch-library/watch/watch_uart.c') diff --git a/watch-library/watch/watch_uart.c b/watch-library/watch/watch_uart.c index 4cbac89b..68ac872e 100644 --- a/watch-library/watch/watch_uart.c +++ b/watch-library/watch/watch_uart.c @@ -53,6 +53,7 @@ #include "peripheral_clk_config.h" void watch_enable_debug_uart(uint32_t baud) { + /// FIXME: UART baud rate calculation will be incorrect if plugged into USB / running at 16 MHz uint64_t br = (uint64_t)65536 * (CONF_CPU_FREQUENCY - 16 * baud) / CONF_CPU_FREQUENCY; gpio_set_pin_direction(D1, GPIO_DIRECTION_IN); -- cgit v1.2.3