Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/counter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_LPC_RTC counter_mcux_lpc
zephyr_library_sources_ifdef(CONFIG_COUNTER_NRF_TIMER counter_nrfx_timer.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_NRF_RTC counter_nrfx_rtc.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_RTC_STM32 counter_ll_stm32_rtc.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_TIMER_STM32 counter_ll_stm32_timer.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_SAM_TC counter_sam_tc.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_SAM0_TC32 counter_sam0_tc32.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_CMOS counter_cmos.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/counter/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ source "drivers/counter/Kconfig.imx_epit"

source "drivers/counter/Kconfig.stm32_rtc"

source "drivers/counter/Kconfig.stm32_timer"

source "drivers/counter/Kconfig.sam"

source "drivers/counter/Kconfig.sam0"
Expand Down
11 changes: 11 additions & 0 deletions drivers/counter/Kconfig.stm32_timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2021 Kent Hall
# SPDX-License-Identifier: Apache-2.0

DT_COMPAT_ST_STM32_COUNTER := st,stm32-counter

config COUNTER_TIMER_STM32
bool "STM32 counter driver"
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_COUNTER))
select USE_STM32_LL_TIM
help
Enable the counter driver for STM32 family of processors.
Loading