summaryrefslogtreecommitdiff
path: root/include/arch/posix/driver/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/posix/driver/gpio.h')
-rw-r--r--include/arch/posix/driver/gpio.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/arch/posix/driver/gpio.h b/include/arch/posix/driver/gpio.h
new file mode 100644
index 0000000..0995729
--- /dev/null
+++ b/include/arch/posix/driver/gpio.h
@@ -0,0 +1,19 @@
+#ifndef GPIO_H
+#define GPIO_H
+
+class GPIO {
+ private:
+ GPIO(const GPIO &copy);
+ unsigned char ledstate;
+
+ public:
+ GPIO () : ledstate(0) {}
+ void setup() {}
+ void led_on(unsigned char id);
+ void led_off(unsigned char id);
+ void led_toggle(unsigned char id);
+};
+
+extern GPIO gpio;
+
+#endif