arch/nrf52/nrf52_tickless_rtc.c: check configuration

This commit is contained in:
raiden00pl 2023-03-15 12:09:50 +01:00 committed by Petro Karashchenko
parent 38631bd560
commit 33b19e967c

View File

@ -41,6 +41,12 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Check configuration */
#ifdef CONFIG_TIMER_ARCH
# error CONFIG_TIMER_ARCH must be not set
#endif
/* Check corresponding RTC support */ /* Check corresponding RTC support */
#if (CONFIG_NRF52_SYSTIMER_RTC_INSTANCE == 0) && !defined(CONFIG_NRF52_RTC0) #if (CONFIG_NRF52_SYSTIMER_RTC_INSTANCE == 0) && !defined(CONFIG_NRF52_RTC0)