From 18853d026a5e15e1f274a1d0f72b8154e73892af Mon Sep 17 00:00:00 2001 From: Sadik Ozer Date: Mon, 18 Mar 2024 14:57:04 +0300 Subject: [PATCH] tests: drivers: counter: Enable counter RTC test for MAX32 MCUs This commit enables counter RTC test for MAX32 MCUs. Co-authored-by: Okan Sahin Signed-off-by: Sadik Ozer --- tests/drivers/counter/counter_basic_api/src/test_counter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/drivers/counter/counter_basic_api/src/test_counter.c b/tests/drivers/counter/counter_basic_api/src/test_counter.c index 82c70b5ac9c..59236f9a914 100644 --- a/tests/drivers/counter/counter_basic_api/src/test_counter.c +++ b/tests/drivers/counter/counter_basic_api/src/test_counter.c @@ -117,6 +117,9 @@ static const struct device *const devices[] = { #ifdef CONFIG_COUNTER_TIMER_RPI_PICO DEVS_FOR_DT_COMPAT(raspberrypi_pico_timer) #endif +#ifdef CONFIG_COUNTER_RTC_MAX32 + DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter) +#endif #ifdef CONFIG_COUNTER_AMBIQ DEVS_FOR_DT_COMPAT(ambiq_counter) #endif @@ -135,6 +138,9 @@ static const struct device *const period_devs[] = { #ifdef CONFIG_COUNTER_RTC_STM32 DEVS_FOR_DT_COMPAT(st_stm32_rtc) #endif +#ifdef CONFIG_COUNTER_RTC_MAX32 + DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter) +#endif }; typedef void (*counter_test_func_t)(const struct device *dev);