mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20904 from maribu/boards/adafruit-grand-central-m4-express/spi-isp
boards/adafruit-grand-central-m4-express: provide arduino features
This commit is contained in:
commit
0f4725e3a8
@ -17,4 +17,8 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# other board features
|
||||
FEATURES_PROVIDED += arduino_analog
|
||||
FEATURES_PROVIDED += arduino_pins
|
||||
FEATURES_PROVIDED += arduino_shield_isp
|
||||
FEATURES_PROVIDED += arduino_shield_mega
|
||||
FEATURES_PROVIDED += arduino_shield_uno
|
||||
FEATURES_PROVIDED += arduino_spi
|
||||
FEATURES_PROVIDED += sdcard_spi
|
||||
|
@ -85,6 +85,16 @@ extern "C" {
|
||||
#define ARDUINO_ANALOG_PIN_LAST 5
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Arduino's default SPI device
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief SPI_DEV(0) is connected to the ISP header *AND* the SD card reader
|
||||
*/
|
||||
#define ARDUINO_SPI_ISP SPI_DEV(0)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -204,7 +204,7 @@ static const tc32_conf_t timer_config[] = {
|
||||
* @{
|
||||
*/
|
||||
static const spi_conf_t spi_config[] = {
|
||||
{ /* SPI on XIO connector */
|
||||
{ /* SPI on XIO connector *AND* SPI on ISP */
|
||||
.dev = &(SERCOM7->SPI),
|
||||
.miso_pin = GPIO_PIN(PD, 11), /* D50 MISO */
|
||||
.mosi_pin = GPIO_PIN(PD, 8), /* D51 MOSI */
|
||||
|
Loading…
Reference in New Issue
Block a user