Skip to content

Commit

Permalink
tests: drivers: dma: adapt test applications on stm32l476 nucleo board
Browse files Browse the repository at this point in the history
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
FRASTM committed Nov 25, 2020
1 parent 372a49f commit f46d3a8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
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 tests/drivers/dma/chan_blen_transfer/boards/nucleo_l476rg.overlay
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";
};
2 changes: 2 additions & 0 deletions tests/drivers/dma/loop_transfer/boards/nucleo_l476rg.conf
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 tests/drivers/dma/loop_transfer/boards/nucleo_l476rg.overlay
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";
};

0 comments on commit f46d3a8

Please sign in to comment.