Skip to content

Commit

Permalink
samples: sensor/mcux_lpcmp: Add LPCMP use case
Browse files Browse the repository at this point in the history
Enable LPCMP use case on NXP frdm_mcxn236 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
  • Loading branch information
NeilChen93 authored and MaureenHelm committed Oct 21, 2024
1 parent 9b532e3 commit 482d518
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions samples/sensor/mcux_lpcmp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
9 changes: 9 additions & 0 deletions samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&lpcmp0 {
function-clock = "CMP_CLOCK";
};
2 changes: 2 additions & 0 deletions samples/sensor/mcux_lpcmp/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 482d518

Please sign in to comment.