You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/06 00:39:20 UTC
(nuttx) 02/02: arch/arm/nrf{52|53|91}: fix max timer timeout
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
commit bcf309d80ed4156ba5111b88d080e08771cd801e
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Oct 5 13:23:40 2024 +0200
arch/arm/nrf{52|53|91}: fix max timer timeout
fix prerpocessor value of max timer timeout
---
arch/arm/src/nrf52/nrf52_tim_lowerhalf.c | 2 +-
arch/arm/src/nrf53/nrf53_tim_lowerhalf.c | 2 +-
arch/arm/src/nrf91/nrf91_tim_lowerhalf.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/src/nrf52/nrf52_tim_lowerhalf.c b/arch/arm/src/nrf52/nrf52_tim_lowerhalf.c
index b57cfc1a42..2f9b349914 100644
--- a/arch/arm/src/nrf52/nrf52_tim_lowerhalf.c
+++ b/arch/arm/src/nrf52/nrf52_tim_lowerhalf.c
@@ -52,7 +52,7 @@
/* Maximum supported timeout */
-#define NRF52_TIMER_MAXTIMEOUT (NRF52_TIMER_MAX * 1000000 / NRF52_TIMER_PER)
+#define NRF52_TIMER_MAXTIMEOUT (NRF52_TIMER_MAX * (1000000 / NRF52_TIMER_PER))
/****************************************************************************
* Private Types
diff --git a/arch/arm/src/nrf53/nrf53_tim_lowerhalf.c b/arch/arm/src/nrf53/nrf53_tim_lowerhalf.c
index c1f896dfc3..f183c95476 100644
--- a/arch/arm/src/nrf53/nrf53_tim_lowerhalf.c
+++ b/arch/arm/src/nrf53/nrf53_tim_lowerhalf.c
@@ -52,7 +52,7 @@
/* Maximum supported timeout */
-#define NRF53_TIMER_MAXTIMEOUT (NRF53_TIMER_MAX * 1000000 / NRF53_TIMER_PER)
+#define NRF53_TIMER_MAXTIMEOUT (NRF53_TIMER_MAX * (1000000 / NRF53_TIMER_PER))
/****************************************************************************
* Private Types
diff --git a/arch/arm/src/nrf91/nrf91_tim_lowerhalf.c b/arch/arm/src/nrf91/nrf91_tim_lowerhalf.c
index d2a9faefe9..2c9941bebd 100644
--- a/arch/arm/src/nrf91/nrf91_tim_lowerhalf.c
+++ b/arch/arm/src/nrf91/nrf91_tim_lowerhalf.c
@@ -52,7 +52,7 @@
/* Maximum supported timeout */
-#define NRF91_TIMER_MAXTIMEOUT (NRF91_TIMER_MAX * 1000000 / NRF91_TIMER_PER)
+#define NRF91_TIMER_MAXTIMEOUT (NRF91_TIMER_MAX * (1000000 / NRF91_TIMER_PER))
/****************************************************************************
* Private Types