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

boards/nrf52840: fix SPI pin configuration

This commit is contained in:
Hauke Petersen 2021-04-27 11:38:29 +02:00
parent 96e36995d3
commit 729387e090

View File

@ -24,7 +24,6 @@
#include "cfg_clock_32_1.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_default.h"
#include "cfg_spi_default.h"
#ifdef __cplusplus
extern "C" {
@ -80,6 +79,22 @@ static const pwm_conf_t pwm_config[] = {
#define PWM_NUMOF ARRAY_SIZE(pwm_config)
/** @} */
/**
* @name SPI configuration
* @{
*/
static const spi_conf_t spi_config[] = {
{
.dev = NRF_SPIM0,
.sclk = GPIO_PIN(0, 20),
.mosi = GPIO_PIN(0, 22),
.miso = GPIO_PIN(0, 24),
}
};
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/** @} */
#ifdef __cplusplus
}
#endif