summaryrefslogtreecommitdiff
path: root/include/arch/lora32u4ii/driver
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-09-22 22:36:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-09-22 22:36:11 +0200
commitd79ef3a1a1e85bb411a7458367c988f51e31e48f (patch)
treeca8c4b564d0fb31070c6818c146d4c1a65cd932a /include/arch/lora32u4ii/driver
parent521a5fce744d89d2eee010c4d8f6bbf525b07de7 (diff)
lora32u4ii: User LED is PC7, not PB5
Diffstat (limited to 'include/arch/lora32u4ii/driver')
-rw-r--r--include/arch/lora32u4ii/driver/gpio.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/arch/lora32u4ii/driver/gpio.h b/include/arch/lora32u4ii/driver/gpio.h
index 61dc867..8bbaa40 100644
--- a/include/arch/lora32u4ii/driver/gpio.h
+++ b/include/arch/lora32u4ii/driver/gpio.h
@@ -1,5 +1,4 @@
-#ifndef GPIO_H
-#define GPIO_H
+#pragma once
#include <avr/io.h>
@@ -48,8 +47,7 @@ class GPIO {
};
inline void setup() {
- // PB5 is both output (user LED) and input (Vbat/2 to ADC).
- // Leave it as input by default.
+ DDRC |= _BV(PC7);
}
inline volatile uint8_t * pinToPort(uint8_t pin) {
if (pin <= pb7) {
@@ -201,5 +199,3 @@ class GPIO {
};
extern GPIO gpio;
-
-#endif