Skip to content

Commit 4f0b522

Browse files
bjarki-andreasenrlubos
authored andcommitted
[nrf fromtree] drivers: comparator: add mcux acmp device driver
Add mcux SDK based kinetis acmp device driver implementing the comparator device driver API. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit d37f844)
1 parent 28879e0 commit 4f0b522

File tree

6 files changed

+831
-1
lines changed

6 files changed

+831
-1
lines changed

drivers/comparator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/comparator.h)
66
zephyr_library()
77

88
zephyr_library_sources_ifdef(CONFIG_USERSPACE comparator_handlers.c)
9+
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_MCUX_ACMP comparator_mcux_acmp.c)
910
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_COMP comparator_nrf_comp.c)
1011
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_LPCOMP comparator_nrf_lpcomp.c)

drivers/comparator/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ config COMPARATOR_INIT_PRIORITY
1818
help
1919
Comparator device driver initialization priority.
2020

21+
rsource "Kconfig.mcux_acmp"
2122
rsource "Kconfig.nrf_comp"
2223
rsource "Kconfig.nrf_lpcomp"
2324

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config COMPARATOR_MCUX_ACMP
5+
bool "NXP MCUX ACMP comparator driver"
6+
default y
7+
depends on DT_HAS_NXP_KINETIS_ACMP_ENABLED
8+
select PINCTRL
9+
select MCUX_ACMP

0 commit comments

Comments
 (0)