nrf52: Adapt SPI periph config

This commit is contained in:
Koen Zandberg 2020-05-11 21:07:35 +02:00
parent 88c244bc75
commit 628d3e9080
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -32,10 +32,13 @@ extern "C" {
*/ */
static const spi_conf_t spi_config[] = { static const spi_conf_t spi_config[] = {
{ {
.dev = NRF_SPI0, .dev = NRF_SPIM0,
.sclk = GPIO_PIN(0, 15), .sclk = GPIO_PIN(0, 15),
.mosi = GPIO_PIN(0, 13), .mosi = GPIO_PIN(0, 13),
.miso = GPIO_PIN(0, 14), .miso = GPIO_PIN(0, 14),
#ifdef ERRATA_SPI_SINGLE_BYTE_WORKAROUND
.ppi = 0,
#endif
} }
}; };