1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!--**************************************************************************** 5* \file mfo.cypersonality 6* \version 3.0 7* 8* \brief 9* MFO personality description file. 10* This supports CAT1A and CAT1C devices. 11* 12******************************************************************************** 13* \copyright 14* Copyright (c) (2020-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="mfo" name="MFO" version="3.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7"> 32 <Dependencies> 33 <IpBlock name="mxs40srss,mxs40ssrss" /> 34 <Resource name="srss\.clock\.mfo" /> 35 </Dependencies> 36 <ExposedMembers> 37 <ExposedMember key="frequency" paramId="frequency" /> 38 <ExposedMember key="accuracy" paramId="accuracy" /> 39 <ExposedMember key="error" paramId="error" /> 40 <ExposedMember key="dsen" paramId="dsen" /> 41 </ExposedMembers> 42 <Parameters> 43 <!-- PDL documentation --> 44 <ParamDoc id="pdlDoc" name="Configuration Help" group="Overview" default="file:///`${cy_libs_path()}`/docs/pdl_api_reference_manual/html/group__group__sysclk.html" linkText="Open SysClk Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" /> 45 46 <ParamString id="sourceClockRsc" name="Source Clock" group="Internal" default="srss[0].clock[0].imo[0]" visible="false" editable="false" desc="" /> 47 <ParamBool id="error" name="Clock Error" group="Internal" default="`${!isBlockUsed(sourceClockRsc)}`" visible="false" editable="false" desc="" /> 48 <ParamRange id="sourceFreq" name="Source Frequency" group="Internal" default="`${!error ? getExposedMember(sourceClockRsc, "frequency") : 0}`" min="0" max="8000000" resolution="1" visible="false" editable="false" desc="" /> 49 <ParamRange id="frequency" name="Frequency" group="Internal" default="`${sourceFreq / 4}`" min="0" max="2000000" resolution="1" visible="false" editable="false" desc="" /> 50 <ParamString id="accuracy" name="Accuracy" group="Internal" default="`${!error ? getExposedMember(sourceClockRsc, "accuracy") : 0}`" visible="false" editable="false" desc="" /> 51 <ParamString id="sourceFrequencyInfo" name="Source Frequency" group="General" default="`${formatFrequency(sourceFreq,accuracy)}`" visible="true" editable="false" desc="IMO clock frequency" /> 52 <ParamRange id="divider" name="Divider" group="General" default="4" min="1" max="4" resolution="1" visible="true" editable="false" desc="The source clock frequency divider" /> 53 <ParamString id="frequencyInfo" name="Frequency" group="General" default="`${formatFrequency(frequency, accuracy)}`" visible="true" editable="false" desc="The typical output frequency is IMO / 4" /> 54 <ParamBool id="dsen" name="Deep Sleep Enable" group="General" default="false" visible="true" editable="true" desc="Enable MFO during Deep Sleep: false - MFO is automatically disabled during Deep Sleep and enables upon wakeup, true - MFO is kept enabled throughout Deep Sleep" /> 55 </Parameters> 56 <DRCs> 57 <DRC type="ERROR" text="Source clock for MFO is not enabled" condition="`${error}`" > 58 <FixIt action="ENABLE_BLOCK" target="`${sourceClockRsc}`" value="" valid="true" /> 59 </DRC> 60 </DRCs> 61 <ConfigFirmware> 62 <ConfigInclude value="cy_sysclk.h" include="true" /> 63 <ConfigDefine name="CY_CFG_SYSCLK_MFO_ENABLED" value="1" public="false" include="true" /> 64 <ConfigDefine name="CY_CFG_SYSCLK_MFO_DEEPSLEEP_ENABLED" value="`${dsen}`" public="false" include="true" /> 65 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_MfoInit()" body=" Cy_SysClk_MfoEnable(CY_CFG_SYSCLK_MFO_DEEPSLEEP_ENABLED);" public="false" include="true" /> 66 </ConfigFirmware> 67</Personality> 68