/* Auto-generated config file peripheral_clk_config.h */ #ifndef PERIPHERAL_CLK_CONFIG_H #define PERIPHERAL_CLK_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> // ADC Clock Source // adc_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for ADC. #ifndef CONF_GCLK_ADC0_SRC #define CONF_GCLK_ADC0_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_ADC0_FREQUENCY * \brief ADC0's Clock frequency */ #ifndef CONF_GCLK_ADC0_FREQUENCY #define CONF_GCLK_ADC0_FREQUENCY 120000000 #endif // DAC Clock Source // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // dac_gclk_selection // Select the clock source for DAC. #ifndef CONF_GCLK_DAC_SRC #define CONF_GCLK_DAC_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_DAC_FREQUENCY * \brief DAC's Clock frequency */ #ifndef CONF_GCLK_DAC_FREQUENCY #define CONF_GCLK_DAC_FREQUENCY 120000000 #endif // EVSYS Channel 0 Clock Source // evsys_clk_selection_0 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 0. #ifndef CONF_GCLK_EVSYS_CHANNEL_0_SRC #define CONF_GCLK_EVSYS_CHANNEL_0_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_0_FREQUENCY 120000000.0 #endif // EVSYS Channel 1 Clock Source // evsys_clk_selection_1 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 1. #ifndef CONF_GCLK_EVSYS_CHANNEL_1_SRC #define CONF_GCLK_EVSYS_CHANNEL_1_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_1_FREQUENCY 120000000.0 #endif // EVSYS Channel 2 Clock Source // evsys_clk_selection_2 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 2. #ifndef CONF_GCLK_EVSYS_CHANNEL_2_SRC #define CONF_GCLK_EVSYS_CHANNEL_2_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_2_FREQUENCY 120000000.0 #endif // EVSYS Channel 3 Clock Source // evsys_clk_selection_3 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 3. #ifndef CONF_GCLK_EVSYS_CHANNEL_3_SRC #define CONF_GCLK_EVSYS_CHANNEL_3_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_3_FREQUENCY 120000000.0 #endif // EVSYS Channel 4 Clock Source // evsys_clk_selection_4 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 4. #ifndef CONF_GCLK_EVSYS_CHANNEL_4_SRC #define CONF_GCLK_EVSYS_CHANNEL_4_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_4_FREQUENCY 120000000.0 #endif // EVSYS Channel 5 Clock Source // evsys_clk_selection_5 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 5. #ifndef CONF_GCLK_EVSYS_CHANNEL_5_SRC #define CONF_GCLK_EVSYS_CHANNEL_5_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_5_FREQUENCY 120000000.0 #endif // EVSYS Channel 6 Clock Source // evsys_clk_selection_6 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 6. #ifndef CONF_GCLK_EVSYS_CHANNEL_6_SRC #define CONF_GCLK_EVSYS_CHANNEL_6_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_6_FREQUENCY 120000000.0 #endif // EVSYS Channel 7 Clock Source // evsys_clk_selection_7 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 7. #ifndef CONF_GCLK_EVSYS_CHANNEL_7_SRC #define CONF_GCLK_EVSYS_CHANNEL_7_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_7_FREQUENCY 120000000.0 #endif // EVSYS Channel 8 Clock Source // evsys_clk_selection_8 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 8. #ifndef CONF_GCLK_EVSYS_CHANNEL_8_SRC #define CONF_GCLK_EVSYS_CHANNEL_8_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_8_FREQUENCY 120000000.0 #endif // EVSYS Channel 9 Clock Source // evsys_clk_selection_9 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 9. #ifndef CONF_GCLK_EVSYS_CHANNEL_9_SRC #define CONF_GCLK_EVSYS_CHANNEL_9_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_9_FREQUENCY 120000000.0 #endif // EVSYS Channel 10 Clock Source // evsys_clk_selection_10 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 10. #ifndef CONF_GCLK_EVSYS_CHANNEL_10_SRC #define CONF_GCLK_EVSYS_CHANNEL_10_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_10_FREQUENCY 120000000.0 #endif // EVSYS Channel 11 Clock Source // evsys_clk_selection_11 // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for channel 11. #ifndef CONF_GCLK_EVSYS_CHANNEL_11_SRC #define CONF_GCLK_EVSYS_CHANNEL_11_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY * \brief EVSYS's Clock frequency */ #ifndef CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY #define CONF_GCLK_EVSYS_CHANNEL_11_FREQUENCY 120000000.0 #endif /** * \def CONF_CPU_FREQUENCY * \brief CPU's Clock frequency */ #ifndef CONF_CPU_FREQUENCY #define CONF_CPU_FREQUENCY 120000000 #endif // RTC Clock Source // rtc_clk_selection // RTC source // Select the clock source for RTC. #ifndef CONF_GCLK_RTC_SRC #define CONF_GCLK_RTC_SRC RTC_CLOCK_SOURCE #endif /** * \def CONF_GCLK_RTC_FREQUENCY * \brief RTC's Clock frequency */ #ifndef CONF_GCLK_RTC_FREQUENCY #define CONF_GCLK_RTC_FREQUENCY 1024 #endif // Core Clock Source // core_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for CORE. #ifndef CONF_GCLK_SERCOM0_CORE_SRC #define CONF_GCLK_SERCOM0_CORE_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif // Slow Clock Source // slow_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the slow clock source. #ifndef CONF_GCLK_SERCOM0_SLOW_SRC #define CONF_GCLK_SERCOM0_SLOW_SRC GCLK_PCHCTRL_GEN_GCLK3_Val #endif /** * \def CONF_GCLK_SERCOM0_CORE_FREQUENCY * \brief SERCOM0's Core Clock frequency */ #ifndef CONF_GCLK_SERCOM0_CORE_FREQUENCY #define CONF_GCLK_SERCOM0_CORE_FREQUENCY 12000000 #endif /** * \def CONF_GCLK_SERCOM0_SLOW_FREQUENCY * \brief SERCOM0's Slow Clock frequency */ #ifndef CONF_GCLK_SERCOM0_SLOW_FREQUENCY #define CONF_GCLK_SERCOM0_SLOW_FREQUENCY 32768 #endif // Core Clock Source // core_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for CORE. #ifndef CONF_GCLK_SERCOM0_CORE_SRC #define CONF_GCLK_SERCOM0_CORE_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif // Slow Clock Source // slow_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the slow clock source. #ifndef CONF_GCLK_SERCOM0_SLOW_SRC #define CONF_GCLK_SERCOM0_SLOW_SRC GCLK_PCHCTRL_GEN_GCLK3_Val #endif /** * \def CONF_GCLK_SERCOM0_CORE_FREQUENCY * \brief SERCOM0's Core Clock frequency */ #ifndef CONF_GCLK_SERCOM0_CORE_FREQUENCY #define CONF_GCLK_SERCOM0_CORE_FREQUENCY 12000000 #endif /** * \def CONF_GCLK_SERCOM0_SLOW_FREQUENCY * \brief SERCOM0's Slow Clock frequency */ #ifndef CONF_GCLK_SERCOM0_SLOW_FREQUENCY #define CONF_GCLK_SERCOM0_SLOW_FREQUENCY 32768 #endif // Core Clock Source // core_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for CORE. #ifndef CONF_GCLK_SERCOM1_CORE_SRC #define CONF_GCLK_SERCOM1_CORE_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif // Slow Clock Source // slow_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the slow clock source. #ifndef CONF_GCLK_SERCOM1_SLOW_SRC #define CONF_GCLK_SERCOM1_SLOW_SRC GCLK_PCHCTRL_GEN_GCLK3_Val #endif /** * \def CONF_GCLK_SERCOM1_CORE_FREQUENCY * \brief SERCOM1's Core Clock frequency */ #ifndef CONF_GCLK_SERCOM1_CORE_FREQUENCY #define CONF_GCLK_SERCOM1_CORE_FREQUENCY 12000000 #endif /** * \def CONF_GCLK_SERCOM1_SLOW_FREQUENCY * \brief SERCOM1's Slow Clock frequency */ #ifndef CONF_GCLK_SERCOM1_SLOW_FREQUENCY #define CONF_GCLK_SERCOM1_SLOW_FREQUENCY 32768 #endif // TC Clock Source // tc_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for TC. #ifndef CONF_GCLK_TC0_SRC #define CONF_GCLK_TC0_SRC GCLK_PCHCTRL_GEN_GCLK0_Val #endif /** * \def CONF_GCLK_TC0_FREQUENCY * \brief TC0's Clock frequency */ #ifndef CONF_GCLK_TC0_FREQUENCY #define CONF_GCLK_TC0_FREQUENCY 12000000 #endif // USB Clock Source // usb_gclk_selection // Generic clock generator 0 // Generic clock generator 1 // Generic clock generator 2 // Generic clock generator 3 // Generic clock generator 4 // Generic clock generator 5 // Generic clock generator 6 // Generic clock generator 7 // Generic clock generator 8 // Generic clock generator 9 // Generic clock generator 10 // Generic clock generator 11 // Select the clock source for USB. #ifndef CONF_GCLK_USB_SRC #define CONF_GCLK_USB_SRC GCLK_PCHCTRL_GEN_GCLK1_Val #endif /** * \def CONF_GCLK_USB_FREQUENCY * \brief USB's Clock frequency */ #ifndef CONF_GCLK_USB_FREQUENCY #define CONF_GCLK_USB_FREQUENCY 48000000 #endif // <<< end of configuration section >>> #endif // PERIPHERAL_CLK_CONFIG_H