Skip to content

Commit c159206

Browse files
lozyn888cfriedt
authored andcommitted
drivers: counter: add PSC3M5 counter driver
- Add a new counter driver implementation based on the PDL for Infineon CAT1B devices. This enables support for hardware counters on the PSC3M5 platform. - Add IFX_TCPWM_Counter_DeInit and IFX_TCPWM_Counter_Init macros to include/zephyr/drivers/timer/ifx_tcpwm.h and sort all of the macros in that file Signed-off-by: Yurii Lozynskyi <[email protected]>
1 parent 435af8d commit c159206

File tree

10 files changed

+1376
-717
lines changed

10 files changed

+1376
-717
lines changed

drivers/counter/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_SMARTBOND_TIMER counter_smartbon
4646
zephyr_library_sources_ifdef(CONFIG_COUNTER_MICROCHIP_MCP7940N rtc_mcp7940n.c)
4747
zephyr_library_sources_ifdef(CONFIG_COUNTER_ANDES_ATCPIT100 counter_andes_atcpit100.c)
4848
zephyr_library_sources_ifdef(CONFIG_COUNTER_INFINEON_CAT1 counter_ifx_cat1.c)
49+
zephyr_library_sources_ifdef(CONFIG_COUNTER_INFINEON_TCPWM counter_ifx_tcpwm.c)
4950
zephyr_library_sources_ifdef(CONFIG_ACE_V1X_ART_COUNTER counter_ace_v1x_art.c)
5051
zephyr_library_sources_ifdef(CONFIG_ACE_V1X_RTC_COUNTER counter_ace_v1x_rtc.c)
5152
zephyr_library_sources_ifdef(CONFIG_COUNTER_NXP_S32_SYS_TIMER counter_nxp_s32_sys_timer.c)

drivers/counter/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ source "drivers/counter/Kconfig.mcux_ctimer"
9494

9595
source "drivers/counter/Kconfig.ifx_cat1"
9696

97+
source "drivers/counter/Kconfig.ifx_tcpwm"
98+
9799
source "drivers/counter/Kconfig.andes_atcpit100"
98100

99101
source "drivers/counter/Kconfig.nxp_s32"

drivers/counter/Kconfig.ifx_tcpwm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2025 Infineon Technologies AG,
2+
# or an affiliate of Infineon Technologies AG.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config COUNTER_INFINEON_TCPWM
7+
bool "Infineon TCPWM counter driver"
8+
default y
9+
depends on DT_HAS_INFINEON_TCPWM_COUNTER_ENABLED
10+
select USE_INFINEON_TIMER
11+
help
12+
This option enables the TCPWM counter driver for Infineon devices.

0 commit comments

Comments
 (0)