1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!--**************************************************************************** 5* \file althf.cypersonality 6* \version 1.1 7* 8* \brief 9* ALTHF (BT XOSC) personality description file. 10* 11******************************************************************************** 12* \copyright 13* Copyright (c) (2020-2022), Cypress Semiconductor Corporation (an Infineon company) or 14* an affiliate of Cypress Semiconductor Corporation. 15* SPDX-License-Identifier: Apache-2.0 16* 17* Licensed under the Apache License, Version 2.0 (the "License"); 18* you may not use this file except in compliance with the License. 19* You may obtain a copy of the License at 20* 21* http://www.apache.org/licenses/LICENSE-2.0 22* 23* Unless required by applicable law or agreed to in writing, software 24* distributed under the License is distributed on an "AS IS" BASIS, 25* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26* See the License for the specific language governing permissions and 27* limitations under the License. 28*****************************************************************************--> 29 30<Personality id="mxs40alth" name="ALTHF (BT XOSC)" version="1.1" xmlns="http://cypress.com/xsd/cyhwpersonality_v7"> 31 <Dependencies> 32 <IpBlock name="mxs40ssrss" /> 33 <Resource name="srss\.clock\.althf" /> 34 </Dependencies> 35 <ExposedMembers> 36 <ExposedMember key="frequency" paramId="frequency" /> 37 <ExposedMember key="accuracy" paramId="accuracy" /> 38 </ExposedMembers> 39 <Parameters> 40 <!-- PDL documentation --> 41 <ParamDoc id="pdlDoc" name="Configuration Help" group="Overview" default="file:///`${cy_libs_path()}`/docs/pdl_api_reference_manual/html/group__group__sysclk__alt__hf.html" linkText="Open ALTHF Clock Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" /> 42 43 <ParamRange id="frequency" name="Frequency (MHz)" group="Internal" default="24000000" min="24000000" max="24000000" resolution="1" visible="false" editable="false" desc="The nominal output frequency" /> 44 <ParamChoice id="accuracy" name="Accuracy" group="Internal" default="1" visible="false" editable="false" desc="The expected accuracy of the output frequency"> 45 <Entry name="1%" value="1" visible="true" /> 46 <Entry name="0.25%" value="0.25" visible="true" /> 47 </ParamChoice> 48 49 <ParamString id="frequencyInfo" name="Frequency" group="General" default="`${formatFrequency(frequency, accuracy)}`" visible="true" editable="false" desc="The nominal output frequency" /> 50 51 </Parameters> 52 <ConfigFirmware> 53 <ConfigDefine name="CY_CFG_SYSCLK_ALTHF_ENABLED" value="1" public="false" include="true" /> 54 <ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_AltHfInit()" body=" Cy_SysClk_AltHfEnable(1000000UL);" public="false" include="true" /> 55 </ConfigFirmware> 56</Personality> 57 58