samples: sensor/mcux_lpcmp: Add LPCMP use case

Enable LPCMP use case on NXP frdm_mcxn236 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2024-10-14 10:12:38 +08:00 committed by Maureen Helm
parent 9b532e3e7a
commit 482d5182aa
3 changed files with 22 additions and 0 deletions

View File

@ -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:

View File

@ -0,0 +1,9 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
&lpcmp0 {
function-clock = "CMP_CLOCK";
};

View File

@ -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