From a5e84e0b9813ab7eebeae82d9c06ea6841a25471 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 6 May 2021 12:09:09 +0200 Subject: [PATCH] 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 --- app/boards/nucleo_f302r8.overlay | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/boards/nucleo_f302r8.overlay diff --git a/app/boards/nucleo_f302r8.overlay b/app/boards/nucleo_f302r8.overlay new file mode 100644 index 0000000..aa964ba --- /dev/null +++ b/app/boards/nucleo_f302r8.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Nordic Semiconductor ASA + * SPDX-License-Identifier: Apache-2.0 + */ + +/* This devicetree overlay file will be automatically picked by the Zephyr + * build system when building the sample for the nucleo_f302r8 board. It shows + * how the example-application can be built on sample boards already provided + * by Zephyr. + */ + +/ { + examplesensor0: examplesensor_0 { + compatible = "zephyr,examplesensor"; + label = "EXAMPLESENSOR_0"; + input-gpios = <&gpioc 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + }; +}; + +&gpioc { + status = "okay"; +};