boards/nrf52dk: 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
f1c25b7c5c
commit
c822f48789
@ -28,6 +28,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name SPI configuration
|
||||
* @{
|
||||
*/
|
||||
static const spi_conf_t spi_config[] = {
|
||||
{
|
||||
.dev = NRF_SPI0,
|
||||
.sclk = GPIO_PIN(0, 25),
|
||||
.mosi = GPIO_PIN(0, 23),
|
||||
.miso = GPIO_PIN(0, 24),
|
||||
}
|
||||
};
|
||||
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
* @{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user