Skip to content
Snippets Groups Projects
Unverified Commit 171a8bfe authored by Marian Buschsieweke's avatar Marian Buschsieweke
Browse files

boards/nucleo-f072rb: Added SPI2 config

parent a8b980ab
Branches
No related tags found
No related merge requests found
...@@ -193,7 +193,17 @@ static const spi_conf_t spi_config[] = { ...@@ -193,7 +193,17 @@ static const spi_conf_t spi_config[] = {
.af = GPIO_AF0, .af = GPIO_AF0,
.rccmask = RCC_APB2ENR_SPI1EN, .rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2 .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])) #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment