From ea912e83c103c62c9d10e15060bb3d937267c430 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 10 Dec 2015 21:24:36 +0100 Subject: output HCLK on startup to see if HSE is used --- src/fmc-test/src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fmc-test/src/main.c b/src/fmc-test/src/main.c index 7275aac..305abb5 100644 --- a/src/fmc-test/src/main.c +++ b/src/fmc-test/src/main.c @@ -73,6 +73,13 @@ int main(void) // initialize UART for debug output MX_USART2_UART_Init(); + volatile uint32_t hclk; + + hclk = HAL_RCC_GetHCLKFreq(); + uart_send_string("HCLK: "); + uart_send_integer(hclk, 0); + uart_send_string("\r\n"); + uart_send_string("Keep calm for Novena boot...\r\n"); // Blink blue LED for six seconds to not upset the Novena at boot. -- cgit v1.2.3