-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: esp32c6_devkitc: Test files for DMA and UART async
Test files for DMA and UART async Signed-off-by: Raffael Rostagno <[email protected]>
- Loading branch information
Raffael Rostagno
committed
Jul 4, 2024
1 parent
a0ab2d5
commit d04e833
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4 | ||
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094 |
11 changes: 11 additions & 0 deletions
11
tests/drivers/dma/loop_transfer/boards/esp32c6_devkitc.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&dma { | ||
status = "okay"; | ||
}; | ||
|
||
tst_dma0: &dma { }; |
2 changes: 2 additions & 0 deletions
2
tests/drivers/uart/uart_async_api/boards/esp32c6_devkitc.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_HEAP_MEM_POOL_SIZE=32768 | ||
CONFIG_DMA=y |
31 changes: 31 additions & 0 deletions
31
tests/drivers/uart/uart_async_api/boards/esp32c6_devkitc.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_GPIO2>; | ||
input-enable; /* Connect GPIO2 and GPIO3 externally for testing */ | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO3>; | ||
output-enable; /* Connect GPIO2 and GPIO3 externally for testing */ | ||
}; | ||
}; | ||
}; | ||
|
||
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"; | ||
}; |