Commit 01a44000 authored by Hiroki Tada's avatar Hiroki Tada Committed by Maureen Helm
Browse files

samples: die_temp_polling: Add esp32c3 overlay

- Add overlay for the esp32c3 board to die_temp_polling sample.
- Add aliases for the die_temp_polling sample to esp32c3 dtsi.

Testing Environment:
esp32c3-devkitC-02

Signed-off-by: default avatarHiroki Tada <tada.hiroki@fujitsu.com>
parent b03d27cc
Loading
Loading
Loading
Loading
+4 −0
Changes for dts/riscv/espressif/esp32c3.dtsi: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@
	#address-cells = <1>;
	#size-cells = <1>;

	aliases {
		die-temp0 = &coretemp;
	};

	chosen {
		zephyr,canbus = &twai;
		zephyr,entropy = &trng0;
+1 −0
Changes for samples/sensor/die_temp_polling/boards/esp32c3_devkitm.conf: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_NEWLIB_LIBC=y
+11 −0
Changes for samples/sensor/die_temp_polling/boards/esp32c3_devkitm.overlay: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * Copyright (c) 2023, Hiroki Tada
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Application overlay for creating temperature sensor device instance
 */

&coretemp {
    status = "okay";
};