Skip to content

Commit

Permalink
Merge pull request #20904 from maribu/boards/adafruit-grand-central-m…
Browse files Browse the repository at this point in the history
…4-express/spi-isp

boards/adafruit-grand-central-m4-express: provide arduino features
  • Loading branch information
maribu authored Oct 10, 2024
2 parents 3abfc81 + 7f68acb commit 0f4725e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions boards/adafruit-grand-central-m4-express/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions boards/adafruit-grand-central-m4-express/include/arduino_iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0f4725e

Please sign in to comment.