-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: adc_sequence: Add lp_em_cc2340r5 DT overlay
Add LP-EM-CC2340R5 board support to ADC sample. Signed-off-by: Julien Panis <jpanis@baylibre.com>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SEQUENCE_RESOLUTION=12 |
34 changes: 34 additions & 0 deletions
34
samples/drivers/adc/adc_sequence/boards/lp_em_cc2340r5.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2024 BayLibre, SAS | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/adc/adc.h> | ||
|
||
/ { | ||
aliases { | ||
adc0 = &adc0; | ||
}; | ||
}; | ||
|
||
&adc0 { | ||
status = "okay"; | ||
|
||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
channel@2 { | ||
reg = <2>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_VDD_1"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
}; | ||
|
||
channel@8 { | ||
reg = <8>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_VDD_1"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
}; | ||
}; |