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

boards/nrf52840dk: Arduino-compatible SPI config

Added a SPI config that allows using Arduino-Shields that use SPI via the
Arduino-ICSP header
This commit is contained in:
Marian Buschsieweke 2019-04-10 16:43:27 +02:00
parent c822f48789
commit 04b7ab16c0
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -26,6 +26,21 @@
extern "C" {
#endif
/**
* @name SPI configuration
* @{
*/
static const spi_conf_t spi_config[] = {
{
.dev = NRF_SPI0,
.sclk = GPIO_PIN(1, 15),
.mosi = GPIO_PIN(1, 13),
.miso = GPIO_PIN(1, 14),
}
};
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
/** @} */
/**
* @name UART configuration
* @{