[Cryptech-Commits] [user/ft/stm32-dev-bridge] 03/04: output HCLK on startup to see if HSE is used

git at cryptech.is git at cryptech.is
Mon Dec 14 14:36:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

fredrik at thulin.net pushed a commit to branch master
in repository user/ft/stm32-dev-bridge.

commit ea912e83c103c62c9d10e15060bb3d937267c430
Author: Fredrik Thulin <fredrik at thulin.net>
Date:   Thu Dec 10 21:24:36 2015 +0100

    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.



More information about the Commits mailing list