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:
commit
471b0e2a5a
@ -1,7 +1,7 @@
|
||||
BOARD ?= samr21-xpro
|
||||
include ../Makefile.tests_common
|
||||
|
||||
FEATURES_REQUIRED = periph_spi
|
||||
FEATURES_REQUIRED += periph_spi
|
||||
|
||||
USEMODULE += xtimer
|
||||
USEMODULE += shell
|
||||
|
||||
3
tests/periph_spi_dma/Makefile
Normal file
3
tests/periph_spi_dma/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
FEATURES_REQUIRED += periph_dma
|
||||
# Include everything else from the periph_spi test
|
||||
include ../periph_spi/Makefile
|
||||
5
tests/periph_spi_dma/Makefile.ci
Normal file
5
tests/periph_spi_dma/Makefile.ci
Normal 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 += \
|
||||
#
|
||||
14
tests/periph_spi_dma/README.md
Normal file
14
tests/periph_spi_dma/README.md
Normal 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
1
tests/periph_spi_dma/main.c
Symbolic link
@ -0,0 +1 @@
|
||||
../periph_spi/main.c
|
||||
Loading…
x
Reference in New Issue
Block a user