1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!--**************************************************************************** 5* \file sysclock.cypersonality 6* \version 3.0 7* 8* \brief 9* SysClocks personality description file. It supports CAT1A, CAT1B, CAT1C and 10* CAT1D devices. 11* 12******************************************************************************** 13* \copyright 14* Copyright (c) 2022, Cypress Semiconductor Corporation (an Infineon company) or 15* an affiliate of Cypress Semiconductor Corporation. 16* SPDX-License-Identifier: Apache-2.0 17* 18* Licensed under the Apache License, Version 2.0 (the "License"); 19* you may not use this file except in compliance with the License. 20* You may obtain a copy of the License at 21* 22* http://www.apache.org/licenses/LICENSE-2.0 23* 24* Unless required by applicable law or agreed to in writing, software 25* distributed under the License is distributed on an "AS IS" BASIS, 26* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27* See the License for the specific language governing permissions and 28* limitations under the License. 29*****************************************************************************--> 30 31<Personality id="sysclocks" name="SysClocks" version="3.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7"> 32 <Dependencies> 33 <IpBlock name="mxs40srss,mxs40ssrss,mxs40srss_ver3,mxs22srss" /> 34 <Resource name="srss\.clock" /> 35 </Dependencies> 36 <ExposedMembers> 37 <ExposedMember key="frequency" paramId="frequency" /> 38 </ExposedMembers> 39 <Parameters> 40 <ParamString id="description" name="" group="About" default="This personality has no configuration options. It is used to generate an overall configuration function for setting all the system clock options. The code preview shows what will be generated based on the current configuration. The generated code will be located in GeneratedSource/cycfg_system.c" visible="true" editable="false" desc="" /> 41 <ParamString id="longIndent" name="Long Indent" group="Internal" default="			" visible="false" editable="false" desc="Long indent for structure generation." /> 42 <ParamBool id="is40srssAvailable" name="is40srssAvailable" group="" default="`${("mxs40srss" eq getIpBlockName())}`" visible="false" editable="false" desc="" /> 43 <ParamBool id="is40ssrssAvailable" name="is40ssrssAvailable" group="" default="`${("mxs40ssrss" eq getIpBlockName())}`" visible="false" editable="false" desc="" /> 44 <ParamBool id="is40srss_ver3Available" name="is40srss_ver3Available" group="" default="`${("mxs40srss_ver3" eq getIpBlockName())}`" visible="false" editable="false" desc="" /> 45 <ParamBool id="is22srssAvailable" name="is22srssAvailable" group="" default="`${("mxs22srss" eq getIpBlockName())}`" visible="false" editable="false" desc="" /> 46 </Parameters> 47 <DRCs> 48 <DRC type="ERROR" text="CLK_HF0 is not enabled." condition="`${!isBlockUsed("srss[0].clock[0].hfclk[0]") && (is40ssrssAvailable || is40srss_ver3Available || is22srssAvailable)}`" > 49 <FixIt action="ENABLE_BLOCK" target="`${"srss[0].clock[0].hfclk[0]"}`" value="" valid="true" /> 50 </DRC> 51 </DRCs> 52 <ConfigFirmware> 53 <ConfigInclude value="cy_sysclk.h" include="true" /> 54 <ConfigInclude value="cy_pra.h" include="`${is40srssAvailable}`" /> 55 <ConfigInclude value="cy_pra_cfg.h" include="`${is40srssAvailable}`" /> 56 <ConfigInclude value="cy_wdt.h" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 57 <ConfigInclude value="cy_ble_clk.h" include="`${hasBlock("bless[0]")}`" /> 58 59 60 <ConfigDefine name="CY_CFG_SYSCLK_ECO_ERROR" value="1" public="false" include="true" /> 61 <ConfigDefine name="CY_CFG_SYSCLK_ALTHF_ERROR" value="2" public="false" include="true" /> 62 <ConfigDefine name="CY_CFG_SYSCLK_PLL_ERROR" value="3" public="false" include="`${is40srss_ver3Available || is40srssAvailable || is22srssAvailable}`" /> 63 <ConfigDefine name="CY_CFG_SYSCLK_FLL_ERROR" value="4" public="false" include="`${is40srss_ver3Available || is40srssAvailable || is40ssrssAvailable}`" /> 64 <ConfigDefine name="CY_CFG_SYSCLK_WCO_ERROR" value="5" public="false" include="true" /> 65 66 <ConfigStruct name="`${INST_NAME . "_secureConfig"}`" type="cy_stc_pra_system_config_t" const="false" public="false" include="`${is40srssAvailable}`" guard="defined (CY_DEVICE_SECURE)" > 67 </ConfigStruct> 68 69 <ConfigFunction signature="__WEAK void __NO_RETURN cycfg_ClockStartupError(uint32_t error)" body=" (void)error; /* Suppress the compiler warning */
 while(1);" public="false" include="`${is40srssAvailable}`" /> 70 <ConfigFunction signature="__WEAK void cycfg_ClockStartupError(uint32_t error)" body=" (void)error; /* Suppress the compiler warning */
 while(1);" public="false" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 71 72 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_Ilo0DeInit()" body=" if(Cy_SysPm_IsBgRefCtrl())
 {
 Cy_SysPm_BgRefCtrl(false);
 Cy_WDT_Unlock();
 Cy_SysClk_IloSrcDisable(0);
 Cy_SysClk_IloSrcHibernateOn(0, false);
 Cy_WDT_Lock();
 Cy_SysPm_BgRefCtrl(true);
 }
 else
 {
 Cy_WDT_Unlock();
 Cy_SysClk_IloSrcDisable(0);
 Cy_SysClk_IloSrcHibernateOn(0, false);
 Cy_WDT_Lock();
 }" public="false" include="`${is40srss_ver3Available}`" guard="!defined (CY_CFG_SYSCLK_ILO0_ENABLED)"/> 73 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_Ilo1DeInit()" body=" Cy_SysClk_IloSrcDisable(1);
 Cy_SysClk_IloSrcHibernateOn(1, false);" public="false" include="`${is40srss_ver3Available}`" guard="!defined (CY_CFG_SYSCLK_ILO1_ENABLED)"/> 74 75 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_FllDeInit()" body=" Cy_SysClk_FllDisable();" public="false" include="`${is40srss_ver3Available || is40srssAvailable || is40ssrssAvailable}`" guard="(!defined(CY_DEVICE_SECURE))"/> 76 77 <ConfigFunction signature="void init_cycfg_secure_struct(cy_stc_pra_system_config_t * secure_config)" body=" 78 #ifdef CY_CFG_PWR_ENABLED
 79 secure_config->powerEnable = CY_CFG_PWR_ENABLED;
 80 #endif /* CY_CFG_PWR_ENABLED */
 81
 82 #ifdef CY_CFG_PWR_USING_LDO
 83 secure_config->ldoEnable = CY_CFG_PWR_USING_LDO;
 84 #endif /* CY_CFG_PWR_USING_LDO */
 85
 86 #ifdef CY_CFG_PWR_USING_PMIC
 87 secure_config->pmicEnable = CY_CFG_PWR_USING_PMIC;
 88 #endif /* CY_CFG_PWR_USING_PMIC */
 89
 90 #ifdef CY_CFG_PWR_VBACKUP_USING_VDDD
 91 secure_config->vBackupVDDDEnable = CY_CFG_PWR_VBACKUP_USING_VDDD;
 92 #endif /* CY_CFG_PWR_VBACKUP_USING_VDDD */
 93
 94 #ifdef CY_CFG_PWR_USING_ULP
 95 secure_config->ulpEnable = CY_CFG_PWR_USING_ULP;
 96 #endif /* CY_CFG_PWR_USING_ULP */
 97
 98 #ifdef CY_CFG_SYSCLK_ECO_ENABLED
 99 secure_config->ecoEnable = CY_CFG_SYSCLK_ECO_ENABLED;
 100 #endif /* CY_CFG_SYSCLK_ECO_ENABLED */
 101
 102 #ifdef CY_CFG_SYSCLK_EXTCLK_ENABLED
 103 secure_config->extClkEnable = CY_CFG_SYSCLK_EXTCLK_ENABLED;
 104 #endif /* CY_CFG_SYSCLK_EXTCLK_ENABLED */
 105
 106 #ifdef CY_CFG_SYSCLK_ILO_ENABLED
 107 secure_config->iloEnable = CY_CFG_SYSCLK_ILO_ENABLED;
 108 #endif /* CY_CFG_SYSCLK_ILO_ENABLED */
 109
 110 #ifdef CY_CFG_SYSCLK_WCO_ENABLED
 111 secure_config->wcoEnable = CY_CFG_SYSCLK_WCO_ENABLED;
 112 #endif /* CY_CFG_SYSCLK_WCO_ENABLED */
 113
 114 #ifdef CY_CFG_SYSCLK_FLL_ENABLED
 115 secure_config->fllEnable = CY_CFG_SYSCLK_FLL_ENABLED;
 116 #endif /* CY_CFG_SYSCLK_FLL_ENABLED */
 117
 118 #ifdef CY_CFG_SYSCLK_PLL0_ENABLED
 119 secure_config->pll0Enable = CY_CFG_SYSCLK_PLL0_ENABLED;
 120 #endif /* CY_CFG_SYSCLK_PLL0_ENABLED */
 121
 122 #ifdef CY_CFG_SYSCLK_PLL1_ENABLED
 123 secure_config->pll1Enable = CY_CFG_SYSCLK_PLL1_ENABLED;
 124 #endif /* CY_CFG_SYSCLK_PLL1_ENABLED */
 125
 126 #ifdef CY_CFG_SYSCLK_CLKPATH0_ENABLED
 127 secure_config->path0Enable = CY_CFG_SYSCLK_CLKPATH0_ENABLED;
 128 #endif /* CY_CFG_SYSCLK_CLKPATH0_ENABLED */
 129
 130 #ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED
 131 secure_config->path1Enable = CY_CFG_SYSCLK_CLKPATH1_ENABLED;
 132 #endif /* CY_CFG_SYSCLK_CLKPATH1_ENABLED */
 133
 134 #ifdef CY_CFG_SYSCLK_CLKPATH2_ENABLED
 135 secure_config->path2Enable = CY_CFG_SYSCLK_CLKPATH2_ENABLED;
 136 #endif /* CY_CFG_SYSCLK_CLKPATH2_ENABLED */
 137
 138 #ifdef CY_CFG_SYSCLK_CLKPATH3_ENABLED
 139 secure_config->path3Enable = CY_CFG_SYSCLK_CLKPATH3_ENABLED;
 140 #endif /* CY_CFG_SYSCLK_CLKPATH3_ENABLED */
 141
 142 #ifdef CY_CFG_SYSCLK_CLKPATH4_ENABLED
 143 secure_config->path4Enable = CY_CFG_SYSCLK_CLKPATH4_ENABLED;
 144 #endif /* CY_CFG_SYSCLK_CLKPATH4_ENABLED */
 145
 146 #ifdef CY_CFG_SYSCLK_CLKPATH5_ENABLED
 147 secure_config->path5Enable = CY_CFG_SYSCLK_CLKPATH5_ENABLED;
 148 #endif /* CY_CFG_SYSCLK_CLKPATH5_ENABLED */
 149
 150 #ifdef CY_CFG_SYSCLK_CLKFAST_ENABLED
 151 secure_config->clkFastEnable = CY_CFG_SYSCLK_CLKFAST_ENABLED;
 152 #endif /* CY_CFG_SYSCLK_CLKFAST_ENABLED */
 153
 154 #ifdef CY_CFG_SYSCLK_CLKPERI_ENABLED
 155 secure_config->clkPeriEnable = CY_CFG_SYSCLK_CLKPERI_ENABLED;
 156 #endif /* CY_CFG_SYSCLK_CLKPERI_ENABLED */
 157
 158 #ifdef CY_CFG_SYSCLK_CLKSLOW_ENABLED
 159 secure_config->clkSlowEnable = CY_CFG_SYSCLK_CLKSLOW_ENABLED;
 160 #endif /* CY_CFG_SYSCLK_CLKSLOW_ENABLED */
 161
 162 #ifdef CY_CFG_SYSCLK_CLKHF0_ENABLED
 163 secure_config->clkHF0Enable = CY_CFG_SYSCLK_CLKHF0_ENABLED;
 164 #endif /* CY_CFG_SYSCLK_CLKHF0_ENABLED */
 165
 166 #ifdef CY_CFG_SYSCLK_CLKHF1_ENABLED
 167 secure_config->clkHF1Enable = CY_CFG_SYSCLK_CLKHF1_ENABLED;
 168 #endif /* CY_CFG_SYSCLK_CLKHF1_ENABLED */
 169
 170 #ifdef CY_CFG_SYSCLK_CLKHF2_ENABLED
 171 secure_config->clkHF2Enable = CY_CFG_SYSCLK_CLKHF2_ENABLED;
 172 #endif /* CY_CFG_SYSCLK_CLKHF2_ENABLED */
 173
 174 #ifdef CY_CFG_SYSCLK_CLKHF3_ENABLED
 175 secure_config->clkHF3Enable = CY_CFG_SYSCLK_CLKHF3_ENABLED;
 176 #endif /* CY_CFG_SYSCLK_CLKHF3_ENABLED */
 177
 178 #ifdef CY_CFG_SYSCLK_CLKHF4_ENABLED
 179 secure_config->clkHF4Enable = CY_CFG_SYSCLK_CLKHF4_ENABLED;
 180 #endif /* CY_CFG_SYSCLK_CLKHF4_ENABLED */
 181
 182 #ifdef CY_CFG_SYSCLK_CLKHF5_ENABLED
 183 secure_config->clkHF5Enable = CY_CFG_SYSCLK_CLKHF5_ENABLED;
 184 #endif /* CY_CFG_SYSCLK_CLKHF5_ENABLED */
 185
 186 #ifdef CY_CFG_SYSCLK_CLKPUMP_ENABLED
 187 secure_config->clkPumpEnable = CY_CFG_SYSCLK_CLKPUMP_ENABLED;
 188 #endif /* CY_CFG_SYSCLK_CLKPUMP_ENABLED */
 189
 190 #ifdef CY_CFG_SYSCLK_CLKLF_ENABLED
 191 secure_config->clkLFEnable = CY_CFG_SYSCLK_CLKLF_ENABLED;
 192 #endif /* CY_CFG_SYSCLK_CLKLF_ENABLED */
 193
 194 #ifdef CY_CFG_SYSCLK_CLKBAK_ENABLED
 195 secure_config->clkBakEnable = CY_CFG_SYSCLK_CLKBAK_ENABLED;
 196 #endif /* CY_CFG_SYSCLK_CLKBAK_ENABLED */
 197
 198 #ifdef CY_CFG_SYSCLK_CLKTIMER_ENABLED
 199 secure_config->clkTimerEnable = CY_CFG_SYSCLK_CLKTIMER_ENABLED;
 200 #endif /* CY_CFG_SYSCLK_CLKTIMER_ENABLED */
 201
 202 #ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED
 203 #error Configuration Error : ALT SYSTICK cannot be enabled for Secure devices. 
 204 #endif /* CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED */
 205
 206 #ifdef CY_CFG_SYSCLK_PILO_ENABLED
 207 secure_config->piloEnable = CY_CFG_SYSCLK_PILO_ENABLED;
 208 #endif /* CY_CFG_SYSCLK_PILO_ENABLED */
 209
 210 #ifdef CY_CFG_SYSCLK_ALTHF_ENABLED
 211 secure_config->clkAltHfEnable = CY_CFG_SYSCLK_ALTHF_ENABLED;
 212 #endif /* CY_CFG_SYSCLK_ALTHF_ENABLED */
 213
 214 #ifdef CY_CFG_PWR_LDO_VOLTAGE
 215 secure_config->ldoVoltage = CY_CFG_PWR_LDO_VOLTAGE;
 216 #endif /* CY_CFG_PWR_LDO_VOLTAGE */
 217
 218 #ifdef CY_CFG_PWR_REGULATOR_MODE_MIN
 219 secure_config->pwrCurrentModeMin = CY_CFG_PWR_REGULATOR_MODE_MIN;
 220 #endif /* CY_CFG_PWR_REGULATOR_MODE_MIN */
 221
 222 #ifdef CY_CFG_PWR_BUCK_VOLTAGE
 223 secure_config->buckVoltage = CY_CFG_PWR_BUCK_VOLTAGE;
 224 #endif /* CY_CFG_PWR_BUCK_VOLTAGE */
 225
 226 #ifdef CY_CFG_SYSCLK_ECO_FREQ
 227 secure_config->ecoFreqHz = CY_CFG_SYSCLK_ECO_FREQ;
 228 #endif /* CY_CFG_SYSCLK_ECO_FREQ */
 229
 230 #ifdef CY_CFG_SYSCLK_ECO_CLOAD
 231 secure_config->ecoLoad = CY_CFG_SYSCLK_ECO_CLOAD;
 232 #endif /* CY_CFG_SYSCLK_ECO_CLOAD */
 233
 234 #ifdef CY_CFG_SYSCLK_ECO_ESR
 235 secure_config->ecoEsr = CY_CFG_SYSCLK_ECO_ESR;
 236 #endif /* CY_CFG_SYSCLK_ECO_ESR */
 237
 238 #ifdef CY_CFG_SYSCLK_ECO_DRIVE_LEVEL
 239 secure_config->ecoDriveLevel = CY_CFG_SYSCLK_ECO_DRIVE_LEVEL;
 240 #endif /* CY_CFG_SYSCLK_ECO_DRIVE_LEVEL */
 241
 242 #ifdef CY_CFG_SYSCLK_ECO_GPIO_IN_PRT
 243 secure_config->ecoInPort = CY_CFG_SYSCLK_ECO_GPIO_IN_PRT;
 244 #endif /* CY_CFG_SYSCLK_ECO_GPIO_IN_PRT */
 245
 246 #ifdef CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT
 247 secure_config->ecoOutPort = CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT;
 248 #endif /* CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT */
 249
 250 #ifdef CY_CFG_SYSCLK_ECO_GPIO_IN_PIN
 251 secure_config->ecoInPinNum = CY_CFG_SYSCLK_ECO_GPIO_IN_PIN;
 252 #endif /* CY_CFG_SYSCLK_ECO_GPIO_IN_PIN */
 253
 254 #ifdef CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN
 255 secure_config->ecoOutPinNum = CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN;
 256 #endif /* CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN */
 257
 258 #ifdef CY_CFG_SYSCLK_EXTCLK_FREQ
 259 secure_config->extClkFreqHz = CY_CFG_SYSCLK_EXTCLK_FREQ;
 260 #endif /* CY_CFG_SYSCLK_EXTCLK_FREQ */
 261
 262 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_PRT
 263 secure_config->extClkPort = CY_CFG_SYSCLK_EXTCLK_GPIO_PRT;
 264 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_PRT */
 265
 266 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_PIN
 267 secure_config->extClkPinNum = CY_CFG_SYSCLK_EXTCLK_GPIO_PIN;
 268 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_PIN */
 269
 270 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM
 271 secure_config->extClkHsiom = CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM;
 272 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM */
 273
 274 #ifdef CY_CFG_SYSCLK_ILO_HIBERNATE
 275 secure_config->iloHibernateON = CY_CFG_SYSCLK_ILO_HIBERNATE;
 276 #endif /* CY_CFG_SYSCLK_ILO_HIBERNATE */
 277
 278 #ifdef CY_CFG_SYSCLK_WCO_BYPASS
 279 secure_config->bypassEnable = CY_CFG_SYSCLK_WCO_BYPASS;
 280 #endif /* CY_CFG_SYSCLK_WCO_BYPASS */
 281
 282 #ifdef CY_CFG_SYSCLK_WCO_IN_PRT
 283 secure_config->wcoInPort = CY_CFG_SYSCLK_WCO_IN_PRT;
 284 #endif /* CY_CFG_SYSCLK_WCO_IN_PRT */
 285
 286 #ifdef CY_CFG_SYSCLK_WCO_OUT_PRT
 287 secure_config->wcoOutPort = CY_CFG_SYSCLK_WCO_OUT_PRT;
 288 #endif /* CY_CFG_SYSCLK_WCO_OUT_PRT */
 289
 290 #ifdef CY_CFG_SYSCLK_WCO_IN_PIN
 291 secure_config->wcoInPinNum = CY_CFG_SYSCLK_WCO_IN_PIN;
 292 #endif /* CY_CFG_SYSCLK_WCO_IN_PIN */
 293
 294 #ifdef CY_CFG_SYSCLK_WCO_OUT_PIN
 295 secure_config->wcoOutPinNum = CY_CFG_SYSCLK_WCO_OUT_PIN;
 296 #endif /* CY_CFG_SYSCLK_WCO_OUT_PIN */
 297
 298 #ifdef CY_CFG_SYSCLK_FLL_OUT_FREQ
 299 secure_config->fllOutFreqHz = CY_CFG_SYSCLK_FLL_OUT_FREQ;
 300 #endif /* CY_CFG_SYSCLK_FLL_OUT_FREQ */
 301
 302 #ifdef CY_CFG_SYSCLK_FLL_MULT
 303 secure_config->fllMult = CY_CFG_SYSCLK_FLL_MULT;
 304 #endif /* CY_CFG_SYSCLK_FLL_MULT */
 305
 306 #ifdef CY_CFG_SYSCLK_FLL_REFDIV
 307 secure_config->fllRefDiv = CY_CFG_SYSCLK_FLL_REFDIV;
 308 #endif /* CY_CFG_SYSCLK_FLL_REFDIV */
 309
 310 #ifdef CY_CFG_SYSCLK_FLL_CCO_RANGE
 311 secure_config->fllCcoRange = CY_CFG_SYSCLK_FLL_CCO_RANGE;
 312 #endif /* CY_CFG_SYSCLK_FLL_CCO_RANGE */
 313
 314 #ifdef CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV
 315 secure_config->enableOutputDiv = CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV;
 316 #endif /* CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV */
 317
 318 #ifdef CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE
 319 secure_config->lockTolerance = CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE;
 320 #endif /* CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE */
 321
 322 #ifdef CY_CFG_SYSCLK_FLL_IGAIN
 323 secure_config->igain = CY_CFG_SYSCLK_FLL_IGAIN;
 324 #endif /* CY_CFG_SYSCLK_FLL_IGAIN */
 325
 326 #ifdef CY_CFG_SYSCLK_FLL_PGAIN
 327 secure_config->pgain = CY_CFG_SYSCLK_FLL_PGAIN;
 328 #endif /* CY_CFG_SYSCLK_FLL_PGAIN */
 329
 330 #ifdef CY_CFG_SYSCLK_FLL_SETTLING_COUNT
 331 secure_config->settlingCount = CY_CFG_SYSCLK_FLL_SETTLING_COUNT;
 332 #endif /* CY_CFG_SYSCLK_FLL_SETTLING_COUNT */
 333
 334 #ifdef CY_CFG_SYSCLK_FLL_OUTPUT_MODE
 335 secure_config->outputMode = CY_CFG_SYSCLK_FLL_OUTPUT_MODE;
 336 #endif /* CY_CFG_SYSCLK_FLL_OUTPUT_MODE */
 337
 338 #ifdef CY_CFG_SYSCLK_FLL_CCO_FREQ
 339 secure_config->ccoFreq = CY_CFG_SYSCLK_FLL_CCO_FREQ;
 340 #endif /* CY_CFG_SYSCLK_FLL_CCO_FREQ */
 341
 342 #ifdef CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV
 343 secure_config->pll0FeedbackDiv = CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV;
 344 #endif /* CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV */
 345
 346 #ifdef CY_CFG_SYSCLK_PLL0_REFERENCE_DIV
 347 secure_config->pll0ReferenceDiv = CY_CFG_SYSCLK_PLL0_REFERENCE_DIV;
 348 #endif /* CY_CFG_SYSCLK_PLL0_REFERENCE_DIV */
 349
 350 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_DIV
 351 secure_config->pll0OutputDiv = CY_CFG_SYSCLK_PLL0_OUTPUT_DIV;
 352 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_DIV */
 353
 354 #ifdef CY_CFG_SYSCLK_PLL0_LF_MODE
 355 secure_config->pll0LfMode = CY_CFG_SYSCLK_PLL0_LF_MODE;
 356 #endif /* CY_CFG_SYSCLK_PLL0_LF_MODE */
 357
 358 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_MODE
 359 secure_config->pll0OutputMode = CY_CFG_SYSCLK_PLL0_OUTPUT_MODE;
 360 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_MODE */
 361
 362 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ
 363 secure_config->pll0OutFreqHz = CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ;
 364 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ */
 365
 366 #ifdef CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV
 367 secure_config->pll1FeedbackDiv = CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV;
 368 #endif /* CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV */
 369
 370 #ifdef CY_CFG_SYSCLK_PLL1_REFERENCE_DIV
 371 secure_config->pll1ReferenceDiv = CY_CFG_SYSCLK_PLL1_REFERENCE_DIV;
 372 #endif /* CY_CFG_SYSCLK_PLL1_REFERENCE_DIV */
 373
 374 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_DIV
 375 secure_config->pll1OutputDiv = CY_CFG_SYSCLK_PLL1_OUTPUT_DIV;
 376 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_DIV */
 377
 378 #ifdef CY_CFG_SYSCLK_PLL1_LF_MODE
 379 secure_config->pll1LfMode = CY_CFG_SYSCLK_PLL1_LF_MODE;
 380 #endif /* CY_CFG_SYSCLK_PLL1_LF_MODE */
 381
 382 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_MODE
 383 secure_config->pll1OutputMode = CY_CFG_SYSCLK_PLL1_OUTPUT_MODE;
 384 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_MODE */
 385
 386 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ
 387 secure_config->pll1OutFreqHz = CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ;
 388 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ */
 389
 390 #ifdef CY_CFG_SYSCLK_CLKPATH0_SOURCE
 391 secure_config->path0Src = CY_CFG_SYSCLK_CLKPATH0_SOURCE;
 392 #endif /* CY_CFG_SYSCLK_CLKPATH0_SOURCE */
 393
 394 #ifdef CY_CFG_SYSCLK_CLKPATH1_SOURCE
 395 secure_config->path1Src = CY_CFG_SYSCLK_CLKPATH1_SOURCE;
 396 #endif /* CY_CFG_SYSCLK_CLKPATH1_SOURCE */
 397
 398 #ifdef CY_CFG_SYSCLK_CLKPATH2_SOURCE
 399 secure_config->path2Src = CY_CFG_SYSCLK_CLKPATH2_SOURCE;
 400 #endif /* CY_CFG_SYSCLK_CLKPATH2_SOURCE */
 401
 402 #ifdef CY_CFG_SYSCLK_CLKPATH3_SOURCE
 403 secure_config->path3Src = CY_CFG_SYSCLK_CLKPATH3_SOURCE;
 404 #endif /* CY_CFG_SYSCLK_CLKPATH3_SOURCE */
 405
 406 #ifdef CY_CFG_SYSCLK_CLKPATH4_SOURCE
 407 secure_config->path4Src = CY_CFG_SYSCLK_CLKPATH4_SOURCE;
 408 #endif /* CY_CFG_SYSCLK_CLKPATH4_SOURCE */
 409
 410 #ifdef CY_CFG_SYSCLK_CLKPATH5_SOURCE
 411 secure_config->path5Src = CY_CFG_SYSCLK_CLKPATH5_SOURCE;
 412 #endif /* CY_CFG_SYSCLK_CLKPATH5_SOURCE */
 413
 414 #ifdef CY_CFG_SYSCLK_CLKFAST_DIVIDER
 415 secure_config->clkFastDiv = CY_CFG_SYSCLK_CLKFAST_DIVIDER;
 416 #endif /* CY_CFG_SYSCLK_CLKFAST_DIVIDER */
 417
 418 #ifdef CY_CFG_SYSCLK_CLKPERI_DIVIDER
 419 secure_config->clkPeriDiv = CY_CFG_SYSCLK_CLKPERI_DIVIDER;
 420 #endif /* CY_CFG_SYSCLK_CLKPERI_DIVIDER */
 421
 422 #ifdef CY_CFG_SYSCLK_CLKSLOW_DIVIDER
 423 secure_config->clkSlowDiv = CY_CFG_SYSCLK_CLKSLOW_DIVIDER;
 424 #endif /* CY_CFG_SYSCLK_CLKSLOW_DIVIDER */
 425
 426 #ifdef CY_CFG_SYSCLK_CLKHF0_CLKPATH
 427 secure_config->hf0Source = CY_CFG_SYSCLK_CLKHF0_CLKPATH;
 428 #endif /* CY_CFG_SYSCLK_CLKHF0_CLKPATH */
 429
 430 #ifdef CY_CFG_SYSCLK_CLKHF0_DIVIDER
 431 secure_config->hf0Divider = CY_CFG_SYSCLK_CLKHF0_DIVIDER;
 432 #endif /* CY_CFG_SYSCLK_CLKHF0_DIVIDER */
 433
 434 #ifdef CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ
 435 secure_config->hf0OutFreqMHz = CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ;
 436 #endif /* CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ */
 437
 438 #ifdef CY_CFG_SYSCLK_CLKHF1_CLKPATH
 439 secure_config->hf1Source = CY_CFG_SYSCLK_CLKHF1_CLKPATH;
 440 #endif /* CY_CFG_SYSCLK_CLKHF1_CLKPATH */
 441
 442 #ifdef CY_CFG_SYSCLK_CLKHF1_DIVIDER
 443 secure_config->hf1Divider = CY_CFG_SYSCLK_CLKHF1_DIVIDER;
 444 #endif /* CY_CFG_SYSCLK_CLKHF1_DIVIDER */
 445
 446 #ifdef CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ
 447 secure_config->hf1OutFreqMHz = CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ;
 448 #endif /* CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ */
 449
 450 #ifdef CY_CFG_SYSCLK_CLKHF2_CLKPATH
 451 secure_config->hf2Source = CY_CFG_SYSCLK_CLKHF2_CLKPATH;
 452 #endif /* CY_CFG_SYSCLK_CLKHF2_CLKPATH */
 453
 454 #ifdef CY_CFG_SYSCLK_CLKHF2_DIVIDER
 455 secure_config->hf2Divider = CY_CFG_SYSCLK_CLKHF2_DIVIDER;
 456 #endif /* CY_CFG_SYSCLK_CLKHF2_DIVIDER */
 457
 458 #ifdef CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ
 459 secure_config->hf2OutFreqMHz = CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ;
 460 #endif /* CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ */
 461
 462 #ifdef CY_CFG_SYSCLK_CLKHF3_CLKPATH
 463 secure_config->hf3Source = CY_CFG_SYSCLK_CLKHF3_CLKPATH;
 464 #endif /* CY_CFG_SYSCLK_CLKHF3_CLKPATH */
 465
 466 #ifdef CY_CFG_SYSCLK_CLKHF3_DIVIDER
 467 secure_config->hf3Divider = CY_CFG_SYSCLK_CLKHF3_DIVIDER;
 468 #endif /* CY_CFG_SYSCLK_CLKHF3_DIVIDER */
 469
 470 #ifdef CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ
 471 secure_config->hf3OutFreqMHz = CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ;
 472 #endif /* CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ */
 473
 474 #ifdef CY_CFG_SYSCLK_CLKHF4_CLKPATH
 475 secure_config->hf4Source = CY_CFG_SYSCLK_CLKHF4_CLKPATH;
 476 #endif /* CY_CFG_SYSCLK_CLKHF4_CLKPATH */
 477
 478 #ifdef CY_CFG_SYSCLK_CLKHF4_DIVIDER
 479 secure_config->hf4Divider = CY_CFG_SYSCLK_CLKHF4_DIVIDER;
 480 #endif /* CY_CFG_SYSCLK_CLKHF4_DIVIDER */
 481
 482 #ifdef CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ
 483 secure_config->hf4OutFreqMHz = CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ;
 484 #endif /* CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ */
 485
 486 #ifdef CY_CFG_SYSCLK_CLKHF5_CLKPATH
 487 secure_config->hf5Source = CY_CFG_SYSCLK_CLKHF5_CLKPATH;
 488 #endif /* CY_CFG_SYSCLK_CLKHF5_CLKPATH */
 489
 490 #ifdef CY_CFG_SYSCLK_CLKHF5_DIVIDER
 491 secure_config->hf5Divider = CY_CFG_SYSCLK_CLKHF5_DIVIDER;
 492 #endif /* CY_CFG_SYSCLK_CLKHF5_DIVIDER */
 493
 494 #ifdef CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ
 495 secure_config->hf5OutFreqMHz = CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ;
 496 #endif /* CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ */
 497
 498 #ifdef CY_CFG_SYSCLK_CLKPUMP_SOURCE
 499 secure_config->pumpSource = CY_CFG_SYSCLK_CLKPUMP_SOURCE;
 500 #endif /* CY_CFG_SYSCLK_CLKPUMP_SOURCE */
 501
 502 #ifdef CY_CFG_SYSCLK_CLKPUMP_DIVIDER
 503 secure_config->pumpDivider = CY_CFG_SYSCLK_CLKPUMP_DIVIDER;
 504 #endif /* CY_CFG_SYSCLK_CLKPUMP_DIVIDER */
 505
 506 #ifdef CY_CFG_SYSCLK_CLKLF_SOURCE
 507 secure_config->clkLfSource = CY_CFG_SYSCLK_CLKLF_SOURCE;
 508 #endif /* CY_CFG_SYSCLK_CLKLF_SOURCE */
 509
 510 #ifdef CY_CFG_SYSCLK_CLKBAK_SOURCE
 511 secure_config->clkBakSource = CY_CFG_SYSCLK_CLKBAK_SOURCE;
 512 #endif /* CY_CFG_SYSCLK_CLKBAK_SOURCE */
 513
 514 #ifdef CY_CFG_SYSCLK_CLKTIMER_SOURCE
 515 secure_config->clkTimerSource = CY_CFG_SYSCLK_CLKTIMER_SOURCE;
 516 #endif /* CY_CFG_SYSCLK_CLKTIMER_SOURCE */
 517
 518 #ifdef CY_CFG_SYSCLK_CLKTIMER_DIVIDER
 519 secure_config->clkTimerDivider = CY_CFG_SYSCLK_CLKTIMER_DIVIDER;
 520 #endif /* CY_CFG_SYSCLK_CLKTIMER_DIVIDER */
 521
 522 #ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE
 523 secure_config->clkSrcAltSysTick = CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE;
 524 #endif /* CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE */
 525
 526 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD
 527 secure_config->altHFcLoad = CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD;
 528 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD */
 529
 530 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME
 531 secure_config->altHFxtalStartUpTime = CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME;
 532 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME */
 533
 534 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ
 535 secure_config->altHFclkFreq = CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ;
 536 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ */
 537
 538 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV
 539 secure_config->altHFsysClkDiv = CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV;
 540 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV */
 541
 542 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR
 543 secure_config->altHFvoltageReg = CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR;
 544 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR */
