Skip to content

Commit 60bb584

Browse files
FRASTMcarlescufi
authored andcommitted
tests/drivers/dma: testing mem-to-mem DMA transfer on stm32u5
Add the testcase to run on the stm32u5x5 disco kit and nucleo_u575zi_q boards. The DMA instance is the GPDMA (up to 16 channels). Signed-off-by: Francois Ramu <[email protected]>
1 parent eed4b43 commit 60bb584

File tree

9 files changed

+43
-1
lines changed

9 files changed

+43
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=5
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=10
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
test_dma: &gpdma1 {
8+
status = "okay";
9+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=5
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=10
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
test_dma: &gpdma1 {
8+
status = "okay";
9+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
test_dma: &gpdma1 {
8+
status = "okay";
9+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=8
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
test_dma: &gpdma1 {
8+
status = "okay";
9+
};

tests/drivers/dma/loop_transfer/src/test_dma_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static int test_loop_suspend_resume(void)
271271
res = dma_suspend(dma, chan_id);
272272
if (res == -ENOSYS) {
273273
done = 1;
274-
TC_PRINT("suspend not supported");
274+
TC_PRINT("suspend not supported\n");
275275
dma_stop(dma, chan_id);
276276
return TC_PASS;
277277
}

0 commit comments

Comments
 (0)