Contiki 3.x
Macros
config-clocks.h File Reference

    K60 clock configuration defines.
More...

Go to the source code of this file.

Macros

#define CPU_XTAL_CLK_HZ   8000000u
 Value of the external crystal or oscillator clock frequency in Hz.
 
#define CPU_XTAL32k_CLK_HZ   32768u
 Value of the external 32k crystal or oscillator clock frequency in Hz.
 
#define CPU_INT_SLOW_CLK_HZ   32768u
 Value of the slow internal oscillator clock frequency in Hz.
 
#define CPU_INT_FAST_CLK_HZ   4000000u
 Value of the fast internal oscillator clock frequency in Hz.
 
#define DEFAULT_SYSTEM_CLOCK   96000000u
 Default System clock value.
 
#define CONFIG_CLOCK_K60_SYS_DIV   0x00
 System clock divider setting, the actual hardware register value, see reference manual for details.
 
#define CONFIG_CLOCK_K60_BUS_DIV   0x01
 Bus clock divider setting, the actual hardware register value, see reference manual for details.
 
#define CONFIG_CLOCK_K60_FB_DIV   0x01
 Flexbus clock divider setting, the actual hardware register value, see reference manual for details.
 
#define CONFIG_CLOCK_K60_FLASH_DIV   0x03
 Flash clock divider setting, the actual hardware register value, see reference manual for details.
 
#define CONFIG_CLOCK_K60_FLL_MCG_C4_DRST_DRS   0b11
 FLL parameter DRST DRS in MCG register C4, see reference manual for details.
 
#define CONFIG_CLOCK_K60_FLL_MCG_C4_DMX32   1
 FLL parameter DMX32 in MCG register C4, see reference manual for details.
 
#define F_CPU   DEFAULT_SYSTEM_CLOCK
 CPU core frequency resulting from the chosen divisors and multipliers.
 
#define F_SYS   (F_CPU / (CONFIG_CLOCK_K60_SYS_DIV + 1))
 System frequency resulting from the chosen divisors and multipliers.
 
#define F_BUS   (F_CPU / (CONFIG_CLOCK_K60_BUS_DIV + 1))
 Bus frequency resulting from the chosen divisors and multipliers.
 
#define F_FLEXBUS   (F_CPU / (CONFIG_CLOCK_K60_FB_DIV + 1))
 FlexBus frequency resulting from the chosen divisors and multipliers.
 
#define F_FLASH   (F_CPU / (CONFIG_CLOCK_K60_FLASH_DIV + 1))
 Flash frequency resulting from the chosen divisors and multipliers.
 

Detailed Description

    K60 clock configuration defines.
Author
Joakim Gebart joaki.nosp@m.m.ge.nosp@m.bart@.nosp@m.eist.nosp@m.ec.se

Definition in file config-clocks.h.