19#ifndef CFG_SPI_DEFAULT_H
20#define CFG_SPI_DEFAULT_H
25#include "periph_cpu.h"
47#ifdef MODULE_PERIPH_DMA
48 .tx_trigger = SERCOM3_DMAC_ID_TX,
49 .rx_trigger = SERCOM3_DMAC_ID_RX,
54#define SPI_NUMOF ARRAY_SIZE(spi_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
static const spi_conf_t spi_config[]
Default SPI device configuration.
@ SPI_PAD_MISO_0
use pad 0 for MISO line
@ GPIO_MUX_D
select peripheral function D
@ GPIO_MUX_C
select peripheral function C
@ SPI_PAD_MOSI_2_SCK_3
use pad 2 for MOSI, pad 3 for SCK
#define SAM0_GCLK_MAIN
120 MHz main clock
SPI device configuration.
SPI_t * dev
pointer to the used SPI device