File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
tests/drivers/counter/counter_basic_api Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
+ };
Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ static const struct device *const devices[] = {
147
147
#ifdef CONFIG_COUNTER_RENESAS_RZ_CMTW
148
148
DEVS_FOR_DT_COMPAT (renesas_rz_cmtw_counter )
149
149
#endif
150
+ #ifdef CONFIG_COUNTER_INFINEON_TCPWM
151
+ DEVS_FOR_DT_COMPAT (infineon_tcpwm_counter )
152
+ #endif
150
153
};
151
154
152
155
static const struct device * const period_devs [] = {
You can’t perform that action at this time.
0 commit comments