1 /* Auto-generated config file peripheral_clk_config.h */ 2 #ifndef PERIPHERAL_CLK_CONFIG_H 3 #define PERIPHERAL_CLK_CONFIG_H 4 5 // <<< Use Configuration Wizard in Context Menu >>> 6 7 // <h> AFEC Clock Settings 8 // <y> AFEC Clock source 9 // <CONF_SRC_MCK"> Master Clock (MCK) 10 // <i> This defines the clock source for the AFEC 11 // <id> afec_clock_source 12 #ifndef CONF_AFEC0_SRC 13 #define CONF_AFEC0_SRC CONF_SRC_MCK 14 #endif 15 // </h> 16 17 /** 18 * \def AFEC FREQUENCY 19 * \brief AFEC's Clock frequency 20 */ 21 #ifndef CONF_AFEC0_FREQUENCY 22 #define CONF_AFEC0_FREQUENCY 150000000 23 #endif 24 25 /** 26 * \def CONF_HCLK_FREQUENCY 27 * \brief HCLK's Clock frequency 28 */ 29 #ifndef CONF_HCLK_FREQUENCY 30 #define CONF_HCLK_FREQUENCY 300000000 31 #endif 32 33 /** 34 * \def CONF_FCLK_FREQUENCY 35 * \brief FCLK's Clock frequency 36 */ 37 #ifndef CONF_FCLK_FREQUENCY 38 #define CONF_FCLK_FREQUENCY 300000000 39 #endif 40 41 /** 42 * \def CONF_CPU_FREQUENCY 43 * \brief CPU's Clock frequency 44 */ 45 #ifndef CONF_CPU_FREQUENCY 46 #define CONF_CPU_FREQUENCY 300000000 47 #endif 48 49 /** 50 * \def CONF_SLCK_FREQUENCY 51 * \brief Slow Clock frequency 52 */ 53 #define CONF_SLCK_FREQUENCY 0 54 55 /** 56 * \def CONF_MCK_FREQUENCY 57 * \brief Master Clock frequency 58 */ 59 #define CONF_MCK_FREQUENCY 150000000 60 61 /** 62 * \def CONF_PCK6_FREQUENCY 63 * \brief Programmable Clock Controller 6 frequency 64 */ 65 #define CONF_PCK6_FREQUENCY 1714285 66 67 // <h> TWIHS Clock Settings 68 // <y> TWIHS Clock source 69 // <CONF_SRC_MCK"> Master Clock (MCK) 70 // <i> This defines the clock source for the TWIHS 71 // <id> twihs_clock_source 72 #ifndef CONF_TWIHS0_SRC 73 #define CONF_TWIHS0_SRC CONF_SRC_MCK 74 #endif 75 // </h> 76 77 /** 78 * \def TWIHS FREQUENCY 79 * \brief TWIHS's Clock frequency 80 */ 81 #ifndef CONF_TWIHS0_FREQUENCY 82 #define CONF_TWIHS0_FREQUENCY 150000000 83 #endif 84 85 // <h> USART Clock Settings 86 // <o> USART Clock source 87 88 // <0=> Master Clock (MCK) 89 // <1=> MCK / 8 for USART 90 // <2=> Programmable Clock Controller 4 (PMC_PCK4) 91 // <3=> External Clock 92 // <i> This defines the clock source for the USART 93 // <id> usart_clock_source 94 #ifndef CONF_USART1_CK_SRC 95 #define CONF_USART1_CK_SRC 0 96 #endif 97 98 // <o> USART External Clock Input on SCK <1-4294967295> 99 // <i> Inputs the external clock frequency on SCK 100 // <id> usart_clock_freq 101 #ifndef CONF_USART1_SCK_FREQ 102 #define CONF_USART1_SCK_FREQ 10000000 103 #endif 104 105 // </h> 106 107 /** 108 * \def USART FREQUENCY 109 * \brief USART's Clock frequency 110 */ 111 #ifndef CONF_USART1_FREQUENCY 112 #define CONF_USART1_FREQUENCY 150000000 113 #endif 114 115 // <h> GMAC Clock Settings 116 // <y> GMAC Clock source 117 // <CONF_SRC_MCK"> Master Clock (MCK) 118 // <i> Select the clock source for GMAC 119 // <id> gmac_clock_source 120 #ifndef CONF_GMAC_SRC 121 #define CONF_GMAC_SRC CONF_SRC_MCK 122 #endif 123 // </h> 124 125 /** 126 * \def GMAC FREQUENCY 127 * \brief GMAC Clock frequency 128 */ 129 #ifndef CONF_GMAC_FREQUENCY 130 #define CONF_GMAC_FREQUENCY 150000000 131 #endif 132 133 // <h> MCAN Clock Settings 134 // <y> MCAN Clock source 135 // <CONF_SRC_PCK5"> Programmable Clock Controller 5 (PMC_PCK5) 136 // <i> This defines the clock source for the MCAN 137 // <id> mcan_clock_source 138 #ifndef CONF_MCAN1_SRC 139 #define CONF_MCAN1_SRC CONF_SRC_PCK5 140 #endif 141 // </h> 142 143 /** 144 * \def MCAN FREQUENCY 145 * \brief MCAN's Clock frequency 146 */ 147 #ifndef CONF_MCAN1_FREQUENCY 148 #define CONF_MCAN1_FREQUENCY 40000000 149 #endif 150 151 // <<< end of configuration section >>> 152 153 #endif // PERIPHERAL_CLK_CONFIG_H 154