Skip to content

Commit 64da50f

Browse files
FRASTMcarlescufi
authored andcommitted
tests: drivers: dma: adapt test applications on stm32l476 nucleo board
The dma test applications for MEM-to-MEM transfers are modified to run on the stm32l476 with a DMA. The CONFIG_DMA_LOOP_TRANSFER_DRV_NAME is either DMA_1 or DMA_2 CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR from 1 to 7 for DMA_1 CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR from 1 to 5 for DMA_2 Signed-off-by: Francois Ramu <[email protected]>
1 parent 0a3437d commit 64da50f

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_DMA_TRANSFER_DRV_NAME="DMA_1"
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=4
3+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=2
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2020 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma1 {
8+
status = "okay";
9+
};
10+
11+
&dma2 {
12+
status = "okay";
13+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_LOOP_TRANSFER_DRV_NAME="DMA_1"
2+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2020 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma1 {
8+
status = "okay";
9+
};
10+
11+
&dma2 {
12+
status = "okay";
13+
};

0 commit comments

Comments
 (0)