" 545 public="false" include="`${is40srssAvailable}`" guard="defined (CY_DEVICE_SECURE)"/> 546 547 548 <!-- Configure Secure options --> 549 <ConfigInstruction value="#if defined(CY_DEVICE_SECURE)" include="`${is40srssAvailable}`" /> 550 <ConfigInstruction value=" cy_en_pra_status_t configStatus;" include="`${is40srssAvailable}`" /> 551 <ConfigInstruction value=" init_cycfg_secure_struct(&`${INST_NAME . "_secureConfig"}`);" include="`${is40srssAvailable}`" /> 552 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 0UL))" include="`${is40srssAvailable}`" /> 553 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 554 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 555 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH1_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH1_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 1UL))" include="`${is40srssAvailable}`" /> 556 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 557 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 558 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH2_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH2_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 2UL))" include="`${is40srssAvailable}`" /> 559 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 560 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 561 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH3_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH3_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 3UL))" include="`${is40srssAvailable}`" /> 562 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 563 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 564 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH4_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH4_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 4UL))" include="`${is40srssAvailable}`" /> 565 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 566 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 567 <ConfigInstruction value=" #if (((CY_CFG_SYSCLK_CLKPATH5_SOURCE_NUM >= 3UL) && (CY_CFG_SYSCLK_CLKPATH5_SOURCE_NUM <= 5UL)) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 5UL))" include="`${is40srssAvailable}`" /> 568 <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="`${is40srssAvailable}`" /> 569 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 570 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 571 <ConfigInstruction value=" configStatus = CY_PRA_FUNCTION_CALL_RETURN_PARAM(CY_PRA_MSG_TYPE_SYS_CFG_FUNC," include="`${is40srssAvailable}`" /> 572 <ConfigInstruction value=" CY_PRA_FUNC_INIT_CYCFG_DEVICE," include="`${is40srssAvailable}`" /> 573 <ConfigInstruction value=" &`${INST_NAME . "_secureConfig"}`);" include="`${is40srssAvailable}`" /> 574 <ConfigInstruction value=" if ( configStatus != CY_PRA_STATUS_SUCCESS )
 {
 cycfg_ClockStartupError(configStatus);
 }
