File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
samples/drivers/counter/alarm Expand file tree Collapse file tree 2 files changed +28
-1
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 @@ -49,7 +49,7 @@ struct counter_alarm_cfg alarm_cfg;
49
49
#define TIMER DT_NODELABEL(rtcc0)
50
50
#elif defined(CONFIG_COUNTER_GECKO_STIMER )
51
51
#define TIMER DT_NODELABEL(stimer0)
52
- #elif defined(CONFIG_COUNTER_INFINEON_CAT1 )
52
+ #elif defined(CONFIG_COUNTER_INFINEON_CAT1 ) || defined( CONFIG_COUNTER_INFINEON_TCPWM )
53
53
#define TIMER DT_NODELABEL(counter0_0)
54
54
#elif defined(CONFIG_COUNTER_AMBIQ )
55
55
#ifdef TIMER
You can’t perform that action at this time.
0 commit comments