boards/arduino-nano-33-iot: extend SPI configuration
This commit is contained in:
parent
068f029cc8
commit
1cc02aef2f
@ -139,7 +139,6 @@ static const uart_conf_t uart_config[] = {
|
|||||||
#define UART_NUMOF ARRAY_SIZE(uart_config)
|
#define UART_NUMOF ARRAY_SIZE(uart_config)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
@ -241,6 +240,18 @@ static const spi_conf_t spi_config[] = {
|
|||||||
.mosi_pad = SPI_PAD_MOSI_0_SCK_3,
|
.mosi_pad = SPI_PAD_MOSI_0_SCK_3,
|
||||||
.gclk_src = SAM0_GCLK_MAIN,
|
.gclk_src = SAM0_GCLK_MAIN,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.dev = &SERCOM3->SPI,
|
||||||
|
.miso_pin = GPIO_PIN(PA, 19),
|
||||||
|
.mosi_pin = GPIO_PIN(PA, 16),
|
||||||
|
.clk_pin = GPIO_PIN(PA, 17),
|
||||||
|
.miso_mux = GPIO_MUX_D,
|
||||||
|
.mosi_mux = GPIO_MUX_D,
|
||||||
|
.clk_mux = GPIO_MUX_D,
|
||||||
|
.miso_pad = SPI_PAD_MISO_3,
|
||||||
|
.mosi_pad = SPI_PAD_MOSI_0_SCK_1,
|
||||||
|
.gclk_src = SAM0_GCLK_MAIN,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SPI_NUMOF ARRAY_SIZE(spi_config)
|
#define SPI_NUMOF ARRAY_SIZE(spi_config)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user