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:
parent
c822f48789
commit
04b7ab16c0
@ -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
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user