aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/samd51_clock.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-31 23:37:17 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-04-04 18:29:31 -0400
commitbc9fd03dabc38ae55fae3151e94cffe7157b95bd (patch)
treebee1984f5afd76e6c4d9e013d8984076dd90e422 /src/atsamd/samd51_clock.c
parent7e8ecfe177945e10a1e4adaac64c1d803e9405ff (diff)
downloadkutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.tar.gz
kutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.tar.xz
kutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.zip
atsamd: Use enumerations for buses and reserve pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/samd51_clock.c')
-rw-r--r--src/atsamd/samd51_clock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atsamd/samd51_clock.c b/src/atsamd/samd51_clock.c
index 040f29b7..1256ac5f 100644
--- a/src/atsamd/samd51_clock.c
+++ b/src/atsamd/samd51_clock.c
@@ -4,6 +4,7 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
+#include "command.h" // DECL_CONSTANT_STR
#include "compiler.h" // DIV_ROUND_CLOSEST
#include "internal.h" // enable_pclock
@@ -94,6 +95,10 @@ config_dfll(uint32_t dfllmul, uint32_t ctrlb)
;
}
+#if CONFIG_CLOCK_REF_X32K
+DECL_CONSTANT_STR("RESERVE_PINS_crystal", "PA0,PA1");
+#endif
+
// Initialize the clocks using an external 32K crystal
static void
clock_init_32k(void)