1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!--**************************************************************************** 5* \file connectivity_bt.cypersonality 6* \version 1.0 7* 8* \brief 9* Personality description file for the BT part of Low Power Assistant. 10* 11******************************************************************************** 12* \copyright 13* Copyright 2019-2022 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="connectivity_bt" name="BT" version="1.0" xmlns="http://cypress.com/xsd/cyhwpersonality_v8"> 30 <Dependencies> 31 <IpBlock name="43xxx_bt" /> 32 <Resource name="bt\.power" /> 33 <OperatingMode value="COMPANION_CONNECTIVITY"/> 34 </Dependencies> 35 <ExposedMembers> 36 </ExposedMembers> 37 38 <Parameters> 39 <ParamDoc id="doc" name="Configuration Help" group="Overview" default="https://infineon.github.io/lpa/api_reference_manual/html/index.html" linkText="Open Low Power Assistant Documentation" visible="true" desc="Open the Low Power Assistant Documentation" /> 40 41 <!-- Host wake settings --> 42 <ParamBlock id="hostWakePin" blockType="ioss\.port\.pin" name="Host-Wake-Up Signal" group="Host-Wake-Up Configuration" canBeEmpty="true" visible="true" desc="Select the host IRQ signal connected to BT_HOST_WAKE signal. The pin must be enabled on the Pins tab to be added as an option to the pull-down menu. If left empty, the pin will be unconfigured." /> 43 <ParamBool id="hostWakeConnected" name="hostWakeConnected" group="Internal" default="`${hostWakePin ne ""}`" visible="false" editable="false" desc="True, if HOST_WAKE is connected" /> 44 <ParamChoice id="hostWakeIrqEvent" name="Host-Wake-Up IRQ Event" group="Host-Wake-Up Configuration" default="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="`${hostWakeConnected}`" editable="true" desc="Select the trigger condition for the BT_HOST_WAKE signal."> 45 <Entry name="Falling Edge" value="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="true" /> 46 <Entry name="Rising Edge" value="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" visible="true" /> 47 </ParamChoice> 48 49 <!-- Device wake settings --> 50 <ParamBlock id="devWakePin" blockType="ioss\.port\.pin" name="Device-Wake-Up Signal" group="Device-Wake-Up Configuration" canBeEmpty="true" visible="true" desc="Select the host pin connected to the BT_DEV_WAKE signal. The pin must be enabled on the Pins tab to be added as an option to the pull-down menu. If left empty, the pin will be unconfigured." /> 51 <ParamBool id="devWakeConnected" name="devWakeConnected" group="Internal" default="`${devWakePin ne ""}`" visible="false" editable="false" desc="True, if DEV_WAKE is connected." /> 52 <ParamChoice id="devWakePolarity" name="Device-Wake-Up Polarity" group="Device-Wake-Up Configuration" default="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="`${devWakeConnected}`" editable="true" desc="Select the polarity for the BT_DEV_WAKE signal."> 53 <Entry name="Active Low" value="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="true" /> 54 <Entry name="Active High" value="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" visible="true" /> 55 </ParamChoice> 56 57 </Parameters> 58 59 <DRCs> 60 <DRC type="INFO" text="The Host-wake-up pin must be connected when the system is configured for Deep Sleep power state." condition="`${!devWakeConnected && !hostWakeConnected}`" paramId="hostWakePin" /> 61 <DRC type="INFO" text="The Device-wake-up pin must be connected when the system is configured for Deep Sleep power state." condition="`${!devWakeConnected && !hostWakeConnected}`" paramId="devWakePin" /> 62 <DRC type="ERROR" text="Host-wake-up can not be assigned to the same pin as Device-wake-up signal." condition="`${(devWakePin eq hostWakePin) && hostWakeConnected && devWakeConnected}`"/> 63 </DRCs> 64 65 <!-- Generated firmware --> 66 <ConfigFirmware> 67 <ConfigInclude value="cycfg_pins.h" include="true" /> 68 <ConfigDefine name="CYCFG_BT_LP_ENABLED" public="true" value="(1u)" include="true" preventOverride="false" /> 69 <ConfigDefine name="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" public="true" value="(0)" include="true" preventOverride="false" /> 70 <ConfigDefine name="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" public="true" value="(1)" include="true" preventOverride="false" /> 71 72 <ConfigDefine name="CYCFG_BT_HOST_WAKE_GPIO" public="true" value="`${hostWakeConnected ? hostWakePin . "_HAL_PORT_PIN" : "CYBSP_BT_HOST_WAKE"}`" include="true" preventOverride="false" /> 73 <ConfigDefine name="CYCFG_BT_HOST_WAKE_IRQ_EVENT" public="true" value="`${hostWakeConnected ? hostWakeIrqEvent : "CYBT_WAKE_ACTIVE_LOW"}`" include="true" preventOverride="false" /> 74 75 <ConfigDefine name="CYCFG_BT_DEV_WAKE_GPIO" public="true" value="`${devWakeConnected ? devWakePin . "_HAL_PORT_PIN" : "CYBSP_BT_DEVICE_WAKE"}`" include="true" preventOverride="false" /> 76 <ConfigDefine name="CYCFG_BT_DEV_WAKE_POLARITY" public="true" value="`${devWakeConnected ? devWakePolarity : "CYBT_WAKE_ACTIVE_LOW"}`" include="true" preventOverride="false" /> 77 </ConfigFirmware> 78</Personality> 79