Hello everyone! I have an arduino mega(atmega2560)+ ethernet shield+sd card http://www.arduino.cc/en/Main/ArduinoEthernetShield
To make the lib sd_raw work on my mega i added the following lines
in sd_raw_config.h where is checking for platform definitions.
#elif defined(__AVR_ATmega2560__)
#define configure_pin_mosi() DDRB |= (1 << DDB2)
#define configure_pin_sck() DDRB |= (1 << DDB1)
#define configure_pin_ss() DDRB |= (1 << DDB0 )
#define configure_pin_miso() DDRB &= ~(1 << DDB3)
#define select_card() PORTB &= ~(1 << PB0)
#define unselect_card() PORTB |= (1 << PB0)
without this i get error
#error "no sd/mmc pin mapping available!"
i hope that help arduino atmega2560 users