mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-24 09:51:54 +02:00
Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init() is called.
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
static inline void SPI_Init(const uint8_t SPIOptions)
|
||||
{
|
||||
DDRB |= ((1 << 1) | (1 << 2));
|
||||
DDRB &= ((1 << 0) | (1 << 3));
|
||||
PORTB |= ((1 << 0) | (1 << 3));
|
||||
|
||||
SPCR = ((1 << SPE) | SPIOptions);
|
||||
|
||||
Reference in New Issue
Block a user