From 6f662e9bbccff23069bca9594565686bf9064052 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 20 Nov 2017 21:30:43 -0500 Subject: [PATCH] samd51 peripheral clocks were defined as 12MHz, but were really 120MHz --- .../asf4_conf/samd51/peripheral_clk_config.h | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h b/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h index 09744f279b..830f0e83b5 100644 --- a/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h @@ -41,7 +41,7 @@ * \brief ADC0's Clock frequency */ #ifndef CONF_GCLK_ADC0_FREQUENCY -#define CONF_GCLK_ADC0_FREQUENCY 12000000 +#define CONF_GCLK_ADC0_FREQUENCY 120000000 #endif // DAC Clock Source @@ -81,7 +81,7 @@ * \brief DAC's Clock frequency */ #ifndef CONF_GCLK_DAC_FREQUENCY -#define CONF_GCLK_DAC_FREQUENCY 12000000 +#define CONF_GCLK_DAC_FREQUENCY 120000000 #endif // EVSYS Channel 0 Clock Source @@ -122,7 +122,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY 120000000.0 #endif // EVSYS Channel 1 Clock Source @@ -163,7 +163,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY 120000000.0 #endif // EVSYS Channel 2 Clock Source @@ -204,7 +204,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY 120000000.0 #endif // EVSYS Channel 3 Clock Source @@ -245,7 +245,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY 120000000.0 #endif // EVSYS Channel 4 Clock Source @@ -286,7 +286,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY 120000000.0 #endif // EVSYS Channel 5 Clock Source @@ -327,7 +327,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY 120000000.0 #endif // EVSYS Channel 6 Clock Source @@ -368,7 +368,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY 120000000.0 #endif // EVSYS Channel 7 Clock Source @@ -409,7 +409,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY 120000000.0 #endif // EVSYS Channel 8 Clock Source @@ -450,7 +450,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY 120000000.0 #endif // EVSYS Channel 9 Clock Source @@ -491,7 +491,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY 120000000.0 #endif // EVSYS Channel 10 Clock Source @@ -532,7 +532,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY 120000000.0 #endif // EVSYS Channel 11 Clock Source @@ -573,7 +573,7 @@ */ #ifndef CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY -#define CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY 12000000.0 +#define CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY 120000000.0 #endif /** @@ -581,7 +581,7 @@ * \brief CPU's Clock frequency */ #ifndef CONF_CPU_FREQUENCY -#define CONF_CPU_FREQUENCY 12000000 +#define CONF_CPU_FREQUENCY 120000000 #endif // RTC Clock Source @@ -877,7 +877,7 @@ * \brief TC0's Clock frequency */ #ifndef CONF_GCLK_TC0_FREQUENCY -#define CONF_GCLK_TC0_FREQUENCY 12000000 +#define CONF_GCLK_TC0_FREQUENCY 120000000 #endif // USB Clock Source