From bc9fd03dabc38ae55fae3151e94cffe7157b95bd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 31 Mar 2019 23:37:17 -0400 Subject: atsamd: Use enumerations for buses and reserve pins Signed-off-by: Kevin O'Connor --- src/atsamd/clock.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/atsamd/clock.c') diff --git a/src/atsamd/clock.c b/src/atsamd/clock.c index 1a97fe52..a60fc1eb 100644 --- a/src/atsamd/clock.c +++ b/src/atsamd/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 @@ -48,6 +49,10 @@ get_pclock_frequency(uint32_t pclk_id) return FREQ_MAIN; } +#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) -- cgit v1.2.3-70-g09d2