<?xml version="1.0" encoding="utf-8"?> <!--**************************************************************************** * \file sysclock.cypersonality * \version 1.2 * * \brief * SysClocks personality description file. * ******************************************************************************** * \copyright * Copyright 2018-2019 Cypress Semiconductor Corporation * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************--> <Personality id="mxs40sysclocks" name="SysClocks" version="1.2" path="Clocks" xmlns="http://cypress.com/xsd/cyhwpersonality_v1"> <Dependencies> <IpBlock name="mxs40srss" /> <Resource name="srss\.clock" used="true" /> </Dependencies> <ExposedMembers /> <Parameters> <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="" /> <ParamString id="longIndent" name="Long Indent" group="Internal" default="			" visible="false" editable="false" desc="Long indent for structure generation." /> </Parameters> <ConfigFirmware> <ConfigInclude value="cy_sysclk.h" include="true" /> <ConfigInclude value="cy_pra.h" include="true" /> <ConfigInclude value="cy_pra_cfg.h" include="true" /> <ConfigInclude value="cy_ble_clk.h" include="`${hasBlock("bless[0]")}`" /> <ConfigDefine name="CY_CFG_SYSCLK_ECO_ERROR" value="1" public="false" include="true" /> <ConfigDefine name="CY_CFG_SYSCLK_ALTHF_ERROR" value="2" public="false" include="true" /> <ConfigDefine name="CY_CFG_SYSCLK_PLL_ERROR" value="3" public="false" include="true" /> <ConfigDefine name="CY_CFG_SYSCLK_FLL_ERROR" value="4" public="false" include="true" /> <ConfigDefine name="CY_CFG_SYSCLK_WCO_ERROR" value="5" public="false" include="true" /> <ConfigStruct name="`${INST_NAME . "_secureConfig"}`" type="cy_stc_pra_system_config_t" const="false" public="false" include="true" guard="defined (CY_DEVICE_SECURE) && (CY_CPU_CORTEX_M4)" > </ConfigStruct> <ConfigFunction signature="__WEAK void __NO_RETURN cycfg_ClockStartupError(uint32_t error)" body=" (void)error; /* Suppress the compiler warning */
 while(1);" public="false" include="true" /> <ConfigFunction signature="void init_cycfg_secure_struct(cy_stc_pra_system_config_t * secure_config)" body=" #ifdef CY_CFG_PWR_ENABLED
 secure_config->powerEnable = CY_CFG_PWR_ENABLED;
 #endif /* CY_CFG_PWR_ENABLED */
 
 #ifdef CY_CFG_PWR_USING_LDO
 secure_config->ldoEnable = CY_CFG_PWR_USING_LDO;
 #endif /* CY_CFG_PWR_USING_LDO */
 
 #ifdef CY_CFG_PWR_USING_PMIC
 secure_config->pmicEnable = CY_CFG_PWR_USING_PMIC;
 #endif /* CY_CFG_PWR_USING_PMIC */
 
 #ifdef CY_CFG_PWR_VBACKUP_USING_VDDD
 secure_config->vBackupVDDDEnable = CY_CFG_PWR_VBACKUP_USING_VDDD;
 #endif /* CY_CFG_PWR_VBACKUP_USING_VDDD */
 
 #ifdef CY_CFG_PWR_USING_ULP
 secure_config->ulpEnable = CY_CFG_PWR_USING_ULP;
 #endif /* CY_CFG_PWR_USING_ULP */
 
 #ifdef CY_CFG_SYSCLK_ECO_ENABLED
 secure_config->ecoEnable = CY_CFG_SYSCLK_ECO_ENABLED;
 #endif /* CY_CFG_SYSCLK_ECO_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_EXTCLK_ENABLED
 secure_config->extClkEnable = CY_CFG_SYSCLK_EXTCLK_ENABLED;
 #endif /* CY_CFG_SYSCLK_EXTCLK_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_ILO_ENABLED
 secure_config->iloEnable = CY_CFG_SYSCLK_ILO_ENABLED;
 #endif /* CY_CFG_SYSCLK_ILO_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_WCO_ENABLED
 secure_config->wcoEnable = CY_CFG_SYSCLK_WCO_ENABLED;
 #endif /* CY_CFG_SYSCLK_WCO_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_FLL_ENABLED
 secure_config->fllEnable = CY_CFG_SYSCLK_FLL_ENABLED;
 #endif /* CY_CFG_SYSCLK_FLL_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_PLL0_ENABLED
 secure_config->pll0Enable = CY_CFG_SYSCLK_PLL0_ENABLED;
 #endif /* CY_CFG_SYSCLK_PLL0_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_PLL1_ENABLED
 secure_config->pll1Enable = CY_CFG_SYSCLK_PLL1_ENABLED;
 #endif /* CY_CFG_SYSCLK_PLL1_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH0_ENABLED
 secure_config->path0Enable = CY_CFG_SYSCLK_CLKPATH0_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH0_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED
 secure_config->path1Enable = CY_CFG_SYSCLK_CLKPATH1_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH1_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH2_ENABLED
 secure_config->path2Enable = CY_CFG_SYSCLK_CLKPATH2_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH2_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH3_ENABLED
 secure_config->path3Enable = CY_CFG_SYSCLK_CLKPATH3_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH3_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH4_ENABLED
 secure_config->path4Enable = CY_CFG_SYSCLK_CLKPATH4_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH4_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH5_ENABLED
 secure_config->path5Enable = CY_CFG_SYSCLK_CLKPATH5_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPATH5_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKFAST_ENABLED
 secure_config->clkFastEnable = CY_CFG_SYSCLK_CLKFAST_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKFAST_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPERI_ENABLED
 secure_config->clkPeriEnable = CY_CFG_SYSCLK_CLKPERI_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPERI_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKSLOW_ENABLED
 secure_config->clkSlowEnable = CY_CFG_SYSCLK_CLKSLOW_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKSLOW_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF0_ENABLED
 secure_config->clkHF0Enable = CY_CFG_SYSCLK_CLKHF0_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF0_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF1_ENABLED
 secure_config->clkHF1Enable = CY_CFG_SYSCLK_CLKHF1_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF1_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF2_ENABLED
 secure_config->clkHF2Enable = CY_CFG_SYSCLK_CLKHF2_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF2_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF3_ENABLED
 secure_config->clkHF3Enable = CY_CFG_SYSCLK_CLKHF3_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF3_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF4_ENABLED
 secure_config->clkHF4Enable = CY_CFG_SYSCLK_CLKHF4_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF4_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKHF5_ENABLED
 secure_config->clkHF5Enable = CY_CFG_SYSCLK_CLKHF5_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKHF5_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKPUMP_ENABLED
 secure_config->clkPumpEnable = CY_CFG_SYSCLK_CLKPUMP_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKPUMP_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKLF_ENABLED
 secure_config->clkLFEnable = CY_CFG_SYSCLK_CLKLF_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKLF_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKBAK_ENABLED
 secure_config->clkBakEnable = CY_CFG_SYSCLK_CLKBAK_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKBAK_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKTIMER_ENABLED
 secure_config->clkTimerEnable = CY_CFG_SYSCLK_CLKTIMER_ENABLED;
 #endif /* CY_CFG_SYSCLK_CLKTIMER_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED
 #error Configuration Error : ALT SYSTICK cannot be enabled for Secure devices. 
 #endif /* CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_PILO_ENABLED
 secure_config->piloEnable = CY_CFG_SYSCLK_PILO_ENABLED;
 #endif /* CY_CFG_SYSCLK_PILO_ENABLED */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_ENABLED
 secure_config->clkAltHfEnable = CY_CFG_SYSCLK_ALTHF_ENABLED;
 #endif /* CY_CFG_SYSCLK_ALTHF_ENABLED */
 
 #ifdef CY_CFG_PWR_LDO_VOLTAGE
 secure_config->ldoVoltage = CY_CFG_PWR_LDO_VOLTAGE;
 #endif /* CY_CFG_PWR_LDO_VOLTAGE */
 
 #ifdef CY_CFG_PWR_REGULATOR_MODE_MIN
 secure_config->pwrCurrentModeMin = CY_CFG_PWR_REGULATOR_MODE_MIN;
 #endif /* CY_CFG_PWR_REGULATOR_MODE_MIN */
 
 #ifdef CY_CFG_PWR_BUCK_VOLTAGE
 secure_config->buckVoltage = CY_CFG_PWR_BUCK_VOLTAGE;
 #endif /* CY_CFG_PWR_BUCK_VOLTAGE */
 
 #ifdef CY_CFG_SYSCLK_ECO_FREQ
 secure_config->ecoFreqHz = CY_CFG_SYSCLK_ECO_FREQ;
 #endif /* CY_CFG_SYSCLK_ECO_FREQ */
 
 #ifdef CY_CFG_SYSCLK_ECO_CLOAD
 secure_config->ecoLoad = CY_CFG_SYSCLK_ECO_CLOAD;
 #endif /* CY_CFG_SYSCLK_ECO_CLOAD */
 
 #ifdef CY_CFG_SYSCLK_ECO_ESR
 secure_config->ecoEsr = CY_CFG_SYSCLK_ECO_ESR;
 #endif /* CY_CFG_SYSCLK_ECO_ESR */
 
 #ifdef CY_CFG_SYSCLK_ECO_DRIVE_LEVEL
 secure_config->ecoDriveLevel = CY_CFG_SYSCLK_ECO_DRIVE_LEVEL;
 #endif /* CY_CFG_SYSCLK_ECO_DRIVE_LEVEL */
 
 #ifdef CY_CFG_SYSCLK_ECO_GPIO_IN_PRT
 secure_config->ecoInPort = CY_CFG_SYSCLK_ECO_GPIO_IN_PRT;
 #endif /* CY_CFG_SYSCLK_ECO_GPIO_IN_PRT */
 
 #ifdef CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT
 secure_config->ecoOutPort = CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT;
 #endif /* CY_CFG_SYSCLK_ECO_GPIO_OUT_PRT */
 
 #ifdef CY_CFG_SYSCLK_ECO_GPIO_IN_PIN
 secure_config->ecoInPinNum = CY_CFG_SYSCLK_ECO_GPIO_IN_PIN;
 #endif /* CY_CFG_SYSCLK_ECO_GPIO_IN_PIN */
 
 #ifdef CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN
 secure_config->ecoOutPinNum = CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN;
 #endif /* CY_CFG_SYSCLK_ECO_GPIO_OUT_PIN */
 
 #ifdef CY_CFG_SYSCLK_EXTCLK_FREQ
 secure_config->extClkFreqHz = CY_CFG_SYSCLK_EXTCLK_FREQ;
 #endif /* CY_CFG_SYSCLK_EXTCLK_FREQ */
 
 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_PRT
 secure_config->extClkPort = CY_CFG_SYSCLK_EXTCLK_GPIO_PRT;
 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_PRT */
 
 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_PIN
 secure_config->extClkPinNum = CY_CFG_SYSCLK_EXTCLK_GPIO_PIN;
 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_PIN */
 
 #ifdef CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM
 secure_config->extClkHsiom = CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM;
 #endif /* CY_CFG_SYSCLK_EXTCLK_GPIO_HSIOM */
 
 #ifdef CY_CFG_SYSCLK_ILO_HIBERNATE
 secure_config->iloHibernateON = CY_CFG_SYSCLK_ILO_HIBERNATE;
 #endif /* CY_CFG_SYSCLK_ILO_HIBERNATE */
 
 #ifdef CY_CFG_SYSCLK_WCO_BYPASS
 secure_config->bypassEnable = CY_CFG_SYSCLK_WCO_BYPASS;
 #endif /* CY_CFG_SYSCLK_WCO_BYPASS */
 
 #ifdef CY_CFG_SYSCLK_WCO_IN_PRT
 secure_config->wcoInPort = CY_CFG_SYSCLK_WCO_IN_PRT;
 #endif /* CY_CFG_SYSCLK_WCO_IN_PRT */
 
 #ifdef CY_CFG_SYSCLK_WCO_OUT_PRT
 secure_config->wcoOutPort = CY_CFG_SYSCLK_WCO_OUT_PRT;
 #endif /* CY_CFG_SYSCLK_WCO_OUT_PRT */
 
 #ifdef CY_CFG_SYSCLK_WCO_IN_PIN
 secure_config->wcoInPinNum = CY_CFG_SYSCLK_WCO_IN_PIN;
 #endif /* CY_CFG_SYSCLK_WCO_IN_PIN */
 
 #ifdef CY_CFG_SYSCLK_WCO_OUT_PIN
 secure_config->wcoOutPinNum = CY_CFG_SYSCLK_WCO_OUT_PIN;
 #endif /* CY_CFG_SYSCLK_WCO_OUT_PIN */
 
 #ifdef CY_CFG_SYSCLK_FLL_OUT_FREQ
 secure_config->fllOutFreqHz = CY_CFG_SYSCLK_FLL_OUT_FREQ;
 #endif /* CY_CFG_SYSCLK_FLL_OUT_FREQ */
 
 #ifdef CY_CFG_SYSCLK_FLL_MULT
 secure_config->fllMult = CY_CFG_SYSCLK_FLL_MULT;
 #endif /* CY_CFG_SYSCLK_FLL_MULT */
 
 #ifdef CY_CFG_SYSCLK_FLL_REFDIV
 secure_config->fllRefDiv = CY_CFG_SYSCLK_FLL_REFDIV;
 #endif /* CY_CFG_SYSCLK_FLL_REFDIV */
 
 #ifdef CY_CFG_SYSCLK_FLL_CCO_RANGE
 secure_config->fllCcoRange = CY_CFG_SYSCLK_FLL_CCO_RANGE;
 #endif /* CY_CFG_SYSCLK_FLL_CCO_RANGE */
 
 #ifdef CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV
 secure_config->enableOutputDiv = CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV;
 #endif /* CY_CFG_SYSCLK_FLL_ENABLE_OUTDIV */
 
 #ifdef CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE
 secure_config->lockTolerance = CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE;
 #endif /* CY_CFG_SYSCLK_FLL_LOCK_TOLERANCE */
 
 #ifdef CY_CFG_SYSCLK_FLL_IGAIN
 secure_config->igain = CY_CFG_SYSCLK_FLL_IGAIN;
 #endif /* CY_CFG_SYSCLK_FLL_IGAIN */
 
 #ifdef CY_CFG_SYSCLK_FLL_PGAIN
 secure_config->pgain = CY_CFG_SYSCLK_FLL_PGAIN;
 #endif /* CY_CFG_SYSCLK_FLL_PGAIN */
 
 #ifdef CY_CFG_SYSCLK_FLL_SETTLING_COUNT
 secure_config->settlingCount = CY_CFG_SYSCLK_FLL_SETTLING_COUNT;
 #endif /* CY_CFG_SYSCLK_FLL_SETTLING_COUNT */
 
 #ifdef CY_CFG_SYSCLK_FLL_OUTPUT_MODE
 secure_config->outputMode = CY_CFG_SYSCLK_FLL_OUTPUT_MODE;
 #endif /* CY_CFG_SYSCLK_FLL_OUTPUT_MODE */
 
 #ifdef CY_CFG_SYSCLK_FLL_CCO_FREQ
 secure_config->ccoFreq = CY_CFG_SYSCLK_FLL_CCO_FREQ;
 #endif /* CY_CFG_SYSCLK_FLL_CCO_FREQ */
 
 #ifdef CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV
 secure_config->pll0FeedbackDiv = CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV;
 #endif /* CY_CFG_SYSCLK_PLL0_FEEDBACK_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL0_REFERENCE_DIV
 secure_config->pll0ReferenceDiv = CY_CFG_SYSCLK_PLL0_REFERENCE_DIV;
 #endif /* CY_CFG_SYSCLK_PLL0_REFERENCE_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_DIV
 secure_config->pll0OutputDiv = CY_CFG_SYSCLK_PLL0_OUTPUT_DIV;
 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL0_LF_MODE
 secure_config->pll0LfMode = CY_CFG_SYSCLK_PLL0_LF_MODE;
 #endif /* CY_CFG_SYSCLK_PLL0_LF_MODE */
 
 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_MODE
 secure_config->pll0OutputMode = CY_CFG_SYSCLK_PLL0_OUTPUT_MODE;
 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_MODE */
 
 #ifdef CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ
 secure_config->pll0OutFreqHz = CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ;
 #endif /* CY_CFG_SYSCLK_PLL0_OUTPUT_FREQ */
 
 #ifdef CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV
 secure_config->pll1FeedbackDiv = CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV;
 #endif /* CY_CFG_SYSCLK_PLL1_FEEDBACK_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL1_REFERENCE_DIV
 secure_config->pll1ReferenceDiv = CY_CFG_SYSCLK_PLL1_REFERENCE_DIV;
 #endif /* CY_CFG_SYSCLK_PLL1_REFERENCE_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_DIV
 secure_config->pll1OutputDiv = CY_CFG_SYSCLK_PLL1_OUTPUT_DIV;
 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_DIV */
 
 #ifdef CY_CFG_SYSCLK_PLL1_LF_MODE
 secure_config->pll1LfMode = CY_CFG_SYSCLK_PLL1_LF_MODE;
 #endif /* CY_CFG_SYSCLK_PLL1_LF_MODE */
 
 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_MODE
 secure_config->pll1OutputMode = CY_CFG_SYSCLK_PLL1_OUTPUT_MODE;
 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_MODE */
 
 #ifdef CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ
 secure_config->pll1OutFreqHz = CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ;
 #endif /* CY_CFG_SYSCLK_PLL1_OUTPUT_FREQ */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH0_SOURCE
 secure_config->path0Src = CY_CFG_SYSCLK_CLKPATH0_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH0_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH1_SOURCE
 secure_config->path1Src = CY_CFG_SYSCLK_CLKPATH1_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH1_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH2_SOURCE
 secure_config->path2Src = CY_CFG_SYSCLK_CLKPATH2_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH2_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH3_SOURCE
 secure_config->path3Src = CY_CFG_SYSCLK_CLKPATH3_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH3_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH4_SOURCE
 secure_config->path4Src = CY_CFG_SYSCLK_CLKPATH4_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH4_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPATH5_SOURCE
 secure_config->path5Src = CY_CFG_SYSCLK_CLKPATH5_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPATH5_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKFAST_DIVIDER
 secure_config->clkFastDiv = CY_CFG_SYSCLK_CLKFAST_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKFAST_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKPERI_DIVIDER
 secure_config->clkPeriDiv = CY_CFG_SYSCLK_CLKPERI_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKPERI_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKSLOW_DIVIDER
 secure_config->clkSlowDiv = CY_CFG_SYSCLK_CLKSLOW_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKSLOW_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF0_CLKPATH
 secure_config->hf0Source = CY_CFG_SYSCLK_CLKHF0_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF0_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF0_DIVIDER
 secure_config->hf0Divider = CY_CFG_SYSCLK_CLKHF0_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF0_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ
 secure_config->hf0OutFreqMHz = CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKHF1_CLKPATH
 secure_config->hf1Source = CY_CFG_SYSCLK_CLKHF1_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF1_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF1_DIVIDER
 secure_config->hf1Divider = CY_CFG_SYSCLK_CLKHF1_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF1_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ
 secure_config->hf1OutFreqMHz = CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF1_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKHF2_CLKPATH
 secure_config->hf2Source = CY_CFG_SYSCLK_CLKHF2_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF2_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF2_DIVIDER
 secure_config->hf2Divider = CY_CFG_SYSCLK_CLKHF2_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF2_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ
 secure_config->hf2OutFreqMHz = CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF2_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKHF3_CLKPATH
 secure_config->hf3Source = CY_CFG_SYSCLK_CLKHF3_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF3_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF3_DIVIDER
 secure_config->hf3Divider = CY_CFG_SYSCLK_CLKHF3_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF3_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ
 secure_config->hf3OutFreqMHz = CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF3_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKHF4_CLKPATH
 secure_config->hf4Source = CY_CFG_SYSCLK_CLKHF4_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF4_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF4_DIVIDER
 secure_config->hf4Divider = CY_CFG_SYSCLK_CLKHF4_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF4_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ
 secure_config->hf4OutFreqMHz = CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF4_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKHF5_CLKPATH
 secure_config->hf5Source = CY_CFG_SYSCLK_CLKHF5_CLKPATH;
 #endif /* CY_CFG_SYSCLK_CLKHF5_CLKPATH */
 
 #ifdef CY_CFG_SYSCLK_CLKHF5_DIVIDER
 secure_config->hf5Divider = CY_CFG_SYSCLK_CLKHF5_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKHF5_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ
 secure_config->hf5OutFreqMHz = CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ;
 #endif /* CY_CFG_SYSCLK_CLKHF5_FREQ_MHZ */
 
 #ifdef CY_CFG_SYSCLK_CLKPUMP_SOURCE
 secure_config->pumpSource = CY_CFG_SYSCLK_CLKPUMP_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKPUMP_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKPUMP_DIVIDER
 secure_config->pumpDivider = CY_CFG_SYSCLK_CLKPUMP_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKPUMP_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKLF_SOURCE
 secure_config->clkLfSource = CY_CFG_SYSCLK_CLKLF_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKLF_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKBAK_SOURCE
 secure_config->clkBakSource = CY_CFG_SYSCLK_CLKBAK_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKBAK_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKTIMER_SOURCE
 secure_config->clkTimerSource = CY_CFG_SYSCLK_CLKTIMER_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKTIMER_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_CLKTIMER_DIVIDER
 secure_config->clkTimerDivider = CY_CFG_SYSCLK_CLKTIMER_DIVIDER;
 #endif /* CY_CFG_SYSCLK_CLKTIMER_DIVIDER */
 
 #ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE
 secure_config->clkSrcAltSysTick = CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE;
 #endif /* CY_CFG_SYSCLK_CLKALTSYSTICK_SOURCE */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD
 secure_config->altHFcLoad = CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD;
 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLOAD */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME
 secure_config->altHFxtalStartUpTime = CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME;
 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_TIME */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ
 secure_config->altHFclkFreq = CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ;
 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_FREQ */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV
 secure_config->altHFsysClkDiv = CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV;
 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_CLK_DIV */
 
 #ifdef CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR
 secure_config->altHFvoltageReg = CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR;
 #endif /* CY_CFG_SYSCLK_ALTHF_BLE_ECO_VOL_REGULATOR */
