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

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

commit 33b19e967c5ece1c12ebfdc4e6478b5a588a7fb4
Author: raiden00pl <[email protected]>
AuthorDate: Wed Mar 15 12:09:50 2023 +0100

    arch/nrf52/nrf52_tickless_rtc.c: check configuration
---
 arch/arm/src/nrf52/nrf52_tickless_rtc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/src/nrf52/nrf52_tickless_rtc.c 
b/arch/arm/src/nrf52/nrf52_tickless_rtc.c
index 76d37fc033..a82a8622fa 100644
--- a/arch/arm/src/nrf52/nrf52_tickless_rtc.c
+++ b/arch/arm/src/nrf52/nrf52_tickless_rtc.c
@@ -41,6 +41,12 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
+/* Check configuration */
+
+#ifdef CONFIG_TIMER_ARCH
+#  error CONFIG_TIMER_ARCH must be not set
+#endif
+
 /* Check corresponding RTC support */
 
 #if (CONFIG_NRF52_SYSTIMER_RTC_INSTANCE == 0) && !defined(CONFIG_NRF52_RTC0)

Reply via email to