Skip to content

Commit b69b750

Browse files
billwatersiiicfriedt
authored andcommitted
tests: drivers: counter: counter_basic_api: add psc3m5
Enable the counter test for the kit_psc3m5_evk Signed-off-by: Bill Waters <[email protected]>
1 parent 06bbdd4 commit b69b750

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include <zephyr/dt-bindings/pwm/pwm_ifx_tcpwm.h>
9+
10+
&tcpwm0_0 {
11+
status = "okay";
12+
divider-type = <PWM_IFX_SYSCLK_DIV_16_BIT>;
13+
divider-sel = <0>;
14+
divider-val = <2399>;
15+
16+
counter0_0 {
17+
status = "okay";
18+
clocks = <&peri0_group4_16bit_0>;
19+
clock-frequency = <20000>;
20+
};
21+
};
22+
23+
&peri0_group4_16bit_0 {
24+
status = "okay";
25+
scb-block = <0>;
26+
div-value = <109>;
27+
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ static const struct device *const devices[] = {
147147
#ifdef CONFIG_COUNTER_RENESAS_RZ_CMTW
148148
DEVS_FOR_DT_COMPAT(renesas_rz_cmtw_counter)
149149
#endif
150+
#ifdef CONFIG_COUNTER_INFINEON_TCPWM
151+
DEVS_FOR_DT_COMPAT(infineon_tcpwm_counter)
152+
#endif
150153
};
151154

152155
static const struct device *const period_devs[] = {

0 commit comments

Comments
 (0)