Unverified Commit 521a5fce authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

lora32u4ii spi: go back to 2MHz

parent c59f87f5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
/*
 * 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(