Skip to content

Commit

Permalink
tests: counter: Add LPC RTC 1KHZ counter
Browse files Browse the repository at this point in the history
Add counter test support for the RTC 1KHz counter

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
  • Loading branch information
mmahadevan108 authored and carlescufi committed Jan 12, 2024
1 parent 008b502 commit 37158eb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
&rtc {
status = "disabled";
};

&rtc_highres {
status = "okay";
};
5 changes: 4 additions & 1 deletion tests/drivers/counter/counter_basic_api/src/test_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ static const struct device *const devices[] = {
#ifdef CONFIG_COUNTER_NXP_MRT
DEVS_FOR_DT_COMPAT(nxp_mrt_channel)
#endif
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_1HZ
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc)
#endif
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_HIGHRES
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc_highres)
#endif
#ifdef CONFIG_COUNTER_GECKO_RTCC
DEVS_FOR_DT_COMPAT(silabs_gecko_rtcc)
#endif
Expand Down
9 changes: 9 additions & 0 deletions tests/drivers/counter/counter_basic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ tests:
timeout: 600
extra_configs:
- CONFIG_COUNTER_RTC_STM32_SUBSECONDS=y
drivers.counter.basic_api.rtc_1khz:
tags:
- drivers
- counter
depends_on: counter
platform_allow: mimxrt685_evk_cm33
timeout: 400
extra_args:
DTC_OVERLAY_FILE="boards/mimxrt685_evk_cm33_rtc_1khz.overlay"

0 comments on commit 37158eb

Please sign in to comment.