1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/nucleo-f072rb: Added SPI2 config

This commit is contained in:
Marian Buschsieweke 2018-08-15 11:58:19 +02:00
parent a8b980abfb
commit 171a8bfe27
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -193,7 +193,17 @@ static const spi_conf_t spi_config[] = {
.af = GPIO_AF0,
.rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2
}
},
{
.dev = SPI2,
.mosi_pin = GPIO_PIN(PORT_B, 15),
.miso_pin = GPIO_PIN(PORT_B, 14),
.sclk_pin = GPIO_PIN(PORT_B, 13),
.cs_pin = GPIO_PIN(PORT_B, 12),
.af = GPIO_AF0,
.rccmask = RCC_APB1ENR_SPI2EN,
.apbbus = APB1
},
};
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))