Skip to content

Commit 04e70ab

Browse files
bjarki-andreasennashif
authored andcommitted
drivers: comparator: add nRF LPCOMP device driver
Add nRF LPCOMP device driver. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 13af5ca commit 04e70ab

File tree

7 files changed

+696
-23
lines changed

7 files changed

+696
-23
lines changed

drivers/comparator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ zephyr_library()
77

88
zephyr_library_sources_ifdef(CONFIG_USERSPACE comparator_handlers.c)
99
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_COMP comparator_nrf_comp.c)
10+
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
@@ -19,5 +19,6 @@ config COMPARATOR_INIT_PRIORITY
1919
Comparator device driver initialization priority.
2020

2121
rsource "Kconfig.nrf_comp"
22+
rsource "Kconfig.nrf_lpcomp"
2223

2324
endif # COMPARATOR

drivers/comparator/Kconfig.nrf_lpcomp

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

0 commit comments

Comments
 (0)