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"; +};