Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/adafruit-grand-central-m4-express: provide arduino features #20904

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading