21#ifndef CFG_SPI_DEFAULT_H
22#define CFG_SPI_DEFAULT_H
24#include "periph_cpu.h"
45#define SPI_DEV_1_USED 0
55#define SPI_DEV_0_CS GPIO_PIN(PORT_B, 12)
65#define SPI_DEV_1_CS GPIO_PIN(PORT_B, 5)
86 .rcumask = RCU_APB1EN_SPI1EN_Msk,
96 .rcumask = RCU_APB2EN_SPI0EN_Msk,
102#define SPI_NUMOF ARRAY_SIZE(spi_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define SPI_DEV_0_CS
Defines PB12 as the default CS signal for SPI_DEV(0)
#define SPI_DEV_1_CS
Defines PA4 as the default CS signal for SPI_DEV(1)
static const spi_conf_t spi_config[]
Default SPI device configuration.
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
SPI device configuration.
SPI_t * dev
pointer to the used SPI device