summaryrefslogtreecommitdiff
path: root/src/arch/arduino-nano
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-01-11 08:55:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-01-11 08:55:15 +0100
commit85e11a1a460f08f1791a03a6bb95c976b7117ab8 (patch)
treede254068771592db8da8c06d641e9f09094efabe /src/arch/arduino-nano
parent044ff708d979cb5c17c1b2e0dafb6be0ccecab43 (diff)
use inline functions for most gpio
Diffstat (limited to 'src/arch/arduino-nano')
-rw-r--r--src/arch/arduino-nano/driver/gpio.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/arch/arduino-nano/driver/gpio.cc b/src/arch/arduino-nano/driver/gpio.cc
index 66e24db..b1f9c63 100644
--- a/src/arch/arduino-nano/driver/gpio.cc
+++ b/src/arch/arduino-nano/driver/gpio.cc
@@ -1,24 +1,4 @@
#include "driver/gpio.h"
#include <avr/io.h>
-void GPIO::setup()
-{
- DDRB = _BV(PB5);
-}
-
-void GPIO::led_on(unsigned char id)
-{
- PORTB |= _BV(PB5);
-}
-
-void GPIO::led_off(unsigned char id)
-{
- PORTB &= ~_BV(PB5);
-}
-
-void GPIO::led_toggle(unsigned char id)
-{
- PINB = _BV(PB5);
-}
-
GPIO gpio;