" public="false" include="true" guard="defined (CY_DEVICE_SECURE) && (CY_CPU_CORTEX_M4)"/> <!-- Configure Secure options --> <ConfigInstruction value="#if ((CY_CPU_CORTEX_M4) && (defined(CY_DEVICE_SECURE)))" include="true" /> <ConfigInstruction value=" cy_en_pra_status_t configStatus;" include="true" /> <ConfigInstruction value=" init_cycfg_secure_struct(&`${INST_NAME . "_secureConfig"}`);" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <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="true" /> <ConfigInstruction value=" #error Configuration Error : ALTHF, ILO, PILO cannot drive HF0." include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" configStatus = CY_PRA_FUNCTION_CALL_RETURN_PARAM(CY_PRA_MSG_TYPE_SYS_CFG_FUNC," include="true" /> <ConfigInstruction value=" CY_PRA_FUNC_INIT_CYCFG_DEVICE," include="true" /> <ConfigInstruction value=" &`${INST_NAME . "_secureConfig"}`);" include="true" /> <ConfigInstruction value=" if ( configStatus != CY_PRA_STATUS_SUCCESS )
 {
 cycfg_ClockStartupError(configStatus);
 }
" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_EXTCLK_FREQ" include="true" /> <ConfigInstruction value=" Cy_SysClk_ExtClkSetFrequency(CY_CFG_SYSCLK_EXTCLK_FREQ);" include="true" /> <ConfigInstruction value=" #endif /* CY_CFG_SYSCLK_EXTCLK_FREQ */" include="true" /> <ConfigInstruction value="#else /* ((CY_CPU_CORTEX_M4) && (defined(CY_DEVICE_SECURE))) */" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure flash wait states --> <ConfigInstruction value=" /* Set worst case memory wait states (! ultra low power, 150 MHz), will update at the end */" include="true" /> <ConfigInstruction value=" Cy_SysLib_SetWaitStates(false, 150UL);" include="true" /> <!-- Configure power options --> <ConfigInstruction value=" #ifdef CY_CFG_PWR_ENABLED" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_PWR_INIT" include="true" /> <ConfigInstruction value=" init_cycfg_power();" include="true" /> <ConfigInstruction value=" #else" include="true" /> <ConfigInstruction value=" #warning Power system will not be configured. Update power personality to v1.20 or later." include="true" /> <ConfigInstruction value=" #endif /* CY_CFG_PWR_INIT */" include="true" /> <ConfigInstruction value=" #endif /* CY_CFG_PWR_ENABLED */" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Reset and configure platform clocks --> <ConfigInstruction value=" /* Reset the core clock path to default and disable all the FLLs/PLLs */" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHfSetDivider(0U, CY_SYSCLK_CLKHF_NO_DIVIDE);" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkFastSetDivider(0U);" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPeriSetDivider(1U);" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkSlowSetDivider(0U);" include="true" /> <ConfigInstruction value=" for (uint32_t pll = CY_SRSS_NUM_PLL; pll > 0UL; --pll) /* PLL 1 is the first PLL. 0 is invalid. */" include="true" /> <ConfigInstruction value=" {" include="true" /> <ConfigInstruction value=" (void)Cy_SysClk_PllDisable(pll);" include="true" /> <ConfigInstruction value=" }" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(CY_SYSCLK_CLKHF_IN_CLKPATH1, CY_SYSCLK_CLKPATH_IN_IMO);" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" if ((CY_SYSCLK_CLKHF_IN_CLKPATH0 == Cy_SysClk_ClkHfGetSource(0UL)) &&" include="true" /> <ConfigInstruction value=" (CY_SYSCLK_CLKPATH_IN_WCO == Cy_SysClk_ClkPathGetSource(CY_SYSCLK_CLKHF_IN_CLKPATH0)))" include="true" /> <ConfigInstruction value=" {" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0U, CY_SYSCLK_CLKHF_IN_CLKPATH1);" include="true" /> <ConfigInstruction value=" }" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" Cy_SysClk_FllDisable();" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(CY_SYSCLK_CLKHF_IN_CLKPATH0, CY_SYSCLK_CLKPATH_IN_IMO);" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0UL, CY_SYSCLK_CLKHF_IN_CLKPATH0);" include="true" /> <ConfigInstruction value=" #ifdef CY_IP_MXBLESS" include="true" /> <ConfigInstruction value=" (void)Cy_BLE_EcoReset();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Enable all source clocks --> <ConfigInstruction value=" /* Enable all source clocks */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PILO_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_PiloInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_WCO_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_WcoInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKLF_ENABLED" include="true" /> <!--CDT 264793--> <ConfigInstruction value=" Cy_SysClk_ClkLfInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_ALTHF_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_AltHfInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_ECO_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_EcoInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_EXTCLK_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ExtClkInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure CPU clock dividers --> <ConfigInstruction value=" /* Configure CPU clock dividers */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKFAST_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkFastInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPERI_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPeriInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKSLOW_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkSlowInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- If CLKHF0 clocked from WCO --> <ConfigInstruction value=" #if ((CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM == 0x6UL) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 0U))" include="true" /> <ConfigInstruction value=" /* Configure HFCLK0 to temporarily run from IMO to initialize other clocks */" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPathSetSource(1UL, CY_SYSCLK_CLKPATH_IN_IMO);" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHfSetSource(0UL, CY_SYSCLK_CLKHF_IN_CLKPATH1);" include="true" /> <ConfigInstruction value=" #else" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath1Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure Path Clocks --> <ConfigInstruction value=" /* Configure Path Clocks */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH0_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath0Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH2_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath2Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH3_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath3Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH4_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath4Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH5_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath5Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH6_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath6Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH7_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath7Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH8_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath8Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH9_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath9Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH10_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath10Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH11_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath11Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH12_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath12Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH13_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath13Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH14_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath14Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH15_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath15Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" /* Configure and enable FLL */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_FLL_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_FllInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf0Init();" include="true" /> <ConfigInstruction value="" include="true" /> <!-- If CLKHF0 clocked from WCO --> <ConfigInstruction value=" #if ((CY_CFG_SYSCLK_CLKPATH0_SOURCE_NUM == 0x6UL) && (CY_CFG_SYSCLK_CLKHF0_CLKPATH_NUM == 0U))" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPATH1_ENABLED" include="true" /> <ConfigInstruction value=" /* Apply the ClkPath1 user setting */" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPath1Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" /* Configure and enable PLLs */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL0_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll0Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL1_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll1Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL2_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll2Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL3_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll3Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL4_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll4Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL5_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll5Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL6_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll6Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL7_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll7Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL8_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll8Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL9_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll9Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL10_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll10Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL11_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll11Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL12_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll12Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL13_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll13Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_PLL14_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_Pll14Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure HF clocks --> <ConfigInstruction value=" /* Configure HF clocks */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF1_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf1Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF2_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf2Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF3_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf3Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF4_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf4Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF5_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf5Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF6_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf6Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF7_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf7Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF8_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf8Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF9_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf9Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF10_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf10Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF11_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf11Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF12_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf12Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF13_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf13Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF14_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf14Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKHF15_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkHf15Init();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure miscellaneous clocks --> <ConfigInstruction value=" /* Configure miscellaneous clocks */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKTIMER_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkTimerInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKALTSYSTICK_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkAltSysTickInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKPUMP_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkPumpInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKBAK_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkBakInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Configure default enabled clocks --> <ConfigInstruction value=" /* Configure default enabled clocks */" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_ILO_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_IloInit();" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifndef CY_CFG_SYSCLK_IMO_ENABLED" include="true" /> <ConfigInstruction value=" #error the IMO must be enabled for proper chip operation" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value=" #ifndef CY_CFG_SYSCLK_CLKHF0_ENABLED" include="true" /> <ConfigInstruction value=" #error the CLKHF0 must be enabled for proper chip operation" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="#endif /* ((CY_CPU_CORTEX_M4) && (defined(CY_DEVICE_SECURE))) */" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_MFO_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_MfoInit();" include="true" /> <ConfigInstruction value="#endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="#ifdef CY_CFG_SYSCLK_CLKMF_ENABLED" include="true" /> <ConfigInstruction value=" Cy_SysClk_ClkMfInit();" include="true" /> <ConfigInstruction value="#endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="#if ((!CY_CPU_CORTEX_M4) || (!defined(CY_DEVICE_SECURE)))" include="true" /> <!-- Configure final flash wait states --> <ConfigInstruction value=" /* Set accurate flash wait states */" include="true" /> <ConfigInstruction value=" #if (defined (CY_CFG_PWR_ENABLED) && defined (CY_CFG_SYSCLK_CLKHF0_ENABLED))" include="true" /> <ConfigInstruction value=" Cy_SysLib_SetWaitStates(CY_CFG_PWR_USING_ULP != 0, CY_CFG_SYSCLK_CLKHF0_FREQ_MHZ);" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <!-- Update System Core Clock values --> <ConfigInstruction value=" /* Update System Core Clock values for correct Cy_SysLib_Delay functioning */" include="true" /> <ConfigInstruction value=" SystemCoreClockUpdate();" include="true" /> <!-- Finish to configure the ILO --> <ConfigInstruction value=" #ifndef CY_CFG_SYSCLK_ILO_ENABLED" include="true" /> <ConfigInstruction value=" #ifdef CY_CFG_SYSCLK_CLKLF_ENABLED" include="true" /> <ConfigInstruction value=" /* Wait 4 ILO cycles in case of unfinished CLKLF clock source transition */" include="true" /> <ConfigInstruction value=" Cy_SysLib_DelayUs(200U);" include="true" /> <!--DRIVERS 3401--> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value=" Cy_SysClk_IloDisable();" include="true" /> <ConfigInstruction value=" Cy_SysClk_IloHibernateOn(false);" include="true" /> <ConfigInstruction value=" #endif" include="true" /> <ConfigInstruction value="" include="true" /> <ConfigInstruction value="#endif /* ((!CY_CPU_CORTEX_M4) || (!defined(CY_DEVICE_SECURE))) */" include="true" /> <ConfigInstruction value="" include="true" /> </ConfigFirmware> </Personality>