adafruit-clue: Adapt SPI periph config

This commit is contained in:
Koen Zandberg 2020-05-11 21:07:00 +02:00
parent 825c4c8cb7
commit 919ca1c4b5
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -79,13 +79,13 @@ static const i2c_conf_t i2c_config[] = {
*/ */
static const spi_conf_t spi_config[] = { static const spi_conf_t spi_config[] = {
{ /* External connectors */ { /* External connectors */
.dev = NRF_SPI0, .dev = NRF_SPIM0,
.sclk = GPIO_PIN(0, 23), /* D13 */ .sclk = GPIO_PIN(0, 23), /* D13 */
.mosi = GPIO_PIN(0, 21), /* D15 */ .mosi = GPIO_PIN(0, 21), /* D15 */
.miso = GPIO_PIN(0, 22), /* D14 */ .miso = GPIO_PIN(0, 22), /* D14 */
}, },
{ /* TFT LCD screen */ { /* TFT LCD screen */
.dev = NRF_SPI1, .dev = NRF_SPIM1,
.sclk = GPIO_PIN(0, 14), .sclk = GPIO_PIN(0, 14),
.mosi = GPIO_PIN(0, 15), .mosi = GPIO_PIN(0, 15),
.miso = GPIO_PIN(0, 0), .miso = GPIO_PIN(0, 0),