diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:24:36 +0100 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:24:36 +0100 |
commit | ea912e83c103c62c9d10e15060bb3d937267c430 (patch) | |
tree | 65183822c531293819c4b21ec5700d82e021121e | |
parent | e8c6f2b8aa1bd65bfe8d431ecf7358f12f5bf981 (diff) |
output HCLK on startup to see if HSE is used
-rw-r--r-- | src/fmc-test/src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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. |