Skip to content

Commit 18853d0

Browse files
ozersaoknshn
authored andcommitted
tests: drivers: counter: Enable counter RTC test for MAX32 MCUs
This commit enables counter RTC test for MAX32 MCUs. Co-authored-by: Okan Sahin <[email protected]> Signed-off-by: Sadik Ozer <[email protected]>
1 parent 0253a10 commit 18853d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/drivers/counter/counter_basic_api/src/test_counter.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ static const struct device *const devices[] = {
117117
#ifdef CONFIG_COUNTER_TIMER_RPI_PICO
118118
DEVS_FOR_DT_COMPAT(raspberrypi_pico_timer)
119119
#endif
120+
#ifdef CONFIG_COUNTER_RTC_MAX32
121+
DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter)
122+
#endif
120123
#ifdef CONFIG_COUNTER_AMBIQ
121124
DEVS_FOR_DT_COMPAT(ambiq_counter)
122125
#endif
@@ -135,6 +138,9 @@ static const struct device *const period_devs[] = {
135138
#ifdef CONFIG_COUNTER_RTC_STM32
136139
DEVS_FOR_DT_COMPAT(st_stm32_rtc)
137140
#endif
141+
#ifdef CONFIG_COUNTER_RTC_MAX32
142+
DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter)
143+
#endif
138144
};
139145

140146
typedef void (*counter_test_func_t)(const struct device *dev);

0 commit comments

Comments
 (0)