-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
tests/drivers/dma/chan_blen_transfer/boards/nucleo_l476rg.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,3 @@ | ||
CONFIG_DMA_TRANSFER_DRV_NAME="DMA_1" | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=4 | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=2 |
13 changes: 13 additions & 0 deletions
13
tests/drivers/dma/chan_blen_transfer/boards/nucleo_l476rg.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,13 @@ | ||
/* | ||
* Copyright (c) 2020 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&dma1 { | ||
status = "okay"; | ||
}; | ||
|
||
&dma2 { | ||
status = "okay"; | ||
}; |
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_DRV_NAME="DMA_1" | ||
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4 |
13 changes: 13 additions & 0 deletions
13
tests/drivers/dma/loop_transfer/boards/nucleo_l476rg.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,13 @@ | ||
/* | ||
* Copyright (c) 2020 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&dma1 { | ||
status = "okay"; | ||
}; | ||
|
||
&dma2 { | ||
status = "okay"; | ||
}; |