1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!--**************************************************************************** 5* \file pilo.cypersonality 6* \version 3.0 7* 8* \brief 9* PILO personality description file. 10* This supports CAT1A, CAT1B and 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="pilo" name="PILO" version="3.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7"> 32 <Dependencies> 33 <IpBlock name="mxs40srss,mxs40ssrss,mxs22srss" /> 34 <Resource name="srss\.clock\.pilo" /> 35 </Dependencies> 36 <ExposedMembers> 37 <ExposedMember key="frequency" paramId="frequency" /> 38 <ExposedMember key="accuracy" paramId="accuracy" /> 39 </ExposedMembers> 40 <Parameters> 41 <!-- PDL documentation --> 42 <ParamDoc id="pdlDoc" name="Configuration Help" group="Overview" default="file:///`${cy_libs_path()}`/docs/pdl_api_reference_manual/html/group__group__sysclk__pilo.html" linkText="Open PILO Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" /> 43 44 <ParamRange id="frequency" name="Frequency" group="Internal" default="32768" min="32768" max="32768" resolution="1" visible="false" editable="false" desc="" /> 45 <ParamRange id="accuracy" name="Accuracy" group="Internal" default="2" min="2" max="2" resolution="1" visible="false" editable="false" desc="" /> 46 <ParamString id="frequencyInfo" name="Frequency" group="General" default="`${frequency / 1000.0 . " kHz"}`" visible="true" editable="false" desc="The nominal output frequency" /> 47 <ParamString id="accuracyInfo" name="Accuracy" group="General" default="±`${accuracy . "%"}`" visible="true" editable="false" desc="The expected accuracy of the output frequency" /> 48 </Parameters> 49 <ConfigFirmware> 50 <ConfigInclude value="cy_sysclk.h" include="true" /> 51 <ConfigDefine name="CY_CFG_SYSCLK_PILO_ENABLED" value="1" public="false" include="true" /> 52 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_PiloInit()" body=" Cy_SysClk_PiloEnable();

 if(!Cy_SysClk_PiloOkay())
 {
 Cy_SysPm_TriggerXRes();
 }" public="false" include="`${("mxs40ssrss" eq getIpBlockName())}`" /> 53 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_PiloInit()" body=" Cy_SysClk_PiloEnable();" public="false" include="`${("mxs40srss" eq getIpBlockName()) || ("mxs22srss" eq getIpBlockName())}`"/> 54 </ConfigFirmware> 55</Personality> 56