Commit 5517f96e authored by Dean Camera's avatar Dean Camera
Browse files

Oops - fix broken SPI driver due to missing bit inversion on a port mask.

parent bd337ace
......@@ -121,9 +121,9 @@
*/
static inline void SPI_Init(const uint8_t SPIOptions)
{
DDRB |= ((1 << 1) | (1 << 2));
DDRB &= ((1 << 0) | (1 << 3));
PORTB |= ((1 << 0) | (1 << 3));
DDRB |= ((1 << 1) | (1 << 2));
DDRB &= ~((1 << 0) | (1 << 3));
PORTB |= ((1 << 0) | (1 << 3));
SPCR = ((1 << SPE) | SPIOptions);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment