From 482d5182aacfb8997c4c51c9e0ce04e47e8c486f Mon Sep 17 00:00:00 2001 From: Neil Chen Date: Mon, 14 Oct 2024 10:12:38 +0800 Subject: [PATCH] samples: sensor/mcux_lpcmp: Add LPCMP use case Enable LPCMP use case on NXP frdm_mcxn236 board. Signed-off-by: Neil Chen --- samples/sensor/mcux_lpcmp/README.rst | 11 +++++++++++ samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay | 9 +++++++++ samples/sensor/mcux_lpcmp/sample.yaml | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay diff --git a/samples/sensor/mcux_lpcmp/README.rst b/samples/sensor/mcux_lpcmp/README.rst index d718edd5c6b0f4..6cd790d571f99a 100644 --- a/samples/sensor/mcux_lpcmp/README.rst +++ b/samples/sensor/mcux_lpcmp/README.rst @@ -35,3 +35,14 @@ LPCMP positive input port voltage by changing the voltage input to J2-17. :board: frdm_mcxn947//cpu0 :goals: build flash :compact: + +Building and Running for NXP FRDM-MCXN236 +========================================= +Build the application for the :ref:`frdm_mcxn236` board, and adjust the +LPCMP positive input port voltage by changing the voltage input to J2-8. + +.. zephyr-app-commands:: + :zephyr-app: samples/sensor/mcux_lpcmp + :board: frdm_mcxn236 + :goals: build flash + :compact: diff --git a/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay b/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay new file mode 100644 index 00000000000000..cec0ea5e62421b --- /dev/null +++ b/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay @@ -0,0 +1,9 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&lpcmp0 { + function-clock = "CMP_CLOCK"; +}; diff --git a/samples/sensor/mcux_lpcmp/sample.yaml b/samples/sensor/mcux_lpcmp/sample.yaml index 7ce4b8cbac528e..505d36a0099e62 100644 --- a/samples/sensor/mcux_lpcmp/sample.yaml +++ b/samples/sensor/mcux_lpcmp/sample.yaml @@ -4,8 +4,10 @@ sample: common: platform_allow: - frdm_mcxn947/mcxn947/cpu0 + - frdm_mcxn236 integration_platforms: - frdm_mcxn947/mcxn947/cpu0 + - frdm_mcxn236 tags: - drivers - sensor