Skip to content

Commit

Permalink
tests: drivers: uart: add esp32c3_luatos_core
Browse files Browse the repository at this point in the history
add overlay and conf for esp32c3_luatos_core board

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
  • Loading branch information
feilongfl committed Sep 10, 2023
1 parent 3a2a640 commit a18edd7
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
@@ -0,0 +1,2 @@
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_DMA=y
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO5>;
input-enable;
};
group2 {
pinmux = <UART1_RX_GPIO5>;
output-enable;
};
};
};

dut: &uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
dmas = <&dma 0>, <&dma 1>;
dma-names = "rx", "tx";
};

&dma {
status = "okay";
};
@@ -0,0 +1,2 @@
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_DMA=y
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2023 YuLong Yao<feilongphone@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO5>;
input-enable;
};
group2 {
pinmux = <UART1_RX_GPIO5>;
output-enable;
};
};
};

dut: &uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
dmas = <&dma 0>, <&dma 1>;
dma-names = "rx", "tx";
};

&dma {
status = "okay";
};

&uart0 {
status = "okay";
};

0 comments on commit a18edd7

Please sign in to comment.