diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-12-14 16:55:23 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-12-14 16:55:23 +0000 |
commit | ae9bcfb090b416adc183e17e92f3f4c91c5988df (patch) | |
tree | 53123830419c20beb24de7f4ffafc48fef34c2f3 /libraries/Ethernet/utility/spi.h | |
parent | 1e421dd3933f40e87d859739634d97ff12986340 (diff) |
Fixing bug that made the Ethernet library interfere with pins 8 and 9.
Adding a delay(1) to the WebServer example to work with browsers.
Removing duplicate Print files from Ethernet library.
Diffstat (limited to 'libraries/Ethernet/utility/spi.h')
-rwxr-xr-x | libraries/Ethernet/utility/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/Ethernet/utility/spi.h b/libraries/Ethernet/utility/spi.h index 0bb30ba..000705d 100755 --- a/libraries/Ethernet/utility/spi.h +++ b/libraries/Ethernet/utility/spi.h @@ -37,7 +37,7 @@ // PB4(MISO), PB3(MOSI), PB5(SCK), PB2(/SS) // CS=1, waiting for SPI start // SPI mode 0, 4MHz
#define SPI0_Init() DDRB |= SPI0_SS_BIT|SPI0_SCLK_BIT|SPI0_MOSI_BIT;\
- PORTB = SPI0_SS_BIT;\
+ PORTB |= SPI0_SS_BIT; PORTB &= ~(SPI0_SCLK_BIT|SPI0_MOSI_BIT);\
SPCR = 0x50
//-----------------------------------------------------------------------------
|