Common configuration of MCU periphery for Arduino Atmega boards. More...
Definition in file boards/arduino-atmega-common/include/periph_conf.h.
The atmega2560 has only one hardware SPI with fixed pin configuration, so all we can do here, is to enable or disable it...
The fixed pins for arduino uno and duemilanove are: MOSI - PB3 (Arduino pin 11) MISO - PB4 (Arduino pin 12) SCK - PB5 (Arduino pin 13) SS - PB2 (Arduino pin 10) -> this pin is configured as output, but not used
The fixed pins for arduino mega2560 are: MOSI - PB2 (Arduino pin 51) MISO - PB3 (Arduino pin 50) SCK - PB1 (Arduino pin 52) SS - PB0 (Arduino pin 53) -> this pin is configured as output, but not used
|#define||SPI_NUMOF 1 /* set to 0 to disable SPI */|