From 85e11a1a460f08f1791a03a6bb95c976b7117ab8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 11 Jan 2018 08:55:15 +0100 Subject: use inline functions for most gpio --- src/arch/arduino-nano/driver/gpio.cc | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/arch/arduino-nano/driver/gpio.cc') 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 -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; -- cgit v1.2.3