GPS driver implemented

This commit is contained in:
Mark Qvist 2019-02-04 17:02:19 +01:00
parent 07b589fe3f
commit 4827565bc8
10 changed files with 634 additions and 113 deletions

View file

@ -2,8 +2,10 @@
#include "hardware/Bluetooth.h"
void usrio_init(void) {
USR_IO_DDR |= _BV(USR_IO_1) | _BV(USR_IO_2);
// TODO: Add BT module detect and set up other pins accordingly
USR_IO_DDR |= _BV(USR_IO_1) | _BV(USR_IO_2);
if (!bluetooth_enabled()) {
USR_IO_DDR |= _BV(USR_IO_3) | _BV(USR_IO_4);
}
}
bool usrio_1(void) {