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/09 00:02:22 UTC
[incubator-nuttx] 04/05: boards/nucleo-h743zi2: Enable up_perf API
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 1f7b49d7003c9bf27ade13be6fcd177b4352299d
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Tue Apr 5 17:16:18 2022 +0800
boards/nucleo-h743zi2: Enable up_perf API
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/stm32h7/Make.defs | 2 +-
boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32h7/Make.defs b/arch/arm/src/stm32h7/Make.defs
index 7c3634151f..daa9d21734 100644
--- a/arch/arm/src/stm32h7/Make.defs
+++ b/arch/arm/src/stm32h7/Make.defs
@@ -34,7 +34,7 @@ CMN_CSRCS += arm_releasepending.c arm_releasestack.c arm_reprioritizertr.c
CMN_CSRCS += arm_schedulesigaction.c arm_sigdeliver.c arm_stackframe.c arm_svcall.c
CMN_CSRCS += arm_systemreset.c arm_trigger_irq.c arm_udelay.c arm_unblocktask.c
CMN_CSRCS += arm_usestack.c arm_vfork.c arm_switchcontext.c arm_puts.c
-CMN_CSRCS += arm_tcbinfo.c
+CMN_CSRCS += arm_tcbinfo.c arm_perf.c
ifeq ($(CONFIG_ARMV7M_SYSTICK),y)
CMN_CSRCS += arm_systick.c
diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c
index eea8065eeb..31b642fa78 100644
--- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c
+++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c
@@ -50,6 +50,10 @@
void stm32_boardinitialize(void)
{
+#ifdef CONFIG_SCHED_IRQMONITOR
+ up_perf_init((FAR void *)STM32_SYSCLK_FREQUENCY);
+#endif
+
#ifdef CONFIG_ARCH_LEDS
/* Configure on-board LEDs if LED support has been selected. */