36 #ifndef CLK_GENCLK_H_INCLUDED 37 #define CLK_GENCLK_H_INCLUDED 42 # include "sam3s/genclk.h" 44 # include "sam3u/genclk.h" 46 # include "sam3n/genclk.h" 48 # include "sam3x/genclk.h" 50 # include "sam4s/genclk.h" 52 # include "sam4l/genclk.h" 54 # include "sam4e/genclk.h" 56 # include "sam4n/genclk.h" 58 # include "sam4c/genclk.h" 60 # include "sam4cm/genclk.h" 62 # include "sam4cp/genclk.h" 64 # include "samg/genclk.h" 66 # include "samv71/genclk.h" 68 # include "samv70/genclk.h" 72 # include "sams70/genclk.h" 73 #elif (UC3A0 || UC3A1) 74 # include "uc3a0_a1/genclk.h" 76 # include "uc3a3_a4/genclk.h" 78 # include "uc3b0_b1/genclk.h" 80 # include "uc3c/genclk.h" 82 # include "uc3d/genclk.h" 84 # include "uc3l/genclk.h" 86 # error Unsupported chip type genclk_source
Generic clock source ID.
static void genclk_enable_source(enum genclk_source e_src)
Enable the source clock src used by a generic clock.
static void genclk_config_set_source(struct genclk_config *p_cfg, enum genclk_source e_src)
Select a new source clock src in configuration cfg.
Atmel part identification macros.
static void genclk_enable(const struct genclk_config *p_cfg, uint32_t ul_id)
static void genclk_config_defaults(struct genclk_config *p_cfg, uint32_t ul_id)
static void genclk_enable_config(unsigned int id, enum genclk_source src, unsigned int divider)
Enable the configuration defined by src and divider for the generic clock identified by id...
Hardware representation of a set of generic clock parameters.
Chip-specific generic clock management.
static void genclk_config_set_divider(struct genclk_config *p_cfg, uint32_t e_divider)