/* Auto-generated config file hpl_pmc_config.h */ #ifndef HPL_PMC_CONFIG_H #define HPL_PMC_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> #include #define CLK_SRC_OPTION_OSC32K 0 #define CLK_SRC_OPTION_XOSC32K 1 #define CLK_SRC_OPTION_OSC12M 2 #define CLK_SRC_OPTION_XOSC20M 3 #define CLK_SRC_OPTION_SLCK 0 #define CLK_SRC_OPTION_MAINCK 1 #define CLK_SRC_OPTION_PLLACK 2 #define CLK_SRC_OPTION_UPLLCKDIV 3 #define CLK_SRC_OPTION_MCK 4 #define CLK_SRC_OPTION_UPLLCK 3 #define CONF_RC_4M 0 #define CONF_RC_8M 1 #define CONF_RC_12M 2 #define CONF_XOSC32K_NO_BYPASS 0 #define CONF_XOSC32K_BYPASS 1 #define CONF_XOSC20M_NO_BYPASS 0 #define CONF_XOSC20M_BYPASS 1 // Clock_SLCK configuration // Indicates whether SLCK configuration is enabled or not // enable_clk_gen_slck #ifndef CONF_CLK_SLCK_CONFIG #define CONF_CLK_SLCK_CONFIG 1 #endif // Clock Generator // clock generator SLCK source // 32kHz High Accuracy Internal Oscillator (OSC32K) // 32kHz External Crystal Oscillator (XOSC32K) // This defines the clock source for SLCK // clk_gen_slck_oscillator #ifndef CONF_CLK_GEN_SLCK_SRC #define CONF_CLK_GEN_SLCK_SRC CLK_SRC_OPTION_OSC32K #endif // Enable Clock_SLCK // Indicates whether SLCK is enabled or disable // clk_gen_slck_arch_enable #ifndef CONF_CLK_SLCK_ENABLE #define CONF_CLK_SLCK_ENABLE 1 #endif // // // // // Clock_MAINCK configuration // Indicates whether MAINCK configuration is enabled or not // enable_clk_gen_mainck #ifndef CONF_CLK_MAINCK_CONFIG #define CONF_CLK_MAINCK_CONFIG 1 #endif // Clock Generator // clock generator MAINCK source // Embedded 4/8/12MHz RC Oscillator (OSC12M) // External 3-20MHz Oscillator (XOSC20M) // This defines the clock source for MAINCK // clk_gen_mainck_oscillator #ifndef CONF_CLK_GEN_MAINCK_SRC #define CONF_CLK_GEN_MAINCK_SRC CLK_SRC_OPTION_XOSC20M #endif // Enable Clock_MAINCK // Indicates whether MAINCK is enabled or disable // clk_gen_mainck_arch_enable #ifndef CONF_CLK_MAINCK_ENABLE #define CONF_CLK_MAINCK_ENABLE 1 #endif // Enable Main Clock Failure Detection // Indicates whether Main Clock Failure Detection is enabled or disable. // The 4/8/12 MHz RC oscillator must be selected as the source of MAINCK. // clk_gen_cfden_enable #ifndef CONF_CLK_CFDEN_ENABLE #define CONF_CLK_CFDEN_ENABLE 0 #endif // // // // // Clock_MCKR configuration // Indicates whether MCKR configuration is enabled or not // enable_clk_gen_mckr #ifndef CONF_CLK_MCKR_CONFIG #define CONF_CLK_MCKR_CONFIG 1 #endif // Clock Generator // clock generator MCKR source // Slow Clock (SLCK) // Main Clock (MAINCK) // PLLA Clock (PLLACK) // UDPLL with Divider (MCKR UPLLDIV2) // This defines the clock source for MCKR // clk_gen_mckr_oscillator #ifndef CONF_CLK_GEN_MCKR_SRC #define CONF_CLK_GEN_MCKR_SRC CLK_SRC_OPTION_PLLACK #endif // Enable Clock_MCKR // Indicates whether MCKR is enabled or disable // clk_gen_mckr_arch_enable #ifndef CONF_CLK_MCKR_ENABLE #define CONF_CLK_MCKR_ENABLE 1 #endif // // // Master Clock Prescaler // <0=> 1 // <1=> 2 // <2=> 4 // <3=> 8 // <4=> 16 // <5=> 32 // <6=> 64 // <7=> 3 // Select the clock prescaler. // mckr_presc #ifndef CONF_MCKR_PRESC #define CONF_MCKR_PRESC 0 #endif // // // Clock_MCK configuration // Indicates whether MCK configuration is enabled or not // enable_clk_gen_mck #ifndef CONF_CLK_MCK_CONFIG #define CONF_CLK_MCK_CONFIG 1 #endif // Clock Generator // clock generator MCK source // Master Clock Controller (PMC_MCKR) // This defines the clock source for MCK // clk_gen_mck_oscillator #ifndef CONF_CLK_GEN_MCK_SRC #define CONF_CLK_GEN_MCK_SRC CLK_SRC_OPTION_MCKR #endif // // // Master Clock Controller Divider MCK divider // <0=> 1 // <1=> 2 // <3=> 3 // <2=> 4 // Select the master clock divider. // mck_div #ifndef CONF_MCK_DIV #define CONF_MCK_DIV 1 #endif // // // Clock_SYSTICK configuration // Indicates whether SYSTICK configuration is enabled or not // enable_clk_gen_systick #ifndef CONF_CLK_SYSTICK_CONFIG #define CONF_CLK_SYSTICK_CONFIG 1 #endif // Clock Generator // clock generator SYSTICK source // Master Clock Controller (PMC_MCKR) // This defines the clock source for SYSTICK // clk_gen_systick_oscillator #ifndef CONF_CLK_GEN_SYSTICK_SRC #define CONF_CLK_GEN_SYSTICK_SRC CLK_SRC_OPTION_MCKR #endif // // // Systick clock divider // <8=> 8 // Select systick clock divider // systick_clock_div #ifndef CONF_SYSTICK_DIV #define CONF_SYSTICK_DIV 8 #endif // // // Clock_FCLK configuration // Indicates whether FCLK configuration is enabled or not // enable_clk_gen_fclk #ifndef CONF_CLK_FCLK_CONFIG #define CONF_CLK_FCLK_CONFIG 1 #endif // Clock Generator // clock generator FCLK source // Master Clock Controller (PMC_MCKR) // This defines the clock source for FCLK // clk_gen_fclk_oscillator #ifndef CONF_CLK_GEN_FCLK_SRC #define CONF_CLK_GEN_FCLK_SRC CLK_SRC_OPTION_MCKR #endif // // // // // Clock_GCLK0 configuration // Indicates whether GCLK0 configuration is enabled or not // enable_clk_gen_gclk0 #ifndef CONF_CLK_GCLK0_CONFIG #define CONF_CLK_GCLK0_CONFIG 1 #endif // Clock Generator // clock generator GCLK0 source // Slow Clock (SLCK) // Main Clock (MAINCK) // USB 480M Clock (UPLLCK) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for GCLK0 // clk_gen_gclk0_oscillator #ifndef CONF_CLK_GEN_GCLK0_SRC #define CONF_CLK_GEN_GCLK0_SRC CLK_SRC_OPTION_MCK #endif // Enable Clock_GCLK0 // Indicates whether GCLK0 is enabled or disable // clk_gen_gclk0_arch_enable #ifndef CONF_CLK_GCLK0_ENABLE #define CONF_CLK_GCLK0_ENABLE 1 #endif // // // Enable GCLK0 GCLKEN // Indicates whether GCLK0 GCLKEN is enabled or disable // gclk0_gclken_enable #ifndef CONF_GCLK0_GCLKEN_ENABLE #define CONF_GCLK0_GCLKEN_ENABLE 0 #endif // Generic Clock GCLK0 divider <1-256> // Select the clock divider (divider = GCLKDIV + 1). // gclk0_div #ifndef CONF_GCLK0_DIV #define CONF_GCLK0_DIV 2 #endif // // // Clock_GCLK1 configuration // Indicates whether GCLK1 configuration is enabled or not // enable_clk_gen_gclk1 #ifndef CONF_CLK_GCLK1_CONFIG #define CONF_CLK_GCLK1_CONFIG 1 #endif // Clock Generator // clock generator GCLK1 source // Slow Clock (SLCK) // Main Clock (MAINCK) // USB 480M Clock (UPLLCK) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for GCLK1 // clk_gen_gclk1_oscillator #ifndef CONF_CLK_GEN_GCLK1_SRC #define CONF_CLK_GEN_GCLK1_SRC CLK_SRC_OPTION_PLLACK #endif // Enable Clock_GCLK1 // Indicates whether GCLK1 is enabled or disable // clk_gen_gclk1_arch_enable #ifndef CONF_CLK_GCLK1_ENABLE #define CONF_CLK_GCLK1_ENABLE 1 #endif // // // Enable GCLK1 GCLKEN // Indicates whether GCLK1 GCLKEN is enabled or disable // gclk1_gclken_enable #ifndef CONF_GCLK1_GCLKEN_ENABLE #define CONF_GCLK1_GCLKEN_ENABLE 0 #endif // Generic Clock GCLK1 divider <1-256> // Select the clock divider (divider = GCLKDIV + 1). // gclk1_div #ifndef CONF_GCLK1_DIV #define CONF_GCLK1_DIV 3 #endif // // // Clock_PCK0 configuration // Indicates whether PCK0 configuration is enabled or not // enable_clk_gen_pck0 #ifndef CONF_CLK_PCK0_CONFIG #define CONF_CLK_PCK0_CONFIG 1 #endif // Clock Generator // clock generator PCK0 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK0 // clk_gen_pck0_oscillator #ifndef CONF_CLK_GEN_PCK0_SRC #define CONF_CLK_GEN_PCK0_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK0 // Indicates whether PCK0 is enabled or disable // clk_gen_pck0_arch_enable #ifndef CONF_CLK_PCK0_ENABLE #define CONF_CLK_PCK0_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck0_presc #ifndef CONF_PCK0_PRESC #define CONF_PCK0_PRESC 1 #endif // // // Clock_PCK1 configuration // Indicates whether PCK1 configuration is enabled or not // enable_clk_gen_pck1 #ifndef CONF_CLK_PCK1_CONFIG #define CONF_CLK_PCK1_CONFIG 1 #endif // Clock Generator // clock generator PCK1 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK1 // clk_gen_pck1_oscillator #ifndef CONF_CLK_GEN_PCK1_SRC #define CONF_CLK_GEN_PCK1_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK1 // Indicates whether PCK1 is enabled or disable // clk_gen_pck1_arch_enable #ifndef CONF_CLK_PCK1_ENABLE #define CONF_CLK_PCK1_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck1_presc #ifndef CONF_PCK1_PRESC #define CONF_PCK1_PRESC 2 #endif // // // Clock_PCK2 configuration // Indicates whether PCK2 configuration is enabled or not // enable_clk_gen_pck2 #ifndef CONF_CLK_PCK2_CONFIG #define CONF_CLK_PCK2_CONFIG 1 #endif // Clock Generator // clock generator PCK2 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK2 // clk_gen_pck2_oscillator #ifndef CONF_CLK_GEN_PCK2_SRC #define CONF_CLK_GEN_PCK2_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK2 // Indicates whether PCK2 is enabled or disable // clk_gen_pck2_arch_enable #ifndef CONF_CLK_PCK2_ENABLE #define CONF_CLK_PCK2_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck2_presc #ifndef CONF_PCK2_PRESC #define CONF_PCK2_PRESC 3 #endif // // // Clock_PCK3 configuration // Indicates whether PCK3 configuration is enabled or not // enable_clk_gen_pck3 #ifndef CONF_CLK_PCK3_CONFIG #define CONF_CLK_PCK3_CONFIG 1 #endif // Clock Generator // clock generator PCK3 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK3 // clk_gen_pck3_oscillator #ifndef CONF_CLK_GEN_PCK3_SRC #define CONF_CLK_GEN_PCK3_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK3 // Indicates whether PCK3 is enabled or disable // clk_gen_pck3_arch_enable #ifndef CONF_CLK_PCK3_ENABLE #define CONF_CLK_PCK3_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck3_presc #ifndef CONF_PCK3_PRESC #define CONF_PCK3_PRESC 4 #endif // // // Clock_PCK4 configuration // Indicates whether PCK4 configuration is enabled or not // enable_clk_gen_pck4 #ifndef CONF_CLK_PCK4_CONFIG #define CONF_CLK_PCK4_CONFIG 1 #endif // Clock Generator // clock generator PCK4 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK4 // clk_gen_pck4_oscillator #ifndef CONF_CLK_GEN_PCK4_SRC #define CONF_CLK_GEN_PCK4_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK4 // Indicates whether PCK4 is enabled or disable // clk_gen_pck4_arch_enable #ifndef CONF_CLK_PCK4_ENABLE #define CONF_CLK_PCK4_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck4_presc #ifndef CONF_PCK4_PRESC #define CONF_PCK4_PRESC 5 #endif // // // Clock_PCK5 configuration // Indicates whether PCK5 configuration is enabled or not // enable_clk_gen_pck5 #ifndef CONF_CLK_PCK5_CONFIG #define CONF_CLK_PCK5_CONFIG 1 #endif // Clock Generator // clock generator PCK5 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK5 // clk_gen_pck5_oscillator #ifndef CONF_CLK_GEN_PCK5_SRC #define CONF_CLK_GEN_PCK5_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK5 // Indicates whether PCK5 is enabled or disable // clk_gen_pck5_arch_enable #ifndef CONF_CLK_PCK5_ENABLE #define CONF_CLK_PCK5_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck5_presc #ifndef CONF_PCK5_PRESC #define CONF_PCK5_PRESC 6 #endif // // // Clock_PCK6 configuration // Indicates whether PCK6 configuration is enabled or not // enable_clk_gen_pck6 #ifndef CONF_CLK_PCK6_CONFIG #define CONF_CLK_PCK6_CONFIG 1 #endif // Clock Generator // clock generator PCK6 source // Slow Clock (SLCK) // Main Clock (MAINCK) // UDPLL with Divider (MCKR UPLLDIV2) // PLLA Clock (PLLACK) // Master Clock (MCK) // This defines the clock source for PCK6 // clk_gen_pck6_oscillator #ifndef CONF_CLK_GEN_PCK6_SRC #define CONF_CLK_GEN_PCK6_SRC CLK_SRC_OPTION_MAINCK #endif // Enable Clock_PCK6 // Indicates whether PCK6 is enabled or disable // clk_gen_pck6_arch_enable #ifndef CONF_CLK_PCK6_ENABLE #define CONF_CLK_PCK6_ENABLE 0 #endif // // // Programmable Clock Controller Prescaler <1-256> // Select the clock prescaler (prescaler = PRESC + 1). // pck6_presc #ifndef CONF_PCK6_PRESC #define CONF_PCK6_PRESC 7 #endif // // // Clock_USB_480M configuration // Indicates whether USB_480M configuration is enabled or not // enable_clk_gen_usb_480m #ifndef CONF_CLK_USB_480M_CONFIG #define CONF_CLK_USB_480M_CONFIG 1 #endif // Clock Generator // clock generator USB_480M source // USB 480M Clock (UPLLCK) // This defines the clock source for USB_480M // clk_gen_usb_480m_oscillator #ifndef CONF_CLK_GEN_USB_480M_SRC #define CONF_CLK_GEN_USB_480M_SRC CLK_SRC_OPTION_UPLLCK #endif // // // // // Clock_USB_48M configuration // Indicates whether USB_48M configuration is enabled or not // enable_clk_gen_usb_48m #ifndef CONF_CLK_USB_48M_CONFIG #define CONF_CLK_USB_48M_CONFIG 1 #endif // Clock Generator // clock generator USB_48M source // PLLA Clock (PLLACK) // UDPLL with Divider (MCKR UPLLDIV2) // This defines the clock source for USB_48M // clk_gen_usb_48m_oscillator #ifndef CONF_CLK_GEN_USB_48M_SRC #define CONF_CLK_GEN_USB_48M_SRC CLK_SRC_OPTION_UPLLCKDIV #endif // Enable Clock_USB_48M // Indicates whether USB_48M is enabled or disable // clk_gen_usb_48m_arch_enable #ifndef CONF_CLK_USB_48M_ENABLE #define CONF_CLK_USB_48M_ENABLE 1 #endif // // // USB Clock Controller Divider <1-16> // Select the USB clock divider (divider = USBDIV + 1). // usb_48m_div #ifndef CONF_USB_48M_DIV #define CONF_USB_48M_DIV 5 #endif // // // Clock_SLCK2 configuration // Indicates whether SLCK2 configuration is enabled or not // enable_clk_gen_slck2 #ifndef CONF_CLK_SLCK2_CONFIG #define CONF_CLK_SLCK2_CONFIG 1 #endif // Clock Generator // clock generator SLCK2 source // Slow Clock (SLCK) // This defines the clock source for SLCK2 // clk_gen_slck2_oscillator #ifndef CONF_CLK_GEN_SLCK2_SRC #define CONF_CLK_GEN_SLCK2_SRC CLK_SRC_OPTION_SLCK #endif // // // // // System Configuration // Indicates whether configuration for system is enabled or not // enable_hclk_clock #ifndef CONF_SYSTEM_CONFIG #define CONF_SYSTEM_CONFIG 1 #endif // Processor Clock Settings // Processor Clock source // Master Clock Controller (PMC_MCKR) // This defines the clock source for the HCLK (Processor clock) // hclk_clock_source #ifndef CONF_HCLK_SRC #define CONF_HCLK_SRC MCKR #endif // Flash Wait State // <0=> 1 cycle // <1=> 2 cycles // <2=> 3 cycles // <3=> 4 cycles // <4=> 5 cycles // <5=> 6 cycles // <6=> 7 cycles // This field defines the number of wait states for read and write operations. // efc_fws #ifndef CONF_EFC_WAIT_STATE #define CONF_EFC_WAIT_STATE 5 #endif // // // SysTick Clock // enable_systick_clk_clock #ifndef CONF_SYSTICK_CLK_CONFIG #define CONF_SYSTICK_CLK_CONFIG 1 #endif // SysTick Clock source // Master Clock Controller (PMC_MCKR) // This defines the clock source for the SysTick Clock // systick_clk_clock_source #ifndef CONF_SYSTICK_CLK_SRC #define CONF_SYSTICK_CLK_SRC MCKR #endif // SysTick Clock Divider // <8=> 8 // Fixed to 8 if Systick is not using Processor clock // systick_clk_clock_div #ifndef CONF_SYSTICK_CLK_DIV #define CONF_SYSTICK_CLK_DIV 8 #endif // // OSC32K Oscillator Configuration // Indicates whether configuration for OSC32K is enabled or not // enable_osc32k #ifndef CONF_OSC32K_CONFIG #define CONF_OSC32K_CONFIG 1 #endif // OSC32K Oscillator Control // OSC32K Oscillator Enable // Indicates whether OSC32K Oscillator is enabled or not // osc32k_arch_enable #ifndef CONF_OSC32K_ENABLE #define CONF_OSC32K_ENABLE 0 #endif // // // XOSC32K Oscillator Configuration // Indicates whether configuration for XOSC32K is enabled or not // enable_xosc32k #ifndef CONF_XOSC32K_CONFIG #define CONF_XOSC32K_CONFIG 0 #endif // XOSC32K Oscillator Control // Oscillator Bypass Select // The 32kHz crystal oscillator is not bypassed. // The 32kHz crystal oscillator is bypassed. // Indicates whether XOSC32K is bypassed. // xosc32k_bypass #ifndef CONF_XOSC32K #define CONF_XOSC32K CONF_XOSC32K_NO_BYPASS #endif // XOSC32K Oscillator Enable // Indicates whether XOSC32K Oscillator is enabled or not // xosc32k_arch_enable #ifndef CONF_XOSC32K_ENABLE #define CONF_XOSC32K_ENABLE 0 #endif // // // OSC12M Oscillator Configuration // Indicates whether configuration for OSC12M is enabled or not // enable_osc12m #ifndef CONF_OSC12M_CONFIG #define CONF_OSC12M_CONFIG 0 #endif // OSC12M Oscillator Control // OSC12M Oscillator Enable // Indicates whether OSC12M Oscillator is enabled or not. // osc12m_arch_enable #ifndef CONF_OSC12M_ENABLE #define CONF_OSC12M_ENABLE 0 #endif // OSC12M selector // <0=> 4000000 // <1=> 8000000 // <2=> 12000000 // Select the frequency of embedded fast RC oscillator. // osc12m_selector #ifndef CONF_OSC12M_SELECTOR #define CONF_OSC12M_SELECTOR 2 #endif // // // XOSC20M Oscillator Configuration // Indicates whether configuration for XOSC20M is enabled or not. // enable_xosc20m #ifndef CONF_XOSC20M_CONFIG #define CONF_XOSC20M_CONFIG 1 #endif // XOSC20M Oscillator Control // XOSC20M selector <3000000-20000000> // Select the frequency of crystal or ceramic resonator oscillator. // xosc20m_selector #ifndef CONF_XOSC20M_SELECTOR #define CONF_XOSC20M_SELECTOR 12000000 #endif // Start up time for the external oscillator (ms): <0-256> // Select start-up time. // xosc20m_startup_time #ifndef CONF_XOSC20M_STARTUP_TIME #define CONF_XOSC20M_STARTUP_TIME 62 #endif // Oscillator Bypass Select // The external crystal oscillator is not bypassed. // The external crystal oscillator is bypassed. // Indicates whether XOSC20M is bypassed. // xosc20m_bypass #ifndef CONF_XOSC20M #define CONF_XOSC20M CONF_XOSC20M_NO_BYPASS #endif // XOSC20M Oscillator Enable // Indicates whether XOSC20M Oscillator is enabled or not // xosc20m_arch_enable #ifndef CONF_XOSC20M_ENABLE #define CONF_XOSC20M_ENABLE 1 #endif // // // PLLACK Oscillator Configuration // Indicates whether configuration for PLLACK is enabled or not // enable_pllack #ifndef CONF_PLLACK_CONFIG #define CONF_PLLACK_CONFIG 1 #endif // PLLACK Reference Clock Source // Main Clock (MAINCK) // Select the clock source. // pllack_ref_clock #ifndef CONF_PLLACK_CLK #define CONF_PLLACK_CLK MAINCK #endif // PLLACK Oscillator Control // PLLACK Oscillator Enable // Indicates whether PLLACK Oscillator is enabled or not // pllack_arch_enable #ifndef CONF_PLLACK_ENABLE #define CONF_PLLACK_ENABLE 1 #endif // PLLA Frontend Divider (DIVA) <1-255> // Select the clock divider // pllack_div #ifndef CONF_PLLACK_DIV #define CONF_PLLACK_DIV 1 #endif // PLLACK Muliplier <1-62> // Indicates PLLA multiplier (multiplier = MULA + 1). // pllack_mul #ifndef CONF_PLLACK_MUL #define CONF_PLLACK_MUL 25 #endif // // // UPLLCK Oscillator Configuration // Indicates whether configuration for UPLLCK is enabled or not // enable_upllck #ifndef CONF_UPLLCK_CONFIG #define CONF_UPLLCK_CONFIG 1 #endif // UPLLCK Reference Clock Source // External 3-20MHz Oscillator (XOSC20M) // Select the clock source,only when the input frequency is 12M or 16M, the upllck output is 480M. // upllck_ref_clock #ifndef CONF_UPLLCK_CLK #define CONF_UPLLCK_CLK XOSC20M #endif // UPLLCK Oscillator Control // UPLLCK Oscillator Enable // Indicates whether UPLLCK Oscillator is enabled or not // upllck_arch_enable #ifndef CONF_UPLLCK_ENABLE #define CONF_UPLLCK_ENABLE 1 #endif // // // UPLLCKDIV Oscillator Configuration // Indicates whether configuration for UPLLCKDIV is enabled or not // enable_upllckdiv #ifndef CONF_UPLLCKDIV_CONFIG #define CONF_UPLLCKDIV_CONFIG 1 #endif // UPLLCKDIV Reference Clock Source // USB 480M Clock (UPLLCK) // Select the clock source. // upllckdiv_ref_clock #ifndef CONF_UPLLCKDIV_CLK #define CONF_UPLLCKDIV_CLK UPLLCK #endif // UPLLCKDIV Oscillator Control // UPLLCKDIV Clock Divider // <0=> 1 // <1=> 2 // Select the clock divider. // upllckdiv_div #ifndef CONF_UPLLCKDIV_DIV #define CONF_UPLLCKDIV_DIV 1 #endif // // // MCK/8 // enable_mck_div_8 #ifndef CONF_MCK_DIV_8_CONFIG #define CONF_MCK_DIV_8_CONFIG 0 #endif // MCK/8 Source // <0=> Master Clock (MCK) // mck_div_8_src #ifndef CONF_MCK_DIV_8_SRC #define CONF_MCK_DIV_8_SRC 0 #endif // // External Clock Input Configuration // enable_dummy_ext #ifndef CONF_DUMMY_EXT_CONFIG #define CONF_DUMMY_EXT_CONFIG 1 #endif // External Clock Input Source // All here are dummy values // Refer to the peripherals settings for actual input information // <0=> Specific clock input from specific pin // dummy_ext_src #ifndef CONF_DUMMY_EXT_SRC #define CONF_DUMMY_EXT_SRC 0 #endif // // External Clock Configuration // enable_dummy_ext_clk #ifndef CONF_DUMMY_EXT_CLK_CONFIG #define CONF_DUMMY_EXT_CLK_CONFIG 1 #endif // External Clock Source // All here are dummy values // Refer to the peripherals settings for actual input information // <0=> External Clock Input // dummy_ext_clk_src #ifndef CONF_DUMMY_EXT_CLK_SRC #define CONF_DUMMY_EXT_CLK_SRC 0 #endif // // <<< end of configuration section >>> #endif // HPL_PMC_CONFIG_H