;---------------------------------------------------------------------------;
; MMC hardware controls and Flash controls (C)ChaN, 2010
;---------------------------------------------------------------------------;
; Hardware dependent macros to be modified
//sparkfun microsd
//#define DDR_CS _SFR_IO_ADDR(DDRB), 0 // MMC CS pin (DDR, PORT)
//#define PORT_CS _SFR_IO_ADDR(PORTB), 0
// i2GPS
//#define DDR_CS _SFR_IO_ADDR(DDRB), 2 // MMC CS pin (DDR, PORT)
//#define PORT_CS _SFR_IO_ADDR(PORTB), 2
// Arduino Ethernet
#define DDR_CS _SFR_IO_ADDR(DDRB), 0 // MMC CS pin (DDR, PORT)
#define PORT_CS _SFR_IO_ADDR(PORTB), 0
#define DDR_CK _SFR_IO_ADDR(DDRB), 1 // MMC SCLK pin (DDR, PORT)
#define PORT_CK _SFR_IO_ADDR(PORTB), 1
#define DDR_DI _SFR_IO_ADDR(DDRB), 2 // MMC DI pin (DDR, PORT)
#define PORT_DI _SFR_IO_ADDR(PORTB), 2
#define PIN_DO _SFR_IO_ADDR(PINB), 3 // MMC DO pin (PIN, PORT)
#define PORT_DO _SFR_IO_ADDR(PORTB), 3
I'm trying to get a bootloader to read my SD card and i have it attached to pins 50-53 but bootloader is not working correctly and i have been told to make sure the pins are correct in this bootloader file.
What pins is it using for the SPI ?