Skip to content

Commit a5e84e0

Browse files
gmarullnashif
authored andcommitted
app: provide in-tree board overlay
Provide an overlay to shows how to run the example-application on boards that are part of the Zephyr tree. Sometimes initial development is performed on dev-kits, so it can be useful. A different vendor than the one used for the custom board (Nordic) has been chosen to show application portability. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 8689c36 commit a5e84e0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

app/boards/nucleo_f302r8.overlay

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2021 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/* This devicetree overlay file will be automatically picked by the Zephyr
7+
* build system when building the sample for the nucleo_f302r8 board. It shows
8+
* how the example-application can be built on sample boards already provided
9+
* by Zephyr.
10+
*/
11+
12+
/ {
13+
examplesensor0: examplesensor_0 {
14+
compatible = "zephyr,examplesensor";
15+
label = "EXAMPLESENSOR_0";
16+
input-gpios = <&gpioc 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
17+
};
18+
};
19+
20+
&gpioc {
21+
status = "okay";
22+
};

0 commit comments

Comments
 (0)