Skip to content

Commit a3680c1

Browse files
FRASTMMaureenHelm
authored andcommitted
tests: drivers: spi loopback testcase yaml for stm32 dma
This commit adds two stm32 config to execute the testcase when the SPI is using interrupt mode for transfer. when the SPI is using DMA for transfer (not Interrupt nor ASYNC mode). to run the on some specific (listed) stm32 boards on SPI instance. Note the hw fixture (physical connection on the board) Signed-off-by: Francois Ramu <[email protected]>
1 parent a35848b commit a3680c1

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# enable DMA mode for SPI loopback test
2+
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
3+
CONFIG_SPI_STM32_DMA=y
4+
CONFIG_SPI_STM32_INTERRUPT=n
5+
CONFIG_SPI_ASYNC=n
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# enable stm32 spi instance for loopback test
2+
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ common:
66
tests:
77
drivers.spi.loopback:
88
harness: ztest
9+
filter: not CONFIG_SOC_FAMILY_STM32
910
harness_config:
1011
fixture: spi_loopback
1112
driver.spi.loopback.internal:
@@ -17,3 +18,18 @@ tests:
1718
harness_config:
1819
fixture: spi_loopback
1920
platform_allow: frdm_k64f
21+
drivers.stm32_spi.loopback:
22+
harness: ztest
23+
extra_args: OVERLAY_CONFIG="overlay-stm32-spi.conf"
24+
harness_config:
25+
fixture: spi_loopback
26+
filter: CONFIG_SOC_FAMILY_STM32
27+
drivers.stm32_spi_dma.loopback:
28+
tags: dma
29+
harness: ztest
30+
harness_config:
31+
fixture: spi_loopback
32+
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf"
33+
filter: CONFIG_SOC_FAMILY_STM32
34+
platform_allow: nucleo_g474re nucleo_f207zg nucleo_f429zi nucleo_f746zg nucleo_wb55rg
35+
nucleo_wl55jc nucleo_h743zi

0 commit comments

Comments
 (0)