clk_conf.h File Reference

Clock configuration for the FE310 cpu. More...

Detailed Description

Clock configuration for the FE310 cpu.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file clk_conf.h.

#include "macros/units.h"
#include "kernel_defines.h"
+ Include dependency graph for clk_conf.h:

Go to the source code of this file.

Core Clock configuration

#define CONFIG_USE_CLOCK_HFXOSC_PLL   1 /* Use PLL clocked by HFXOSC by default */
 
#define CONFIG_USE_CLOCK_HFXOSC   0
 
#define CONFIG_USE_CLOCK_HFROSC_PLL   0
 
#define CONFIG_USE_CLOCK_HFROSC   0
 
#define CONFIG_CLOCK_PLL_R   (1) /* Divide input clock by 2, mandatory with HFXOSC */
 
#define CONFIG_CLOCK_PLL_F   (39) /* Multiply REFR by 80, e.g 2 * (39 + 1) */
 
#define CONFIG_CLOCK_PLL_Q   (1) /* Divide VCO by 2, e.g 2^1 */
 
#define CLOCK_PLL_INPUT_CLOCK   MHZ(16)
 
#define CLOCK_PLL_REFR
 
#define CLOCK_PLL_VCO
 
#define CLOCK_PLL_OUT
 
#define CLOCK_CORECLOCK   (CLOCK_PLL_OUT) /* 320000000Hz with the values used above */
 
#define CONFIG_CLOCK_DESIRED_FREQUENCY   MHZ(320)
 
#define CONFIG_CLOCK_HFROSC_TRIM   (6) /* ~72000000Hz input freq */
 
#define CONFIG_CLOCK_HFROSC_DIV   (1) /* Divide by 2 */
 

Macro Definition Documentation

◆ CLOCK_PLL_OUT

#define CLOCK_PLL_OUT
Value:
(CLOCK_PLL_VCO / \
(1 << CONFIG_CLOCK_PLL_Q))

Definition at line 93 of file clk_conf.h.

◆ CLOCK_PLL_REFR

#define CLOCK_PLL_REFR
Value:
(CLOCK_PLL_INPUT_CLOCK / \
(CONFIG_CLOCK_PLL_R + 1))

Definition at line 89 of file clk_conf.h.

◆ CLOCK_PLL_VCO

#define CLOCK_PLL_VCO
Value:
(CLOCK_PLL_REFR * \
(2 * (CONFIG_CLOCK_PLL_F + 1)))

Definition at line 91 of file clk_conf.h.