The problem now is that i dont have any idea of what to do about those defined. basicly it would be possible to follow the reference, but i guess i would screw too much up if i follow it without doing it right.. The problem is just that i cannot think of how to link the info of the picture (the sd card pin names) with the ones in the define..
The definitions are addressing the port directly, there is no need to do this. Just follow the diagrams so that pin 10 is connected to CS so you define that as:-
int CS = 10;
int DI = 11;
pinMode(CS,OUTPUT);
pinMode(DI,INPUT);
This line:- #define configure_pin_mosi() DDRB |= (1 << DDB3)
is saying that the pin mosi (serial in) is in data port B at a bit position given by the variable DDB3, which probably equates to bit 3. So port B bit 3 is the serial in pin labeled DI (data in) on the diagram.
Similarly CS is chip select which is select card in the definitions. DO is data out or miso.
But as you say:-
that the diagram is not related to the Library
So I don't know why you want to know how they are related?
ok, thanks for that description.. i think i begin to get it. Their relation is just that the figure shows how an SD card is connected to an arduino, yet the #defines are from a library which is not using the same pins (although i begin to think it does.. strange).
Anyway, the description you gave has given me a small idea of what the related, yet uncorrelated descriptions might mean so i can rebuild it.