boards/arduino-atmega-common/include/periph_conf.h File Reference

Common configuration of MCU periphery for Arduino Atmega boards. More...

Detailed Description

Go to the source code of this file.

Macros

Clock configuration
#define CLOCK_CORECLOCK   (16000000L)
 
SPI configuration

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 */