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

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


The following commit(s) were added to refs/heads/master by this push:
     new 20a65fa21b arch/nrf{52|53|91}: add support for up_perf
20a65fa21b is described below

commit 20a65fa21bca1c9e9b7382abfdb382e85bc71d66
Author: raiden00pl <raide...@railab.me>
AuthorDate: Thu Sep 28 09:33:28 2023 +0200

    arch/nrf{52|53|91}: add support for up_perf
---
 arch/arm/src/nrf52/nrf52_start.c | 4 ++++
 arch/arm/src/nrf53/nrf53_start.c | 4 ++++
 arch/arm/src/nrf91/nrf91_start.c | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/arch/arm/src/nrf52/nrf52_start.c b/arch/arm/src/nrf52/nrf52_start.c
index e775fbcc66..d587372451 100644
--- a/arch/arm/src/nrf52/nrf52_start.c
+++ b/arch/arm/src/nrf52/nrf52_start.c
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+  up_perf_init((void *)BOARD_SYSTICK_CLOCK);
+#endif
+
   showprogress('D');
 
 #ifdef USE_EARLYSERIALINIT
diff --git a/arch/arm/src/nrf53/nrf53_start.c b/arch/arm/src/nrf53/nrf53_start.c
index 2850f82353..bf95e2f378 100644
--- a/arch/arm/src/nrf53/nrf53_start.c
+++ b/arch/arm/src/nrf53/nrf53_start.c
@@ -247,6 +247,10 @@ void __start(void)
   nrf53_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+  up_perf_init((void *)BOARD_SYSTICK_CLOCK);
+#endif
+
   showprogress('D');
 
 #ifdef USE_EARLYSERIALINIT
diff --git a/arch/arm/src/nrf91/nrf91_start.c b/arch/arm/src/nrf91/nrf91_start.c
index 6776b2d69d..1a6eccf8e4 100644
--- a/arch/arm/src/nrf91/nrf91_start.c
+++ b/arch/arm/src/nrf91/nrf91_start.c
@@ -235,6 +235,10 @@ void __start(void)
   nrf91_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
+  up_perf_init((void *)BOARD_SYSTICK_CLOCK);
+#endif
+
   showprogress('D');
 
 #ifdef USE_EARLYSERIALINIT

Reply via email to