Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
75 lines
5.4 KiB
XML
75 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--****************************************************************************
|
|
* \file Timer.cypersonality
|
|
* \version 1.0
|
|
*
|
|
* \brief
|
|
* Timer personality description file.
|
|
*
|
|
********************************************************************************
|
|
* \copyright
|
|
* Copyright 2020 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="mxs40timer" name="Timer" version="1.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v3">
|
|
<Dependencies>
|
|
<IpBlock name="mxs40pass_ver2" />
|
|
<Resource name="pass\.timer"/>
|
|
<!--DependentResource name="pass.sar" /-->
|
|
</Dependencies>
|
|
<ExposedMembers>
|
|
<ExposedMember key="frequency" paramId="frequency" />
|
|
<ExposedMember key="accuracy" paramId="accuracy" />
|
|
<ExposedMember key="error" paramId="error" />
|
|
</ExposedMembers>
|
|
<Parameters>
|
|
<!-- PDL documentation -->
|
|
<ParamDoc id="pdlDoc" name="Configuration Help" group="Peripheral Documentation" default="file:///`${cy_libs_path()}`/docs/pdl_api_reference_manual/html/group__group__sysanalog.html" linkText="Open SysAnalog Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" />
|
|
|
|
<ParamChoice id="clock" name="Clock Source" group="General" default="CY_SYSANALOG_TIMER_CLK_PERI" visible="true" editable="true" desc="Select the input clock source" >
|
|
<Entry name="Peripheral Clock" value="CY_SYSANALOG_TIMER_CLK_PERI" visible="true" />
|
|
<Entry name="Deep Sleep Clock" value="CY_SYSANALOG_TIMER_CLK_DEEPSLEEP" visible="true" />
|
|
<Entry name="CLK_LF" value="CY_SYSANALOG_TIMER_CLK_LF" visible="true" />
|
|
</ParamChoice>
|
|
|
|
<ParamBool id="debug" name="debug" group="Internal" default="false" visible="false" editable="false" desc="" />
|
|
<ParamString id="sourceClockRsc" name="sourceClockRsc" group="Internal" default="`${clock eq CY_SYSANALOG_TIMER_CLK_DEEPSLEEP ? "pass[0].dpslp[0]" : clock eq CY_SYSANALOG_TIMER_CLK_LF ? "srss[0].clock[0].lfclk[0]" : "srss[0].clock[0].periclk[0]"}`" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamBool id="srcNotUsed" name="srcNotUsed" group="Internal" default="`${!isBlockUsed(sourceClockRsc)}`" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamBool id="error" name="error" group="Internal" default="`${srcNotUsed || getExposedMember(sourceClockRsc, "error")}`" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamRange id="sourceFreq" name="sourceFreq" group="Internal" default="`${!error ? getExposedMember(sourceClockRsc, "frequency") : 0}`" min="0" max="1000000000" resolution="0.001" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamString id="accuracy" name="accuracy" group="Internal" default="`${!error ? getExposedMember(sourceClockRsc, "accuracy") : 0}`" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamString id="sourceFrequencyInfo" name="Source Frequency" group="General" default="`${formatFrequency(sourceFreq,accuracy)}`" visible="true" editable="false" desc="Source clock frequency" />
|
|
<ParamRange id="period" name="Period" group="General" default="4000" min="1" max="65536" resolution="1" visible="true" editable="true" desc="The Timer period"/>
|
|
<ParamRange id="frequency" name="frequency" group="Internal" default="`${sourceFreq / period}`" min="0" max="400000000" resolution="0.001" visible="`${debug}`" editable="false" desc="" />
|
|
<ParamString id="frequencyInfo" name="Frequency" group="General" default="`${formatFrequency(frequency,accuracy)}`" visible="true" editable="false" desc="The resulting TIMER output trigger frequency" />
|
|
</Parameters>
|
|
|
|
<DRCs>
|
|
<DRC type="ERROR" text="Source clock for Timer is not enabled" condition="`${error}`" >
|
|
<FixIt action="ENABLE_BLOCK" target="`${sourceClockRsc}`" value="" valid="true" />
|
|
</DRC>
|
|
<DRC type="ERROR" text="Timer clock source using duty cycling. Please select different clock source for Deep Sleep clock or disable duty cycling for LPOSC." condition="`${(clock eq "CY_SYSANALOG_TIMER_CLK_DEEPSLEEP") ? (((isBlockUsed("pass[0].dpslp[0]")) ? (getExposedMember("pass[0].dpslp[0]", "clock") eq "CY_SYSANALOG_DEEPSLEEP_SRC_LPOSC") : false) ? ((isBlockUsed("pass[0].lposc[0]")) ? (getExposedMember("pass[0].lposc[0]", "dsMode") eq "CY_SYSANALOG_LPOSC_DUTY_CYCLED") : false) : (false)) : (false)}`" >
|
|
</DRC>
|
|
</DRCs>
|
|
|
|
<ConfigFirmware>
|
|
<ConfigInclude value="cy_sysanalog.h" include="true" />
|
|
<ConfigDefine name="CY_CFG_SYSANALOG_TIMER_CLOCK" value="`${clock}`" public="true" include="true" />
|
|
<ConfigDefine name="CY_CFG_SYSANALOG_TIMER_PERIOD" value="`${period}`" public="true" include="true" />
|
|
</ConfigFirmware>
|
|
</Personality>
|