Skip to content

Special topic for DTC

Luong Minh Thao edited this page May 10, 2024 · 2 revisions

Currently, there is no support Zephyr interface for DTC. It will be used with UART and is supported inside hal_renesas.

To get this feature, please follow guideline to enable using DTC for UART:

Step 1: Enable UART Asynchronous API by adding CONFIG_UART_ASYNC_API=y into your project configuration files or using menuconfig/guiconfig interface.

For example, project configuration file: tests/drivers/uart/uart_async_api/prj.conf which enabled CONFIG_UART_ASYNC_API=y

CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
CONFIG_ZTEST=y
CONFIG_TEST_USERSPACE=y

Step 2: Add rx-dtc and tx-dtc properties in the device node which should run with DTC support. Following is example for EK-RA8M1,

File: tests/drivers/uart/uart_async_api/boards/ek_ra8m1.overlay

dut: &sci2 {
	current-speed = <115200>;
	rx-dtc;
	tx-dtc;
	pinctrl-0 = <&sci2_default>;
	pinctrl-names = "default";
	status = "okay";
};

Step 3: In your application, using UART Asynchronous API to transfer the UART frame with DTC support.