Go to the documentation of this file.
40 #ifndef MULLE_CONFIG_CLOCKS_H_
41 #define MULLE_CONFIG_CLOCKS_H_
48 #define CPU_XTAL_CLK_HZ 8000000u
49 #define CPU_XTAL32k_CLK_HZ 32768u
50 #define CPU_INT_SLOW_CLK_HZ 32768u
51 #define CPU_INT_FAST_CLK_HZ 4000000u
52 #define DEFAULT_SYSTEM_CLOCK 96000000u
57 #define CONFIG_CLOCK_K60_SYS_DIV 0x00
62 #define CONFIG_CLOCK_K60_BUS_DIV 0x01
67 #define CONFIG_CLOCK_K60_FB_DIV 0x01
72 #define CONFIG_CLOCK_K60_FLASH_DIV 0x03
77 #define CONFIG_CLOCK_K60_FLL_MCG_C4_DRST_DRS 0b11
82 #define CONFIG_CLOCK_K60_FLL_MCG_C4_DMX32 1
87 #define F_CPU DEFAULT_SYSTEM_CLOCK
92 #define F_SYS (F_CPU / (CONFIG_CLOCK_K60_SYS_DIV + 1))
97 #define F_BUS (F_CPU / (CONFIG_CLOCK_K60_BUS_DIV + 1))
102 #define F_FLEXBUS (F_CPU / (CONFIG_CLOCK_K60_FB_DIV + 1))
107 #define F_FLASH (F_CPU / (CONFIG_CLOCK_K60_FLASH_DIV + 1))