Skip to content

Commit

Permalink
tests: drivers: counter: Enable counter RTC test for MAX32 MCUs
Browse files Browse the repository at this point in the history
This commit enables counter RTC test for MAX32 MCUs.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
  • Loading branch information
ozersa and oknshn committed Oct 22, 2024
1 parent cf473d1 commit 84817b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/drivers/counter/counter_basic_api/src/test_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Check notice on line 143 in tests/drivers/counter/counter_basic_api/src/test_counter.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

tests/drivers/counter/counter_basic_api/src/test_counter.c:143 - DEVS_FOR_DT_COMPAT(nxp_lpc_rtc) + DEVS_FOR_DT_COMPAT(nxp_lpc_rtc) #endif #ifdef CONFIG_COUNTER_RTC_STM32 - DEVS_FOR_DT_COMPAT(st_stm32_rtc) + DEVS_FOR_DT_COMPAT(st_stm32_rtc) #endif #ifdef CONFIG_COUNTER_RTC_MAX32 - DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter) + DEVS_FOR_DT_COMPAT(adi_max32_rtc_counter)
};

typedef void (*counter_test_func_t)(const struct device *dev);
Expand Down

0 comments on commit 84817b7

Please sign in to comment.