23#include "periph_cpu.h"
44#define SPI_DEV_1_USED 0
54#define SPI_DEV_0_CS GPIO_PIN(PORT_B, 12)
64#define SPI_DEV_1_CS GPIO_PIN(PORT_B, 5)
85 .rcumask = RCU_APB1EN_SPI1EN_Msk,
95 .rcumask = RCU_APB2EN_SPI0EN_Msk,
101#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)
@ APB1
Advanced Peripheral Bus 1.
@ APB2
Advanced Peripheral Bus 2.
SPI device configuration.