summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp
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/msp430fr5969lp
parent044ff708d979cb5c17c1b2e0dafb6be0ccecab43 (diff)
use inline functions for most gpio
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r--src/arch/msp430fr5969lp/driver/gpio.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/arch/msp430fr5969lp/driver/gpio.cc b/src/arch/msp430fr5969lp/driver/gpio.cc
index e1179af..1403aed 100644
--- a/src/arch/msp430fr5969lp/driver/gpio.cc
+++ b/src/arch/msp430fr5969lp/driver/gpio.cc
@@ -1,43 +1,3 @@
#include "driver/gpio.h"
-#include <msp430.h>
-
-void GPIO::setup()
-{
- P1OUT = 0;
- P2OUT = 0;
- P3OUT = 0;
- P4OUT = 0;
- P1DIR = BIT0;
- P2DIR = 0;
- P3DIR = 0;
- P4DIR = BIT6;
-}
-
-void GPIO::led_on(unsigned char id)
-{
- if (id == 0) {
- P1OUT |= BIT0;
- } else {
- P4OUT |= BIT6;
- }
-}
-
-void GPIO::led_off(unsigned char id)
-{
- if (id == 0) {
- P1OUT &= ~BIT0;
- } else {
- P4OUT &= ~BIT6;
- }
-}
-
-void GPIO::led_toggle(unsigned char id)
-{
- if (id == 0) {
- P1OUT ^= BIT0;
- } else {
- P4OUT ^= BIT6;
- }
-}
GPIO gpio;