summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/lora32u4ii/driver/spi.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch/lora32u4ii/driver/spi.cc b/src/arch/lora32u4ii/driver/spi.cc
index 5c782c8..c2cad08 100644
--- a/src/arch/lora32u4ii/driver/spi.cc
+++ b/src/arch/lora32u4ii/driver/spi.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2021 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/spi.h"
#include "driver/gpio.h"
#include "arch.h"
@@ -11,7 +16,7 @@ signed char SPI::setup()
// Configure SCK and MOSI as output
DDRB |= _BV(PB2) | _BV(PB1);
// up to 2 MHz SPI clock
- SPCR = _BV(SPE) | _BV(MSTR) | _BV(SPR0);
+ SPCR = _BV(SPE) | _BV(MSTR);
}
signed char SPI::xmit(