summaryrefslogtreecommitdiffstats
path: root/hal/pin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hal/pin.hpp')
-rw-r--r--hal/pin.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/hal/pin.hpp b/hal/pin.hpp
index 384c0c7..ff131ef 100644
--- a/hal/pin.hpp
+++ b/hal/pin.hpp
@@ -8,6 +8,11 @@
#ifndef PIN_HPP
#define PIN_HPP
+extern "C" {
+#include <xc.h>
+}
+
+
template<unsigned bit>
class pin {
public: