atsamd: Use enumerations for buses and reserve pins

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-03-31 23:37:17 -04:00
parent 7e8ecfe177
commit bc9fd03dab
9 changed files with 37 additions and 32 deletions

View File

@@ -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)