samples: sensor/mcux_lpcmp: Add LPCMP use case

Enable LPCMP use case on NXP frdm_mcxa156 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2024-11-29 15:47:24 +08:00 committed by Benjamin Cabé
commit f6490bf33d
3 changed files with 21 additions and 0 deletions

View file

@ -46,3 +46,14 @@ LPCMP positive input port voltage by changing the voltage input to J2-8.
:board: frdm_mcxn236
:goals: build flash
:compact:
Building and Running for NXP FRDM-MCXA156
=========================================
Build the application for the :zephyr:board:`frdm_mcxa156` board, and adjust the
LPCMP positive input port voltage by changing the voltage input to J2-9.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/mcux_lpcmp
:board: frdm_mcxa156
: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

@ -5,6 +5,7 @@ common:
platform_allow:
- frdm_mcxn947/mcxn947/cpu0
- frdm_mcxn236
- frdm_mcxa156
integration_platforms:
- frdm_mcxn947/mcxn947/cpu0
- frdm_mcxn236