20#include "periph_cpu.h" 
   41#define SPI_DEV_1_USED  0 
   51#define SPI_DEV_0_CS    GPIO_PIN(PORT_B, 12) 
   61#define SPI_DEV_1_CS    GPIO_PIN(PORT_B, 5) 
   82        .rcumask  = RCU_APB1EN_SPI1EN_Msk,
 
   92        .rcumask  = RCU_APB2EN_SPI0EN_Msk,
 
 
   98#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.