aboutsummaryrefslogtreecommitdiffstats
path: root/src/samd21/internal.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-27 19:22:44 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-08-07 00:03:18 -0400
commit74cf4dc9e0fa129b315b398d8e70e4df20b26aea (patch)
tree6cb71cb9d79135bd1f850285bf3721e1f89022e2 /src/samd21/internal.h
parent71db5fbe316feb863b5c67bb7f9bb928c0decbe2 (diff)
downloadkutter-74cf4dc9e0fa129b315b398d8e70e4df20b26aea.tar.gz
kutter-74cf4dc9e0fa129b315b398d8e70e4df20b26aea.tar.xz
kutter-74cf4dc9e0fa129b315b398d8e70e4df20b26aea.zip
samd21: Initial support for SAMD21 micro-controllers
Add initial support for the Atmel SAMD21 micro-controllers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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