1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #14283 from bergzand/pr/tests/periph_spi_dma/initial

tests/periph_spi_dma: Add test for SPI with DMA
This commit is contained in:
benpicco 2020-06-16 00:52:46 +02:00 committed by GitHub
commit 471b0e2a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 1 deletions

View File

@ -1,7 +1,7 @@
BOARD ?= samr21-xpro
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_spi
FEATURES_REQUIRED += periph_spi
USEMODULE += xtimer
USEMODULE += shell

View File

@ -0,0 +1,3 @@
FEATURES_REQUIRED += periph_dma
# Include everything else from the periph_spi test
include ../periph_spi/Makefile

View File

@ -0,0 +1,5 @@
# Boards not able to accomodate the regular SPI test will not be able to link
# this test.
include ../periph_spi/Makefile.ci
BOARD_INSUFFICIENT_MEMORY += \
#

View File

@ -0,0 +1,14 @@
Expected result
===============
You should be presented with the RIOT shell, providing you with commands to initialize a board
as master or slave, and to send and receive data via SPI.
Background
==========
Test for the low-level SPI driver in combination with the DMA peripheral.
## Default SPI CS pin
To overwrite the optional default cs pin CFLAGS can be used:
`CFLAGS="-DDEFAULT_SPI_CS_PORT=<my_port_int> -DDEFAULT_SPI_CS_PIN=<my_pin_int>" BOARD=<my_board> make flash term`

1
tests/periph_spi_dma/main.c Symbolic link
View File

@ -0,0 +1 @@
../periph_spi/main.c