You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2022/04/02 13:34:45 UTC

[incubator-nuttx] 02/02: boards/nucleo-f446re: initialize up_perf

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 7403678db7645e3df36cb8fd29a18680ed7f8f2d
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Apr 2 13:43:39 2022 +0200

    boards/nucleo-f446re: initialize up_perf
---
 boards/arm/stm32/nucleo-f446re/src/stm32_boot.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c
index 456de69..67c07f8 100644
--- a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c
+++ b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c
@@ -52,6 +52,10 @@
 
 void stm32_boardinitialize(void)
 {
+#ifdef CONFIG_SEGGER_SYSVIEW
+  up_perf_init((FAR void *)STM32_SYSCLK_FREQUENCY);
+#endif
+
 #ifdef CONFIG_ARCH_LEDS
   /* Configure on-board LEDs if LED support has been selected. */