Skip to content

Commit 482d518

Browse files
NeilChen93MaureenHelm
authored andcommitted
samples: sensor/mcux_lpcmp: Add LPCMP use case
Enable LPCMP use case on NXP frdm_mcxn236 board. Signed-off-by: Neil Chen <[email protected]>
1 parent 9b532e3 commit 482d518

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

samples/sensor/mcux_lpcmp/README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,14 @@ LPCMP positive input port voltage by changing the voltage input to J2-17.
3535
:board: frdm_mcxn947//cpu0
3636
:goals: build flash
3737
:compact:
38+
39+
Building and Running for NXP FRDM-MCXN236
40+
=========================================
41+
Build the application for the :ref:`frdm_mcxn236` board, and adjust the
42+
LPCMP positive input port voltage by changing the voltage input to J2-8.
43+
44+
.. zephyr-app-commands::
45+
:zephyr-app: samples/sensor/mcux_lpcmp
46+
:board: frdm_mcxn236
47+
:goals: build flash
48+
:compact:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&lpcmp0 {
8+
function-clock = "CMP_CLOCK";
9+
};

samples/sensor/mcux_lpcmp/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ sample:
44
common:
55
platform_allow:
66
- frdm_mcxn947/mcxn947/cpu0
7+
- frdm_mcxn236
78
integration_platforms:
89
- frdm_mcxn947/mcxn947/cpu0
10+
- frdm_mcxn236
911
tags:
1012
- drivers
1113
- sensor

0 commit comments

Comments
 (0)