Rev 554 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 554 | Rev 557 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | // SPI-Schnittstelle initialisieren |
29 | // SPI-Schnittstelle initialisieren |
30 | SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
30 | SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
Line 31... | Line 31... | ||
31 | 31 | ||
Line -... | Line 32... | ||
- | 32 | DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
|
- | 33 | ||
- | 34 | if(PlatinenVersion == 10) |
|
32 | DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
35 | { |
- | 36 | DDRD |= (1<<PD3); // PD3 als Ausgang |
|
- | 37 | PORTD &= ~(1<<PD3); // J5 permanent auf Low |
|
- | 38 | } |
|
- | 39 | else |
|
- | 40 | { |
|
- | 41 | DDRC |= (1<<PC6); // PC6 als Ausgang |
|
Line 33... | Line 42... | ||
33 | 42 | PORTC &= ~(1<<PC6); // J9 permanent auf Low |
|
34 | PORTD &= ~(1<<PD3); // J5 permanent auf Low |
43 | } |
35 | 44 |