Rev 730 | Rev 1003 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 730 | Rev 932 | ||
|---|---|---|---|
| Line 94... | Line 94... | ||
| 94 | 94 | ||
| 95 | /*----------------------------------------------------------------------------- |
95 | /*----------------------------------------------------------------------------- |
| 96 | * Main Program |
96 | * Main Program |
| 97 | *---------------------------------------------------------------------------*/ |
97 | *---------------------------------------------------------------------------*/ |
| 98 | int main(void) { |
98 | int main(void) { |
| - | 99 | ||
| - | 100 | #if MCP_CS_BIT != PB2 |
|
| - | 101 | /* If slave select is not set as output it might change SPI hw to slave |
|
| - | 102 | * See ch 18.3.2 (18.3 SS Pin Functionality) in ATmega48/88/168-datasheet */ |
|
| - | 103 | DDRB |= (1<<PB2); |
|
| - | 104 | #endif |
|
| - | 105 | ||
| 99 | 106 | ||
| 100 | //ethernet vars |
107 | //ethernet vars |
| 101 | uint16_t plen = 0; |
108 | uint16_t plen = 0; |
| 102 | uint8_t payloadlen=0; |
109 | uint8_t payloadlen=0; |
| 103 | buffpoint = 0; |
110 | buffpoint = 0; |