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_v7"> 30 <Dependencies> 31 <IpBlock name="43xxx_bt" /> 32 <Resource name="bt\.power" /> 33 </Dependencies> 34 <ExposedMembers> 35 </ExposedMembers> 36 37 <Parameters> 38 <ParamDoc id="doc" name="Configuration Help" group="Overview" default="https://Infineon.github.io/lpa/lpa_api_reference_manual/html/index.html" linkText="Open Low Power Assistant Documentation" visible="true" desc="Open the Low Power Assistant Documentation" /> 39 40 <!-- Host wake settings --> 41 <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." /> 42 <ParamBool id="hostWakeConnected" name="hostWakeConnected" group="Internal" default="`${hostWakePin ne ""}`" visible="false" editable="false" desc="True, if HOST_WAKE is connected" /> 43 <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."> 44 <Entry name="Falling Edge" value="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="true" /> 45 <Entry name="Rising Edge" value="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" visible="true" /> 46 </ParamChoice> 47 48 <!-- Device wake settings --> 49 <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." /> 50 <ParamBool id="devWakeConnected" name="devWakeConnected" group="Internal" default="`${devWakePin ne ""}`" visible="false" editable="false" desc="True, if DEV_WAKE is connected." /> 51 <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."> 52 <Entry name="Active Low" value="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" visible="true" /> 53 <Entry name="Active High" value="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" visible="true" /> 54 </ParamChoice> 55 56 </Parameters> 57 58 <DRCs> 59 <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" /> 60 <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" /> 61 <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}`"/> 62 </DRCs> 63 64 <!-- Generated firmware --> 65 <ConfigFirmware> 66 <ConfigInclude value="cycfg_pins.h" include="true" /> 67 <ConfigDefine name="CYCFG_BT_LP_ENABLED" public="true" value="(1u)" include="true" preventOverride="false" /> 68 <ConfigDefine name="CYCFG_BT_WAKE_EVENT_ACTIVE_LOW" public="true" value="(0)" include="true" preventOverride="false" /> 69 <ConfigDefine name="CYCFG_BT_WAKE_EVENT_ACTIVE_HIGH" public="true" value="(1)" include="true" preventOverride="false" /> 70 71 <ConfigDefine name="CYCFG_BT_HOST_WAKE_GPIO" public="true" value="`${hostWakeConnected ? hostWakePin . "_HAL_PORT_PIN" : "CYBSP_BT_HOST_WAKE"}`" include="true" preventOverride="false" /> 72 <ConfigDefine name="CYCFG_BT_HOST_WAKE_IRQ_EVENT" public="true" value="`${hostWakeConnected ? hostWakeIrqEvent : "CYBT_WAKE_ACTIVE_LOW"}`" include="true" preventOverride="false" /> 73 74 <ConfigDefine name="CYCFG_BT_DEV_WAKE_GPIO" public="true" value="`${devWakeConnected ? devWakePin . "_HAL_PORT_PIN" : "CYBSP_BT_DEVICE_WAKE"}`" include="true" preventOverride="false" /> 75 <ConfigDefine name="CYCFG_BT_DEV_WAKE_POLARITY" public="true" value="`${devWakeConnected ? devWakePolarity : "CYBT_WAKE_ACTIVE_LOW"}`" include="true" preventOverride="false" /> 76 </ConfigFirmware> 77</Personality> 78