summaryrefslogtreecommitdiffstats
path: root/hal/pin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hal/pin.hpp')
-rw-r--r--hal/pin.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/hal/pin.hpp b/hal/pin.hpp
new file mode 100644
index 0000000..9df22d4
--- /dev/null
+++ b/hal/pin.hpp
@@ -0,0 +1,23 @@
+/*
+ * File: pin.hpp
+ * Author: naopross
+ *
+ * Created on May 3, 2018, 8:02 PM
+ */
+
+#ifndef PIN_HPP
+#define PIN_HPP
+
+template<typename reg, unsigned bit>
+class pin {
+public:
+ pin(reg *r);
+ virtual ~pin();
+
+ void set(bool v);
+
+private:
+ reg *_register;
+};
+
+#endif /* PIN_HPP */ \ No newline at end of file