Skip to content

Commit 0507021

Browse files
ZhaoxiangJindleach02
authored andcommitted
drivers: sensor/nxp: Add NXP LPCMP driver
Add NXP LPCMP driver Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 76ae2bf commit 0507021

File tree

5 files changed

+476
-0
lines changed

5 files changed

+476
-0
lines changed

drivers/sensor/nxp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
add_subdirectory_ifdef(CONFIG_FXAS21002 fxas21002)
66
add_subdirectory_ifdef(CONFIG_FXOS8700 fxos8700)
77
add_subdirectory_ifdef(CONFIG_MCUX_ACMP mcux_acmp)
8+
add_subdirectory_ifdef(CONFIG_MCUX_LPCMP mcux_lpcmp)
89
add_subdirectory_ifdef(CONFIG_NXP_TEMPMON nxp_tempmon)
910
add_subdirectory_ifdef(CONFIG_QDEC_MCUX qdec_mcux)
1011
add_subdirectory_ifdef(CONFIG_QDEC_NXP_S32 qdec_nxp_s32)

drivers/sensor/nxp/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
source "drivers/sensor/nxp/fxas21002/Kconfig"
66
source "drivers/sensor/nxp/fxos8700/Kconfig"
77
source "drivers/sensor/nxp/mcux_acmp/Kconfig"
8+
source "drivers/sensor/nxp/mcux_lpcmp/Kconfig"
89
source "drivers/sensor/nxp/nxp_kinetis_temp/Kconfig"
910
source "drivers/sensor/nxp/nxp_tempmon/Kconfig"
1011
source "drivers/sensor/nxp/qdec_mcux/Kconfig"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_library()
5+
zephyr_library_sources_ifdef(CONFIG_MCUX_LPCMP mcux_lpcmp.c)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# NXP MCUX low power comparator (LPCMP) configuration options
2+
3+
# Copyright 2024 NXP
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config MCUX_LPCMP
7+
bool "NXP LPCMP driver"
8+
default y
9+
depends on DT_HAS_NXP_LPCMP_ENABLED
10+
select PINCTRL
11+
help
12+
Enable the MCUX LPCMP driver.
13+
14+
config MCUX_LPCMP_TRIGGER
15+
bool "Trigger support"
16+
depends on MCUX_LPCMP
17+
help
18+
Enable trigger support for the NXP LPCMP.

0 commit comments

Comments
 (0)