1<?xml version="1.0" encoding="utf-8"?>
2
3
4<!--****************************************************************************
5* \file LpOsc.cypersonality
6* \version 1.0
7*
8* \brief
9* Low Power Oscillator personality description file.
10*
11********************************************************************************
12* \copyright
13* Copyright 2020 Cypress Semiconductor Corporation
14* SPDX-License-Identifier: Apache-2.0
15*
16* Licensed under the Apache License, Version 2.0 (the "License");
17* you may not use this file except in compliance with the License.
18* You may obtain a copy of the License at
19*
20*     http://www.apache.org/licenses/LICENSE-2.0
21*
22* Unless required by applicable law or agreed to in writing, software
23* distributed under the License is distributed on an "AS IS" BASIS,
24* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25* See the License for the specific language governing permissions and
26* limitations under the License.
27*****************************************************************************-->
28
29<Personality id="mxs40lposc" name="LpOsc" version="1.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v7">
30  <Dependencies>
31    <IpBlock name="mxs40pass_ver2" />
32    <Resource name="pass\.lposc"/>
33  </Dependencies>
34  <ExposedMembers>
35    <ExposedMember key="frequency" paramId="frequency" />
36    <ExposedMember key="accuracy"  paramId="accuracy" />
37    <ExposedMember key="error"     paramId="error" />
38    <ExposedMember key="dsMode"    paramId="dsMode" />
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__sysanalog.html" linkText="Open SysAnalog Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" />
43
44    <ParamChoice id="dsMode" name="Deep Sleep Mode" group="General" default="CY_SYSANALOG_LPOSC_DUTY_CYCLED" visible="true" editable="true" desc="LPOSC functionality while in Deep Sleep" >
45      <Entry name="Duty Cycled" value="CY_SYSANALOG_LPOSC_DUTY_CYCLED" visible="true" />
46      <Entry name="Always On"   value="CY_SYSANALOG_LPOSC_ALWAYS_ON" visible="true" />
47    </ParamChoice>
48
49    <!--Advanced-->
50    <ParamBool id="inFlash" name="Store Config in Flash" group="Advanced" default="true" visible="true" editable="true" desc="Controls whether the configuration structure is stored in flash (const, true) or SRAM (not const, false)." />
51
52    <ParamRange id="frequency" name="frequency" group="Internal" default="8000000" min="8000000" max="8000000" resolution="1" visible="false" editable="false" desc="" />
53    <ParamRange id="accuracy" name="accuracy" group="Internal" default="1" min="1" max="1" resolution="1" visible="false" editable="false" desc="" />
54    <ParamBool id="error" name="error" group="Internal" default="false" visible="false" editable="false" desc="" />
55  </Parameters>
56
57  <DRCs>
58  </DRCs>
59
60  <ConfigFirmware>
61      <ConfigInclude value="cy_sysanalog.h" include="true" />
62      <ConfigDefine name="CY_CFG_SYSANALOG_LPOSC_DEEPSLEEP_MODE" value="`${dsMode}`" public="true" include="true" />
63  </ConfigFirmware>
64
65</Personality>
66