aboutsummaryrefslogtreecommitdiffstats
path: root/src/samd21/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/samd21/internal.h')
-rw-r--r--src/samd21/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/samd21/internal.h b/src/samd21/internal.h
new file mode 100644
index 00000000..34c74815
--- /dev/null
+++ b/src/samd21/internal.h
@@ -0,0 +1,10 @@
+#ifndef __SAMD21_INTERNAL_H
+#define __SAMD21_INTERNAL_H
+// Local definitions for samd21 code
+
+#include <stdint.h> // uint32_t
+
+void enable_pclock(uint32_t clock_id, uint32_t pmask);
+void gpio_peripheral(char bank, uint32_t bit, char ptype, uint32_t pull_up);
+
+#endif // internal.h