summaryrefslogtreecommitdiff
path: root/include/esp8266/driver/gpio.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-07-17 09:57:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-07-17 09:57:10 +0200
commit3fddb519f01ca53f1fd6f5c24e154912b25d1138 (patch)
tree62efb5ea5431f543f0ea899aa809e262e47980ba /include/esp8266/driver/gpio.h
parent658ca283452c5944c55d9c751868eef6c6f34138 (diff)
Move include/$arch to include/arch/$arch to be consistent with src/ hierarchy
Diffstat (limited to 'include/esp8266/driver/gpio.h')
-rw-r--r--include/esp8266/driver/gpio.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/esp8266/driver/gpio.h b/include/esp8266/driver/gpio.h
deleted file mode 100644
index 3db5d9d..0000000
--- a/include/esp8266/driver/gpio.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef GPIO_H
-#define GPIO_H
-
-class GPIO {
- private:
- GPIO(const GPIO &copy);
-
- public:
- GPIO () {}
-
- enum Pin : unsigned char {
- d3 = 0, tx, d4, rx, d2, d1,
- d6 = 12, d7, d5, d8,
- d0 = 16
- };
-
- void setup();
- void led_on(unsigned char id);
- void led_off(unsigned char id);
- void led_toggle(unsigned char id);
- void input(unsigned char const pin);
- void input(unsigned char const pin, bool pullup);
- void output(unsigned char const pin);
- unsigned char read(unsigned char const pin);
- void write(unsigned char const pin, unsigned char value);
-};
-
-extern GPIO gpio;
-
-#endif