I am trying to use a c libary for an ethernet shield, but it is programmed for the ATMega644p, but I am using the ATMega2560. I am having some problems figuring out what ports i need to use instead.
The library can be seen here: Wiznet 5100 library
The specific place where I have problems is with this:
#define CS_DDR DDRD /* target-specific DDR for chip-select /
#define CS_PORT PORTD / target-specific port used as chip-select /
#define CS_BIT 2 / target-specific port line used as chip-select */
#define RESET_DDR DDRD /* target-specific DDR for reset /
#define RESET_PORT PORTD / target-specific port used for reset /
#define RESET_BIT 3 / target-specific port line used as reset */
I can't find anything in the documentation for the ATMega2560, I have tried everything. Please help.