aboutsummaryrefslogtreecommitdiffstats
path: root/sw/main.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-10-24 07:32:22 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-10-24 07:32:22 +0200
commitf3a56d229e2c3d333d53b9e31d5ca49afc3a11fe (patch)
tree666a86d8beb9e61bcfc23db7b82dff90698a4671 /sw/main.cpp
parent34ae543f410b1a2ccfdefb3e5942b2e4e8a13b05 (diff)
downloadglutte-batteries-f3a56d229e2c3d333d53b9e31d5ca49afc3a11fe.tar.gz
glutte-batteries-f3a56d229e2c3d333d53b9e31d5ca49afc3a11fe.tar.bz2
glutte-batteries-f3a56d229e2c3d333d53b9e31d5ca49afc3a11fe.zip
Pull in some Arduino code so that libraries are easier to use
Diffstat (limited to 'sw/main.cpp')
-rw-r--r--sw/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/main.cpp b/sw/main.cpp
index 712adc0..e849dea 100644
--- a/sw/main.cpp
+++ b/sw/main.cpp
@@ -33,6 +33,8 @@
#include <avr/eeprom.h>
#include <avr/wdt.h>
+#include "SPI.h"
+
extern "C" {
#include "uart.h"
}
@@ -210,6 +212,8 @@ int main()
DDRC = PINC_OUTPUTS;
DDRD = PIND_OUTPUTS;
+ SPI.begin();
+
// Warning: Bi-stable relays are still in unknown state!
/* Setup UART */