Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32 comparator #85022

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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/comparator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ zephyr_library_sources_ifdef(CONFIG_COMPARATOR_MCUX_ACMP comparator_mcux_acmp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_COMP comparator_nrf_comp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_LPCOMP comparator_nrf_lpcomp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_SHELL comparator_shell.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_STM32_COMP comparator_stm32_comp.c)
1 change: 1 addition & 0 deletions drivers/comparator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ rsource "Kconfig.mcux_acmp"
rsource "Kconfig.nrf_comp"
rsource "Kconfig.nrf_lpcomp"
rsource "Kconfig.shell"
rsource "Kconfig.stm32_comp"

endif # COMPARATOR
19 changes: 19 additions & 0 deletions drivers/comparator/Kconfig.stm32_comp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2025 Alexander Kozhinov <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config COMPARATOR_STM32_COMP
bool "ST STM32 comparator driver"
default y
depends on DT_HAS_ST_STM32_COMP_ENABLED
select PINCTRL
select USE_STM32_LL_EXTI # EXTI_STM32
select USE_STM32_LL_COMP

if COMPARATOR_STM32_COMP

config COMPARATOR_STM32_COMP_MILLER_EFFECT_HANDLING
bool
default n
default y if SOC_SERIES_STM32G4X

endif # COMPARATOR_STM32_COMP
Loading
Loading