" include="`${is40srssAvailable}`" /> 575 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_EXTCLK_FREQ" include="`${is40srssAvailable}`" /> 576 <ConfigInstruction value=" Cy_SysClk_ExtClkSetFrequency(CY_CFG_SYSCLK_EXTCLK_FREQ);" include="`${is40srssAvailable}`" /> 577 <ConfigInstruction value=" #endif /* CY_CFG_SYSCLK_EXTCLK_FREQ */" include="`${is40srssAvailable}`" /> 578 <ConfigInstruction value="#else /* defined(CY_DEVICE_SECURE) */" include="`${is40srssAvailable}`" /> 579 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 580 581 <!-- Configure flash wait states --> 582 <ConfigInstruction value=" /* Set worst case memory wait states (! ultra low power, 150 MHz), will update at the end */" include="`${is40srssAvailable || is40srss_ver3Available}`" /> 583 <ConfigInstruction value=" Cy_SysLib_SetWaitStates(false, 150UL);" include="`${is40srssAvailable || is40srss_ver3Available}`" /> 584 585 <!-- Configure power options --> 586 <ConfigInstruction value="#ifdef CY_CFG_PWR_ENABLED" include="true" /> 587 <ConfigInstruction value=" #ifdef CY_CFG_PWR_INIT" include="true" /> 588 <ConfigInstruction value=" init_cycfg_power();" include="true" /> 589 <ConfigInstruction value=" #else" include="true" /> 590 <ConfigInstruction value=" #warning Power system will not be configured. Update power personality to v1.20 or later." include="true" /> 591 <ConfigInstruction value=" #endif /* CY_CFG_PWR_INIT */" include="true" /> 592 <ConfigInstruction value="#endif /* CY_CFG_PWR_ENABLED */" include="true" /> 593 <ConfigInstruction value="" include="true" /> 594 595 <!-- Reset and configure platform clocks --> 596 <ConfigInstruction value="/* Disable FLL */" include="`${is40srss_ver3Available || is40srssAvailable || is40ssrssAvailable}`" /> 597 <ConfigInstruction value="Cy_SysClk_FllDeInit();" include="`${is40srss_ver3Available || is40srssAvailable || is40ssrssAvailable}`" /> 598 <ConfigInstruction value="" include="`${is40srss_ver3Available || is40srssAvailable || is40ssrssAvailable}`" /> 599 600 <ConfigInstruction value=" /* Reset the core clock path to default and disable all the FLLs/PLLs */" include="`${is40srssAvailable}`" /> 601 <ConfigInstruction value=" Cy_SysClk_ClkHfSetDivider(0U, CY_SYSCLK_CLKHF_NO_DIVIDE);" include="`${is40srssAvailable}`" /> 602 <ConfigInstruction value=" Cy_SysClk_ClkFastSetDivider(0U);" include="`${is40srssAvailable}`" /> 603 <ConfigInstruction value=" Cy_SysClk_ClkPeriSetDivider(1U);" include="`${is40srssAvailable}`" /> 604 <ConfigInstruction value=" Cy_SysClk_ClkSlowSetDivider(0U);" include="`${is40srssAvailable}`" /> 605 <ConfigInstruction value=" for (uint32_t pll = CY_SRSS_NUM_PLL; pll > 0UL; --pll) /* PLL 1 is the first PLL. 0 is invalid. */" include="`${is40srssAvailable}`" /> 606 <ConfigInstruction value=" {" include="`${is40srssAvailable}`" /> 607 <ConfigInstruction value=" (void)Cy_SysClk_PllDisable(pll);" include="`${is40srssAvailable}`" /> 608 <ConfigInstruction value=" }" include="`${is40srssAvailable}`" /> 609 <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(CY_SYSCLK_CLKHF_IN_CLKPATH1, CY_SYSCLK_CLKPATH_IN_IMO);" include="`${is40srssAvailable}`" /> 610 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 611 <ConfigInstruction value=" if ((CY_SYSCLK_CLKHF_IN_CLKPATH0 == Cy_SysClk_ClkHfGetSource(0UL)) &&" include="`${is40srssAvailable}`" /> 612 <ConfigInstruction value=" (CY_SYSCLK_CLKPATH_IN_WCO == Cy_SysClk_ClkPathGetSource(CY_SYSCLK_CLKHF_IN_CLKPATH0)))" include="`${is40srssAvailable}`" /> 613 <ConfigInstruction value=" {" include="`${is40srssAvailable}`" /> 614 <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0U, CY_SYSCLK_CLKHF_IN_CLKPATH1);" include="`${is40srssAvailable}`" /> 615 <ConfigInstruction value=" }" include="`${is40srssAvailable}`" /> 616 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 617 <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(CY_SYSCLK_CLKHF_IN_CLKPATH0, CY_SYSCLK_CLKPATH_IN_IMO);" include="`${is40srssAvailable}`" /> 618 <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0UL, CY_SYSCLK_CLKHF_IN_CLKPATH0);" include="`${is40srssAvailable}`" /> 619 <ConfigInstruction value=" #ifdef CY_IP_MXBLESS" include="`${is40srssAvailable}`" /> 620 <ConfigInstruction value=" (void)Cy_BLE_EcoReset();" include="`${is40srssAvailable}`" /> 621 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 622 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 623 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 624 625 626 <!-- Enable all source clocks --> 627 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ILO0_ENABLED" include="`${is40srss_ver3Available}`" /> 628 <ConfigInstruction value=" Cy_SysClk_Ilo0Init();" include="`${is40srss_ver3Available}`" /> 629 <ConfigInstruction value="#else" include="`${is40srss_ver3Available}`" /> 630 <ConfigInstruction value=" Cy_SysClk_Ilo0DeInit();" include="`${is40srss_ver3Available}`" /> 631 632 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available}`" /> 633 <ConfigInstruction value="" include="`${is40srss_ver3Available}`" /> 634 635 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ILO1_ENABLED" include="`${is40srss_ver3Available}`" /> 636 <ConfigInstruction value=" Cy_SysClk_Ilo1Init();" include="`${is40srss_ver3Available}`" /> 637 <ConfigInstruction value="#else" include="`${is40srss_ver3Available}`" /> 638 <ConfigInstruction value=" Cy_SysClk_Ilo1DeInit();" include="`${is40srss_ver3Available}`" /> 639 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available}`" /> 640 <ConfigInstruction value="" include="`${is40srss_ver3Available}`" /> 641 642 <!-- Enable all source clocks --> 643 <ConfigInstruction value="/* Enable all source clocks */" include="true" /> 644 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PILO_ENABLED" include="true" /> 645 <ConfigInstruction value=" Cy_SysClk_PiloInit();" include="true" /> 646 <ConfigInstruction value="#endif" include="true" /> 647 <ConfigInstruction value="" include="true" /> 648 649 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_WCO_ENABLED" include="true" /> 650 <ConfigInstruction value=" Cy_SysClk_WcoInit();" include="true" /> 651 <ConfigInstruction value="#endif" include="true" /> 652 <ConfigInstruction value="" include="true" /> 653 654 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ECO_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 655 <ConfigInstruction value=" Cy_SysClk_EcoInit();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 656 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 657 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 658 659 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKLF_ENABLED" include="true" /> <!--CDT 264793--> 660 <ConfigInstruction value=" Cy_SysClk_ClkLfInit();" include="true" /> 661 <ConfigInstruction value="#endif" include="true" /> 662 <ConfigInstruction value="" include="true" /> 663 664 <ConfigInstruction value=" #if (defined(CY_IP_M4CPUSS) && CY_CFG_SYSCLK_ALTHF_ENABLED)
" include="`${is40srssAvailable}`" /> 665 <ConfigInstruction value=" Cy_SysClk_AltHfInit();" include="`${is40srssAvailable}`" /> 666 <ConfigInstruction value=" #endif /* (defined(CY_IP_M4CPUSS) && CY_CFG_SYSCLK_ALTHF_ENABLED */
" include="`${is40srssAvailable}`" /> 667 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 668 669 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_ECO_ENABLED" include="`${is40srssAvailable}`" /> 670 <ConfigInstruction value=" Cy_SysClk_EcoInit();" include="`${is40srssAvailable}`" /> 671 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 672 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 673 674 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_EXTCLK_ENABLED" include="true" /> 675 <ConfigInstruction value=" Cy_SysClk_ExtClkInit();" include="true" /> 676 <ConfigInstruction value="#endif" include="true" /> 677 <ConfigInstruction value="" include="true" /> 678 679 <!-- Configure CPU clock dividers --> 680 <ConfigInstruction value=" /* Configure CPU clock dividers */" include="`${is40srssAvailable}`" /> 681 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKFAST_ENABLED" include="`${is40srssAvailable}`" /> 682 <ConfigInstruction value=" Cy_SysClk_ClkFastInit();" include="`${is40srssAvailable}`" /> 683 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 684 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 685 686 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPERI_ENABLED" include="`${is40srssAvailable}`" /> 687 <ConfigInstruction value=" Cy_SysClk_ClkPeriInit();" include="`${is40srssAvailable}`" /> 688 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 689 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 690 691 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKSLOW_ENABLED" include="`${is40srssAvailable}`" /> 692 <ConfigInstruction value=" Cy_SysClk_ClkSlowInit();" include="`${is40srssAvailable}`" /> 693 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 694 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 695 696 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_IHO_ENABLED" include="`${is40ssrssAvailable}`" /> 697 <ConfigInstruction value=" Cy_SysClk_IhoInit();" include="`${is40ssrssAvailable}`" /> 698 <ConfigInstruction value="#endif" include="`${is40ssrssAvailable}`" /> 699 <ConfigInstruction value="" include="`${is40ssrssAvailable}`" /> 700 701 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ALTHF_ENABLED" include="`${is40ssrssAvailable || is22srssAvailable}`" /> 702 <ConfigInstruction value=" Cy_SysClk_AltHfInit();" include="`${is40ssrssAvailable || is22srssAvailable}`" /> 703 <ConfigInstruction value="#endif" include="`${is40ssrssAvailable}`" /> 704 <ConfigInstruction value="" include="`${is40ssrssAvailable}`" /> 705 706 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ALTHF_ENABLED" include="`${is40srss_ver3Available}`" /> 707 <ConfigInstruction value=" Cy_SysClk_AltHfInit();" include="`${is40srss_ver3Available}`" /> 708 <ConfigInstruction value="#endif" include="`${is22srssAvailable || is40srss_ver3Available}`" /> 709 <ConfigInstruction value="" include="`${is22srssAvailable || is40srss_ver3Available}`" /> 710 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPERI_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 711 <ConfigInstruction value=" Cy_SysClk_ClkPeriInit();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 712 <ConfigInstruction value=" #endif" include="`${is22srssAvailable || is40srss_ver3Available}`" /> 713 <ConfigInstruction value="" include="`${is22srssAvailable || is40srss_ver3Available}`" /> 714 715 <!-- If CLKHF0 clocked from WCO --> 716 <ConfigInstruction value=" #if ((CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM == 0x6UL) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 0U))" include="`${is40srssAvailable}`" /> 717 <ConfigInstruction value=" /* Configure HFCLK0 to temporarily run from IMO to initialize other clocks */" include="`${is40srssAvailable}`" /> 718 <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(1UL, CY_SYSCLK_CLKPATH_IN_IMO);" include="`${is40srssAvailable}`" /> 719 <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0UL, CY_SYSCLK_CLKHF_IN_CLKPATH1);" include="`${is40srssAvailable}`" /> 720 <ConfigInstruction value=" #else" include="`${is40srssAvailable}`" /> 721 <ConfigInstruction value="/* Configure Path Clocks */" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 722 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED" include="true" /> 723 <ConfigInstruction value=" Cy_SysClk_ClkPath1Init();" include="true" /> 724 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 725 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 726 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 727 728 <!-- Configure Path Clocks --> 729 <ConfigInstruction value=" /* Configure Path Clocks */" include="`${is40srssAvailable}`" /> 730 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH0_ENABLED" include="`${is40srssAvailable}`" /> 731 <ConfigInstruction value=" Cy_SysClk_ClkPath0Init();" include="`${is40srssAvailable}`" /> 732 <ConfigInstruction value="#endif" include="true" /> 733 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH2_ENABLED" include="true" /> 734 <ConfigInstruction value=" Cy_SysClk_ClkPath2Init();" include="true" /> 735 <ConfigInstruction value="#endif" include="true" /> 736 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH3_ENABLED" include="true" /> 737 <ConfigInstruction value=" Cy_SysClk_ClkPath3Init();" include="true" /> 738 <ConfigInstruction value="#endif" include="true" /> 739 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH4_ENABLED" include="true" /> 740 <ConfigInstruction value=" Cy_SysClk_ClkPath4Init();" include="true" /> 741 <ConfigInstruction value="#endif" include="true" /> 742 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH5_ENABLED" include="true" /> 743 <ConfigInstruction value=" Cy_SysClk_ClkPath5Init();" include="true" /> 744 <ConfigInstruction value="#endif" include="true" /> 745 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH6_ENABLED" include="true" /> 746 <ConfigInstruction value=" Cy_SysClk_ClkPath6Init();" include="true" /> 747 <ConfigInstruction value="#endif" include="true" /> 748 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH7_ENABLED" include="true" /> 749 <ConfigInstruction value=" Cy_SysClk_ClkPath7Init();" include="true" /> 750 <ConfigInstruction value="#endif" include="true" /> 751 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH8_ENABLED" include="true" /> 752 <ConfigInstruction value=" Cy_SysClk_ClkPath8Init();" include="true" /> 753 <ConfigInstruction value="#endif" include="true" /> 754 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH9_ENABLED" include="true" /> 755 <ConfigInstruction value=" Cy_SysClk_ClkPath9Init();" include="true" /> 756 <ConfigInstruction value="#endif" include="true" /> 757 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH10_ENABLED" include="true" /> 758 <ConfigInstruction value=" Cy_SysClk_ClkPath10Init();" include="true" /> 759 <ConfigInstruction value="#endif" include="true" /> 760 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH11_ENABLED" include="true" /> 761 <ConfigInstruction value=" Cy_SysClk_ClkPath11Init();" include="true" /> 762 <ConfigInstruction value="#endif" include="true" /> 763 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH12_ENABLED" include="true" /> 764 <ConfigInstruction value=" Cy_SysClk_ClkPath12Init();" include="true" /> 765 <ConfigInstruction value="#endif" include="true" /> 766 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH13_ENABLED" include="true" /> 767 <ConfigInstruction value=" Cy_SysClk_ClkPath13Init();" include="true" /> 768 <ConfigInstruction value="#endif" include="true" /> 769 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH14_ENABLED" include="true" /> 770 <ConfigInstruction value=" Cy_SysClk_ClkPath14Init();" include="true" /> 771 <ConfigInstruction value="#endif" include="true" /> 772 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH15_ENABLED" include="true" /> 773 <ConfigInstruction value=" Cy_SysClk_ClkPath15Init();" include="true" /> 774 <ConfigInstruction value="#endif" include="true" /> 775 <ConfigInstruction value="" include="true" /> 776 777 <ConfigInstruction value="/* Configure and enable FLL */" include="`${is40srssAvailable}`" /> 778 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_FLL_ENABLED" include="`${is40srssAvailable}`" /> 779 <ConfigInstruction value=" Cy_SysClk_FllInit();" include="`${is40srssAvailable}`" /> 780 <ConfigInstruction value="#endif" include="`${is40srssAvailable}`" /> 781 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 782 783 <ConfigInstruction value="Cy_SysClk_ClkHf0Init();" include="`${is40srssAvailable}`" /> 784 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 785 786 <!-- If CLKHF0 clocked from WCO --> 787 <ConfigInstruction value="#if ((CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM == 0x6UL) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 0U))" include="`${is40srssAvailable}`" /> 788 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED" include="`${is40srssAvailable}`" /> 789 <ConfigInstruction value=" /* Apply the ClkPath1 user setting */" include="`${is40srssAvailable}`" /> 790 <ConfigInstruction value=" Cy_SysClk_ClkPath1Init();" include="`${is40srssAvailable}`" /> 791 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 792 <ConfigInstruction value="#endif" include="`${is40srssAvailable}`" /> 793 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 794 795 <ConfigInstruction value="/* Configure and enable PLLs */" include="`${is40srssAvailable}`" /> 796 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL0_ENABLED" include="`${is40srssAvailable}`" /> 797 <ConfigInstruction value=" Cy_SysClk_Pll0Init();" include="`${is40srssAvailable}`" /> 798 <ConfigInstruction value="#endif" include="`${is40srssAvailable}`" /> 799 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL1_ENABLED" include="`${is40srssAvailable}`" /> 800 <ConfigInstruction value=" Cy_SysClk_Pll1Init();" include="`${is40srssAvailable}`" /> 801 <ConfigInstruction value="#endif" include="`${is40srssAvailable}`" /> 802 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL2_ENABLED" include="`${is40srssAvailable}`" /> 803 <ConfigInstruction value=" Cy_SysClk_Pll2Init();" include="`${is40srssAvailable}`" /> 804 <ConfigInstruction value="#endif" include="`${is40srssAvailable}`" /> 805 806 <ConfigInstruction value="/* Configure and enable PLLs */" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 807 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL0_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 808 <ConfigInstruction value=" Cy_SysClk_Pll0Init();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 809 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 810 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL1_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 811 <ConfigInstruction value=" Cy_SysClk_Pll1Init();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 812 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 813 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL2_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 814 <ConfigInstruction value=" Cy_SysClk_Pll2Init();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 815 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 816 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL3_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 817 <ConfigInstruction value=" Cy_SysClk_Pll3Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 818 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 819 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL4_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 820 <ConfigInstruction value=" Cy_SysClk_Pll4Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 821 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable}`" /> 822 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL5_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 823 <ConfigInstruction value=" Cy_SysClk_Pll5Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 824 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 825 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL6_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 826 <ConfigInstruction value=" Cy_SysClk_Pll6Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 827 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 828 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL7_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 829 <ConfigInstruction value=" Cy_SysClk_Pll7Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 830 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 831 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL8_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 832 <ConfigInstruction value=" Cy_SysClk_Pll8Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 833 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 834 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL9_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 835 <ConfigInstruction value=" Cy_SysClk_Pll9Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 836 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 837 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL10_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 838 <ConfigInstruction value=" Cy_SysClk_Pll10Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 839 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 840 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL11_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 841 <ConfigInstruction value=" Cy_SysClk_Pll11Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 842 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 843 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL12_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 844 <ConfigInstruction value=" Cy_SysClk_Pll12Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 845 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 846 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL13_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 847 <ConfigInstruction value=" Cy_SysClk_Pll13Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 848 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 849 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_PLL14_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 850 <ConfigInstruction value=" Cy_SysClk_Pll14Init();" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 851 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 852 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable || is40srssAvailable || is40srssAvailable}`" /> 853 <!-- Configure HF clocks --> 854 <ConfigInstruction value="/* Configure HF clocks */" include="true" /> 855 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF1_ENABLED" include="true" /> 856 <ConfigInstruction value=" Cy_SysClk_ClkHf1Init();" include="true" /> 857 <ConfigInstruction value="#endif" include="true" /> 858 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF2_ENABLED" include="true" /> 859 <ConfigInstruction value=" Cy_SysClk_ClkHf2Init();" include="true" /> 860 <ConfigInstruction value="#endif" include="true" /> 861 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF3_ENABLED" include="true" /> 862 <ConfigInstruction value=" Cy_SysClk_ClkHf3Init();" include="true" /> 863 <ConfigInstruction value="#endif" include="true" /> 864 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF4_ENABLED" include="true" /> 865 <ConfigInstruction value=" Cy_SysClk_ClkHf4Init();" include="true" /> 866 <ConfigInstruction value="#endif" include="true" /> 867 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF5_ENABLED" include="true" /> 868 <ConfigInstruction value=" Cy_SysClk_ClkHf5Init();" include="true" /> 869 <ConfigInstruction value="#endif" include="true" /> 870 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF6_ENABLED" include="true" /> 871 <ConfigInstruction value=" Cy_SysClk_ClkHf6Init();" include="true" /> 872 <ConfigInstruction value="#endif" include="true" /> 873 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF7_ENABLED" include="true" /> 874 <ConfigInstruction value=" Cy_SysClk_ClkHf7Init();" include="true" /> 875 <ConfigInstruction value="#endif" include="true" /> 876 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF8_ENABLED" include="true" /> 877 <ConfigInstruction value=" Cy_SysClk_ClkHf8Init();" include="true" /> 878 <ConfigInstruction value="#endif" include="true" /> 879 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF9_ENABLED" include="true" /> 880 <ConfigInstruction value=" Cy_SysClk_ClkHf9Init();" include="true" /> 881 <ConfigInstruction value="#endif" include="true" /> 882 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF10_ENABLED" include="true" /> 883 <ConfigInstruction value=" Cy_SysClk_ClkHf10Init();" include="true" /> 884 <ConfigInstruction value="#endif" include="true" /> 885 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF11_ENABLED" include="true" /> 886 <ConfigInstruction value=" Cy_SysClk_ClkHf11Init();" include="true" /> 887 <ConfigInstruction value="#endif" include="true" /> 888 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF12_ENABLED" include="true" /> 889 <ConfigInstruction value=" Cy_SysClk_ClkHf12Init();" include="true" /> 890 <ConfigInstruction value="#endif" include="true" /> 891 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF13_ENABLED" include="true" /> 892 <ConfigInstruction value=" Cy_SysClk_ClkHf13Init();" include="true" /> 893 <ConfigInstruction value="#endif" include="true" /> 894 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF14_ENABLED" include="true" /> 895 <ConfigInstruction value=" Cy_SysClk_ClkHf14Init();" include="true" /> 896 <ConfigInstruction value="#endif" include="true" /> 897 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKHF15_ENABLED" include="true" /> 898 <ConfigInstruction value=" Cy_SysClk_ClkHf15Init();" include="true" /> 899 <ConfigInstruction value="#endif" include="true" /> 900 <ConfigInstruction value="" include="true" /> 901 902 <!-- Configure miscellaneous clocks --> 903 <ConfigInstruction value="/* Configure miscellaneous clocks */" include="`${is40ssrssAvailable || is40srssAvailable}`" /> 904 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKTIMER_ENABLED" include="`${is40srssAvailable}`" /> 905 <ConfigInstruction value=" Cy_SysClk_ClkTimerInit();" include="`${is40srssAvailable}`" /> 906 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 907 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 908 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED" include="true" /> 909 <ConfigInstruction value=" Cy_SysClk_ClkAltSysTickInit();" include="true" /> 910 <ConfigInstruction value="#endif" include="true" /> 911 <ConfigInstruction value="" include="true" /> 912 913 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPUMP_ENABLED" include="true" /> 914 <ConfigInstruction value=" Cy_SysClk_ClkPumpInit();" include="true" /> 915 <ConfigInstruction value="#endif" include="true" /> 916 <ConfigInstruction value="" include="true" /> 917 918 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKBAK_ENABLED" include="true" /> 919 <ConfigInstruction value=" Cy_SysClk_ClkBakInit();" include="true" /> 920 <ConfigInstruction value="#endif" include="true" /> 921 <ConfigInstruction value="" include="true" /> 922 923 <!-- Configure default enabled clocks --> 924 <ConfigInstruction value="/* Configure default enabled clocks */" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 925 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_ILO_ENABLED" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 926 <ConfigInstruction value=" Cy_SysClk_IloInit();" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 927 <ConfigInstruction value="#endif" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 928 <ConfigInstruction value="" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 929 930 <ConfigInstruction value="#ifndef CY_CFG_SYSCLK_IMO_ENABLED" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 931 <ConfigInstruction value=" #error the IMO must be enabled for proper chip operation" include="`${is40ssrssAvailable || is40srss_ver3Available || is40srssAvailable}`" /> 932 <ConfigInstruction value="#endif" include="`${is40ssrssAvailable || is40srss_ver3Available}`" /> 933 <ConfigInstruction value="" include="`${is40ssrssAvailable || is40srss_ver3Available}`" /> 934 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 935 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 936 937 <ConfigInstruction value=" #ifndef CY_CFG_SYSCLK_CLKHF0_ENABLED" include="`${is40srssAvailable}`" /> 938 <ConfigInstruction value=" #error the CLKHF0 must be enabled for proper chip operation" include="`${is40srssAvailable}`" /> 939 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 940 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 941 942 <ConfigInstruction value="#endif /* defined(CY_DEVICE_SECURE) */" include="`${is40srssAvailable}`" /> 943 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 944 945 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_MFO_ENABLED" include="true" /> 946 <ConfigInstruction value=" Cy_SysClk_MfoInit();" include="true" /> 947 <ConfigInstruction value="#endif" include="true" /> 948 <ConfigInstruction value="" include="true" /> 949 950 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKMF_ENABLED" include="true" /> 951 <ConfigInstruction value=" Cy_SysClk_ClkMfInit();" include="true" /> 952 <ConfigInstruction value="#endif" include="true" /> 953 <ConfigInstruction value="" include="true" /> 954 955 <ConfigInstruction value="#if (!defined(CY_DEVICE_SECURE))" include="`${is40srssAvailable}`" /> 956 <!-- Configure final flash wait states --> 957 <ConfigInstruction value=" /* Set accurate flash wait states */" include="`${is40srssAvailable}`" /> 958 <ConfigInstruction value=" #if (defined (CY_CFG_PWR_ENABLED) && defined (CY_CFG_SYSCLK_CLKHF0_ENABLED))" include="`${is40srssAvailable}`" /> 959 <ConfigInstruction value=" Cy_SysLib_SetWaitStates(CY_CFG_PWR_USING_ULP != 0, CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ);" include="`${is40srssAvailable}`" /> 960 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 961 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 962 963 <ConfigInstruction value=" /* Set accurate flash wait states */" include="`${is40srss_ver3Available}`" /> 964 <ConfigInstruction value=" #if (defined (CY_CFG_PWR_ENABLED) && defined (CY_CFG_SYSCLK_CLKHF1_ENABLED))" include="`${is40srss_ver3Available}`" /> 965 <ConfigInstruction value=" Cy_SysLib_SetWaitStates(false, CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ);" include="`${is40srss_ver3Available}`" /> 966 <ConfigInstruction value=" #endif" include="`${is40srss_ver3Available}`" /> 967 <ConfigInstruction value="" include="`${is40srss_ver3Available}`" /> 968 969 <!-- Update System Core Clock values --> 970 <ConfigInstruction value=" /* Update System Core Clock values for correct Cy_SysLib_Delay functioning */" include="`${is40srssAvailable}`" /> 971 <ConfigInstruction value=" SystemCoreClockUpdate();" include="`${is40srssAvailable}`" /> 972 973 <!-- Finish to configure the ILO --> 974 <ConfigInstruction value=" #ifndef CY_CFG_SYSCLK_ILO_ENABLED" include="`${is40srssAvailable}`" /> 975 <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKLF_ENABLED" include="`${is40srssAvailable}`" /> 976 <ConfigInstruction value=" /* Wait 4 ILO cycles in case of unfinished CLKLF clock source transition */" include="`${is40srssAvailable}`" /> 977 <ConfigInstruction value=" Cy_SysLib_DelayUs(200U);" include="`${is40srssAvailable}`" /> <!--DRIVERS 3401--> 978 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 979 <ConfigInstruction value=" Cy_SysClk_IloDisable();" include="`${is40srssAvailable}`" /> 980 <ConfigInstruction value=" Cy_SysClk_IloHibernateOn(false);" include="`${is40srssAvailable}`" /> 981 <ConfigInstruction value=" #endif" include="`${is40srssAvailable}`" /> 982 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 983 984 <ConfigInstruction value="#endif /* (!defined(CY_DEVICE_SECURE)) */" include="`${is40srssAvailable}`" /> 985 <ConfigInstruction value="" include="`${is40srssAvailable}`" /> 986 987 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKPATH0_ENABLED" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 988 <ConfigInstruction value=" Cy_SysClk_ClkPath0Init();" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 989 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 990 991 <!-- Reset and configure platform clocks --> 992 <ConfigInstruction value="/* Configure and enable FLL */" include="`${is40srss_ver3Available || is40ssrssAvailable}`" /> 993 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_FLL_ENABLED" include="`${is40srss_ver3Available || is40ssrssAvailable}`" /> 994 <ConfigInstruction value=" Cy_SysClk_FllInit();" include="`${is40srss_ver3Available || is40ssrssAvailable}`" /> 995 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is40ssrssAvailable}`" /> 996 <ConfigInstruction value="" include="`${is40srss_ver3Available || is40ssrssAvailable}`" /> 997 998 <ConfigInstruction value="Cy_SysClk_ClkHf0Init();" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 999 <ConfigInstruction value="" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 1000 1001 <ConfigInstruction value="/* Disable Unused Clock Sources */" include="`${is40ssrssAvailable}`" /> 1002 <ConfigInstruction value="#ifndef CY_CFG_SYSCLK_IHO_ENABLED" include="`${is40ssrssAvailable}`" /> 1003 <ConfigInstruction value=" Cy_SysClk_IhoDisable();" include="`${is40ssrssAvailable}`" /> 1004 <ConfigInstruction value="#endif" include="`${is40ssrssAvailable}`" /> 1005 1006 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKFAST_0_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1007 <ConfigInstruction value=" Cy_SysClk_ClkFast_0_Init();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1008 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1009 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1010 1011 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKFAST_1_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1012 <ConfigInstruction value=" Cy_SysClk_ClkFast_1_Init();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1013 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1014 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1015 1016 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKSLOW_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1017 <ConfigInstruction value=" Cy_SysClk_ClkSlowInit();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1018 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1019 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1020 1021 <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKMEM_ENABLED" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1022 <ConfigInstruction value=" Cy_SysClk_ClkMemInit();" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1023 <ConfigInstruction value="#endif" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1024 <ConfigInstruction value="" include="`${is40srss_ver3Available || is22srssAvailable}`" /> 1025 1026 <ConfigInstruction value=" Cy_SysClk_EcoPrescalerInit();" include="true" guard="defined(CY_CFG_SYSCLK_ECO_PRESCALER_ENABLED)" /> 1027 1028 <!-- Update System Core Clock values --> 1029 <ConfigInstruction value="/* Update System Core Clock values for correct Cy_SysLib_Delay functioning */" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 1030 <ConfigInstruction value="SystemCoreClockUpdate();" include="`${is40srss_ver3Available || is40ssrssAvailable || is22srssAvailable}`" /> 1031 1032 </ConfigFirmware> 1033</Personality> 1034