Merge pull request #12978 from vmedcy/pr-dev/pdl-1.5.2

Update psoc6pdl to v1.5.2
pull/12996/head
Martin Kojtal 2020-05-18 13:10:21 +02:00 committed by GitHub
commit e345542b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 463 additions and 50216 deletions

View File

@ -1,28 +1,34 @@
# PSoC 6 Peripheral Driver Library v1.5.1
# PSoC 6 Peripheral Driver Library v1.5.2
Please refer to the [README.md](./README.md) and the [PDL API Reference Manual](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/index.html) for a complete description of the Peripheral Driver Library.
Please refer to the [README.md](./README.md) and the
[PDL API Reference Manual](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/index.html)
for a complete description of the Peripheral Driver Library.
### New Features
## New Features
* New ECO calculation algorithm
* No new features
### Updated Personalities
## Updated Personalities
* ECO 2.0 - added new parameter C0; narrowed the frequency range to 16..35 MHz; updated the calculation algorithm per ECO Trimming section of the device TRM.
* WiFi - Fix build warning in the generated code. Minor parameter name updates.
### Updated Drivers
## Updated Drivers
* [SysClk 2.0](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__sysclk.html)
* [SD Host 1.50](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__sd__host.html)
* [CTB 1.10.2](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__ctb.html)
* [SysLib 2.50.3](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__syslib.html)
### Known Issues
## Known Issues
None
See the Known Issues section of
[SysLib](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__syslib.html)
driver.
### Defect Fixes
## Defect Fixes
See the Changelog section of each Driver in the [PDL API Reference](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/modules.html) for all fixes and updates.
### Supported Software and Tools
## Supported Software and Tools
This version of PDL was validated for compatibility with the following Software and Tools:
@ -36,7 +42,7 @@ This version of PDL was validated for compatibility with the following Software
| ARM Compiler 6 | 6.13 |
| FreeRTOS | 10.0.1 |
### More information
## More information
* [Peripheral Driver Library README.md](./README.md)
* [Peripheral Driver Library API Reference Manual](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/index.html)
@ -46,6 +52,6 @@ This version of PDL was validated for compatibility with the following Software
* [PSoC 6 Technical Reference Manuals](https://www.cypress.com/search/all/PSoC%206%20Technical%20Reference%20Manual?f%5b0%5d=meta_type%3Atechnical_documents&f%5b1%5d=resource_meta_type%3A583)
* [PSoC 6 MCU Datasheets](https://www.cypress.com/search/all?f%5b0%5d=meta_type%3Atechnical_documents&f%5b1%5d=resource_meta_type%3A575&f%5b2%5d=field_related_products%3A114026)
* [Cypress Semiconductor](http://www.cypress.com)
---
© Cypress Semiconductor Corporation, 2020.

View File

@ -1,12 +1,12 @@
/***************************************************************************//**
* \file cy_ctb.h
* \version 1.10.1
* \version 1.10.2
*
* Header file for the CTB driver
*
********************************************************************************
* \copyright
* Copyright 2017-2019 Cypress Semiconductor Corporation
* Copyright 2017-2020 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -287,6 +287,12 @@
* <table class="doxtable">
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
* <tr>
* <td>1.10.2</td>
* <td>The \ref Cy_CTB_Init function description is expanded with a
* clarification note.</td>
* <td>Documentation enhancement based on a usability feedback.</td>
* </tr>
* <tr>
* <td>1.10.1</td>
* <td>Added header guard CY_IP_MXS40PASS to the source file.</td>
* <td>To enable the PDL compilation with wounded out IP blocks.</td>

View File

@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_syslib.h
* \version 2.50.2
* \version 2.50.3
*
* Provides an API declaration of the SysLib driver.
*
@ -28,9 +28,9 @@
* The system libraries provide APIs that can be called in the user application
* to handle the timing, logical checking or register.
*
* The functions and other declarations used in this driver are in cy_syslib.h.
* You can include cy_pdl.h (ModusToolbox only) to get access to all functions
* and declarations in the PDL.
* The functions and other declarations used in this driver are in cy_syslib.h.
* You can include cy_pdl.h (ModusToolbox only) to get access to all functions
* and declarations in the PDL.
*
* The SysLib driver contains a set of different system functions. These functions
* can be called in the application routine. Major features of the system library:
@ -62,7 +62,7 @@
* name and line number of the ASSERT into global variables, cy_assertFileName
* and cy_assertLine . It then calls the Cy_SysLib_Halt() function.
* \note Firmware can redefine the Cy_SysLib_AssertFailed() function for custom processing.
*
*
* The PDL source code uses this assert mechanism extensively. It is recommended
* that you enable asserts when debugging firmware. \n
* <b> Assertion Classes and Levels </b> <br />
@ -89,15 +89,15 @@
* </table>
* Firmware defines which ASSERT class is enabled by defining CY_ASSERT_LEVEL.
* This is a compiler command line argument, similar to how the DEBUG / NDEBUG
* macro is passed. \n
* macro is passed. \n
* Enabling any class also enables any lower-numbered class.
* CY_ASSERT_CLASS_3 is the default level, and it enables asserts for all three
* classes. The following example shows the command-line option to enable all
* the assert levels:
* \code -D CY_ASSERT_LEVEL=CY_ASSERT_CLASS_3 \endcode
* \note The use of special characters, such as spaces, parenthesis, etc. must
* be protected with quotes.
*
* be protected with quotes.
*
* After CY_ASSERT_LEVEL is defined, firmware can use
* one of the three level macros to make an assertion. For example, if the
* parameter can vary between devices, firmware uses the L1 macro.
@ -135,19 +135,38 @@
* </tr>
* </table>
*
* \section group_syslib_errata Known Issues
*
* <table class="doxtable">
* <tr><th>Issue</th><th>Workaround</th></tr>
* <tr>
* <td>The function malloc() does not return an error when the allocation
* size is bigger than the heap size.
* </td>
* <td>PDL does not implement the _sbrk function. The user needs to add
* custom _sbrk function.
* </td>
* </tr>
* </table>
*
* \section group_syslib_changelog Changelog
* <table class="doxtable">
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
* <tr>
* <td>2.50.3</td>
* <td>Add section Known Issues
* <td>Documentation update and clarification.</td>
* </tr>
* <tr>
* <td>2.50.1</td>
* <td>Used the core library defines for the message codes forming.
* <td>Improve PDL code base.</td>
* </tr>
* <tr>
* <td>2.50</td>
* <td>Moved following macros to the core library:
* CY_LO8,CY_HI8,CY_LO16,CY_HI16,CY_SWAP_ENDIAN16,CY_SWAP_ENDIAN32,
* CY_SWAP_ENDIAN64,CY_GET_REG8,CY_SET_REG8,CY_GET_REG16,CY_SET_REG16,
* <td>Moved following macros to the core library:
* CY_LO8,CY_HI8,CY_LO16,CY_HI16,CY_SWAP_ENDIAN16,CY_SWAP_ENDIAN32,
* CY_SWAP_ENDIAN64,CY_GET_REG8,CY_SET_REG8,CY_GET_REG16,CY_SET_REG16,
* CY_GET_REG24,CY_SET_REG24,CY_GET_REG32,CY_SET_REG32,_CLR_SET_FLD32U,
* CY_REG32_CLR_SET,_CLR_SET_FLD16U,CY_REG16_CLR_SET,_CLR_SET_FLD8U,
* CY_REG8_CLR_SET,_BOOL2FLD,_FLD2BOOL,CY_SYSLIB_DIV_ROUND,
@ -204,7 +223,7 @@
* <tr>
* <td>Added register access layer. Use register access macros instead
* of direct register access using dereferenced pointers.</td>
* <td>Makes register access device-independent, so that the PDL does
* <td>Makes register access device-independent, so that the PDL does
* not need to be recompiled for each supported part number.</td>
* </tr>
* <tr>
@ -526,7 +545,7 @@ typedef double float64_t; /**< Specific-length typedef for the basic numerical
* Defines for the Assert Classes and Levels
*/
/**
/**
* Class 1 - The highest class, safety-critical functions which rely on parameters that could be
* changed between different PSoC devices
*/

View File

@ -1,13 +1,13 @@
/***************************************************************************//**
* \file cy_ctb.c
* \version 1.10.1
* \version 1.10.2
*
* \brief
* Provides the public functions for the CTB driver.
*
********************************************************************************
* \copyright
* Copyright 2017-2019 Cypress Semiconductor Corporation
* Copyright 2017-2020 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -153,6 +153,9 @@ const cy_stc_ctb_fast_config_oa1_t Cy_CTB_Fast_Opamp1_Vdac_Ref_Pin5 =
*
* Initialize or restore the CTB and both opamps according to the
* provided settings. Parameters are usually set only once, at initialization.
*
* \note This function call disables a whole CTB block,
* call \ref Cy_CTB_Enable after this function call.
*
* \param base
* Pointer to structure describing registers

View File

@ -1,6 +1,6 @@
/*******************************************************************************
* \file cy_sd_host.c
* \version 1.40
* \version 1.50
*
* \brief
* This file provides the driver code to the API for the SD Host Controller
@ -4829,18 +4829,18 @@ uint32_t Cy_SD_Host_GetPresentState(SDHC_Type const *base)
* \ref Cy_SysPm_CpuEnterDeepSleep : specify \ref CY_SYSPM_DEEPSLEEP as the callback
* type and call \ref Cy_SysPm_RegisterCallback.
*
* \note When waking up from Deep Sleep, the SD Host driver requires up to 100ms
* \note When waking up from Deep Sleep, the SD Host driver requires up to 1 us
* for clock stabilization. By default the SD Host driver will wait this length
* of time on power up. The waiting loop is implemented in this function.
* If the application is time sensitive this delay can be overridden by the
* application by defining \ref CY_SD_HOST_CLK_RAMP_UP_TIME_MS_WAKEUP to a lower
* value. This allows the application to perform other operations while the clock
* application by defining \ref CY_SD_HOST_CLK_RAMP_UP_TIME_US_WAKEUP.
* This allows the application to perform other operations while the clock
* is stabilizing in the background. However, the application must still make sure
* that the SD Host clock has had time to stabilize before attempting to use the
* SD card. The recommended way to override the value is to specify this as
* a custom define on the compiler command line. This can be done by appending
* a custom define on the compiler command line. This can be done by appending
* the entry to the DEFINES variable in the application Makefile.
* Eg: DEFINES+=CY_SD_HOST_CLK_RAMP_UP_TIME_MS_WAKEUP=40.
* Eg: DEFINES+=CY_SD_HOST_CLK_RAMP_UP_TIME_US_WAKEUP=40.
*
* \param callbackParams
* The pointer to the callback parameters structure
@ -4894,7 +4894,7 @@ cy_en_syspm_status_t Cy_SD_Host_DeepSleepCallback(cy_stc_syspm_callback_params_t
Cy_SD_Host_EnableSdClk(locBase);
/* Wait for the stable CLK */
Cy_SysLib_Delay(CY_SD_HOST_CLK_RAMP_UP_TIME_MS_WAKEUP);
Cy_SysLib_DelayUs(CY_SD_HOST_CLK_RAMP_UP_TIME_US_WAKEUP);
ret = CY_SYSPM_SUCCESS;
}

View File

@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_syslib.c
* \version 2.50.2
* \version 2.50.3
*
* Description:
* Provides system API implementation for the SysLib driver.
@ -71,7 +71,7 @@
* \param milliseconds The number of milliseconds to delay.
*
* \note The function calls \ref Cy_SysLib_DelayCycles() API to generate a delay.
* If the function parameter (milliseconds) is bigger than
* If the function parameter (milliseconds) is bigger than
* CY_DELAY_MS_OVERFLOW constant, then an additional loop runs to prevent
* an overflow in parameter passed to \ref Cy_SysLib_DelayCycles() API.
*
@ -294,7 +294,7 @@ void Cy_SysLib_ClearResetReason(void)
*/
SRSS_RES_CAUSE = 0xFFFFFFFFU;
SRSS_RES_CAUSE2 = 0xFFFFFFFFU;
if(0U != _FLD2VAL(SRSS_PWR_HIBERNATE_TOKEN, SRSS_PWR_HIBERNATE))
{
/* Clears PWR_HIBERNATE token */
@ -556,7 +556,7 @@ void Cy_SysLib_SetWaitStates(bool ulpMode, uint32_t clkHfMHz)
waitStates = (clkHfMHz <= cy_device->flashCtlMainWs0Freq) ? 0UL :
((clkHfMHz <= cy_device->flashCtlMainWs1Freq) ? 1UL :
((clkHfMHz <= cy_device->flashCtlMainWs2Freq) ? 2UL :
((clkHfMHz <= cy_device->flashCtlMainWs3Freq) ? 3UL :
((clkHfMHz <= cy_device->flashCtlMainWs3Freq) ? 3UL :
((clkHfMHz <= cy_device->flashCtlMainWs4Freq) ? 4UL : 5UL))));
}

View File

@ -170,8 +170,8 @@
<!-- TCPKA Offload settings -->
<ParamBool id="tcpkaOffload" name="Enable" group="TCP Keep Alive Offload" default="false" visible="true" editable="true" desc="Enable TCP Keep Alive offload feature." />
<ParamRange id="tcpkaInterval" name="Interval" group="TCP Keep Alive Offload" default="20" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds between keep alive transmissions." />
<ParamRange id="tcpkaRetryInterval" name="Retry Interval" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds to retry a transmission if no keep alive ACK is received." />
<ParamRange id="tcpkaInterval" name="Interval (s)" group="TCP Keep Alive Offload" default="20" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds between keep alive transmissions." />
<ParamRange id="tcpkaRetryInterval" name="Retry Interval (s)" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds to retry a transmission if no keep alive ACK is received." />
<ParamRange id="tcpkaRetryCount" name="Retry Count" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Number of retries to send a keep alive if no ACK is received." />
<!-- Up to 4 simultaneous connections -->
<Repeat count="4">
@ -205,14 +205,14 @@
<ConfigInclude value="cy_lpa_wifi_ol.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_ol_common.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_arp_ol.h" include="`${arpOffload}`" />
<ConfigInclude value="cy_lpa_wifi_pf_ol.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_pf_ol.h" include="`${pktFilterEn}`" />
<ConfigInclude value="cy_lpa_wifi_tko_ol.h" include="`${tcpkaOffload}`" />
<ConfigInclude value="cycfg_pins.h" include="`${hostWake}`" />
<ConfigDefine name="CYCFG_WIFI_HOST_WAKE_ENABLED" public="true" value="(`${hostIRQConnected ? 1 : 0}`u)" include="`${hostWake}`" preventOverride="false" />
<ConfigDefine name="CYCFG_ARP_OL_ENABLED" public="false" value="(1u)" include="`${arpOffload}`" preventOverride="false" />
<ConfigDefine name="CYCFG_PF_OL_ENABLED" public="false" value="(1u)" include="`${pktFilterEn}`" preventOverride="false" />
<ConfigDefine name="CYCFG_TKO_OL_ENABLED" public="false" value="(1u)" include="`${pktFilterEn}`" preventOverride="false" />
<ConfigDefine name="CYCFG_TKO_OL_ENABLED" public="false" value="(1u)" include="`${tcpkaOffload}`" preventOverride="false" />
<!-- HOST_WAKE Pin Configuration -->
<ConfigDefine name="CYCFG_WIFI_HOST_WAKE_GPIO" public="true" value="`${hostIRQConnected ? hostIRQ . &quot;_HAL_PORT_PIN&quot; : &quot;CYHAL_NC_PIN_VALUE&quot;}`" include="`${hostWake}`" preventOverride="false" />
@ -234,7 +234,7 @@
</ConfigStruct>
<!-- Packet Filter (PF) Offload Configuration -->
<ConfigStruct name="cy_pf_ol_cfg_0" type="cy_pf_ol_cfg_t" const="true" isArray="true" public="false" include="true">
<ConfigStruct name="cy_pf_ol_cfg_0" type="cy_pf_ol_cfg_t" const="true" isArray="true" public="false" include="`${pktFilterEn}`">
<Member name="`${configTLSID}`u" value="{.feature = CY_PF_OL_FEAT_PORTNUM,&#xA;`${longIndent}`.bits = `${filterTLSAllow}``${filterTLSAction eq CY_PF_ACTION_DISCARD ? (&quot; | CY_PF_ACTION_DISCARD&quot;) : (&quot;&quot;)}`,&#xA;`${longIndent}`.id = `${configTLSID}`u,&#xA;`${longIndent}`.u = {&#xA;&#9;`${longIndent}`.pf = {&#xA;`${longIndent}``${longIndent}`.portnum = {.portnum = `${filterTLSPort}`u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.range = 0u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.direction = `${filterTLSDir}`,},&#xA;`${longIndent}``${longIndent}`.proto = `${filterTLSProt}`,&#xA;&#9;&#9;`${longIndent}`},&#xA;&#9;`${longIndent}`},&#xA;`${longIndent}`}" include="`${configTLS}`" />
<Member name="`${configNonTLSID}`u" value="{.feature = CY_PF_OL_FEAT_PORTNUM,&#xA;`${longIndent}`.bits = `${filterNonTLSAllow}``${filterNonTLSAction eq CY_PF_ACTION_DISCARD ? (&quot; | CY_PF_ACTION_DISCARD&quot;) : (&quot;&quot;)}`,&#xA;`${longIndent}`.id = `${configNonTLSID}`u,&#xA;`${longIndent}`.u = {&#xA;&#9;`${longIndent}`.pf = {&#xA;`${longIndent}``${longIndent}`.portnum = {.portnum = `${filterNonTLSPort}`u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.range = 0u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.direction = `${filterNonTLSDir}`,},&#xA;`${longIndent}``${longIndent}`.proto = `${filterNonTLSProt}`,&#xA;&#9;&#9;`${longIndent}`},&#xA;&#9;`${longIndent}`},&#xA;`${longIndent}`}" include="`${configNonTLS}`" />

View File

@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--****************************************************************************
* \file eco.cypersonality
* \version 1.2
*
* \brief
* ECO personality description file.
*
********************************************************************************
* \copyright
* Copyright 2018-2019 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="mxs40eco" name="ECO" version="1.2" path="Clocks/Fast" xmlns="http://cypress.com/xsd/cyhwpersonality_v1">
<Dependencies>
<IpBlock name="mxs40srss" />
<IpBlock name="mxs40ioss" />
<Resource name="srss\.clock\.eco" used="true" />
</Dependencies>
<ExposedMembers>
<ExposedMember key="frequency" paramId="frequency" />
<ExposedMember key="accuracy" paramId="accuracyPct" />
</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__sysclk__eco.html" linkText="Open ECO Documentation" visible="true" desc="Opens the Peripheral Driver Library Documentation" />
<ParamRange id="ecoFrequency" name="Frequency (MHz)" group="General" default="24.0000" visible="true" editable="true" min="4" max="35" resolution="0.0001" desc="" />
<ParamRange id="frequency" name="Frequency (Hz)" group="Internal" default="`${ecoFrequency * 1000000}`" visible="false" editable="false" min="4000000" max="35000000" resolution="1" desc="" />
<ParamRange id="accuracyPpm" name="Accuracy (&#177;ppm)" group="General" default="0" min="0" max="1000000" resolution="1" visible="true" editable="true" desc="Clock accuracy in ppm" />
<ParamString id="accuracyPct" name="Accuracy (&#177;%)" group="General" default="`${accuracyPpm/10000.0}`" visible="true" editable="false" desc="Clock accuracy in %" />
<ParamRange id="driveLevel" name="Drive Level (uW)" group="General" default="100" min="0" max="1000" resolution="1" visible="true" editable="true" desc="" />
<ParamRange id="esr" name="Equivalent Series Resistance (ohm)" group="General" default="50" min="0" max="100000" resolution="1" visible="true" editable="true" desc="" />
<ParamRange id="cLoad" name="Parallel Load Capacitance (pF)" group="General" default="18" min="0" max="100000" resolution="1" visible="true" editable="true" desc="" />
<ParamRange id="maxAmpl" name="Max Ampl" group="General" default="`${sqrt(driveLevel / (2.0 * esr)) * 1000 / (3.14 * ecoFrequency * cLoad)}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="gmMin" name="GM Min" group="General" default="`${(5 * 4 * 3.14 * 3.14 * ecoFrequency * ecoFrequency * cLoad * cLoad * 4 * esr) / 1000000000}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="gmMinInt" name="GM Min Int" group="General" default="`${floor(gmMin / 4.5)}`" visible="false" editable="false" min="0" max="100000" resolution="0.01" desc="" />
<ParamRange id="agcEn" name="AGC EN" group="General" default="`${maxAmpl &lt; 2 ? 1 : 0}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="wdTrim" name="WD Trim" group="General" default="`${maxAmpl &lt; 1.3 ? floor((maxAmpl * 10) - 4) : 7}`" min="-4" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="aTrim" name="A Trim" group="General" default="`${maxAmpl &lt; 0.55 ? 0 : maxAmpl &lt; 0.6 ? 1 : maxAmpl &lt; 0.65 ? 2 : maxAmpl &lt; 0.7 ? 3 : maxAmpl &lt; 0.75 ? 4 : maxAmpl &lt; 0.8 ? 5 : maxAmpl &lt; 0.85 ? 6 : maxAmpl &lt; 0.9 ? 7 : maxAmpl &lt; 0.95 ? 8 : maxAmpl &lt; 1.025 ? 9 : maxAmpl &lt; 1.0875 ? 10 : maxAmpl &lt; 1.15 ? 11 : maxAmpl &lt; 1.2125 ? 12 : maxAmpl &lt; 1.275 ? 13 : maxAmpl &lt; 1.35 ? 14 : 15}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="fTrim" name="F Trim" group="General" default="`${floor(aTrim / 2)}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="rTrim" name="R Trim" group="General" default="`${ecoFrequency > 28.6 ? 0 : ecoFrequency > 23.33 ? 1 : ecoFrequency > 16.5 ? 2 : 3}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<ParamRange id="gTrim" name="G Trim" group="General" default="`${gmMinInt > 1 ? gmMinInt : gmMinInt == 1 ? 0 : 1}`" min="0" max="100000" resolution="0.01" visible="false" editable="false" desc="" />
<!-- Restrict ECO connections to pins -->
<ParamSignal port="eco_in[0]" name="Input" group="Connections" visible="true" desc="The input/passive terminal of the internal ECO circuitry" canBeEmpty="false" requirePreferred="true">
<Constraint type="REQUIRE" targetLocation="ioss\[\d+\]\.port\[\d+\]\.pin.*" valid="true" />
</ParamSignal>
<ParamSignal port="eco_out[0]" name="Output" group="Connections" visible="true" desc="The output/active terminal of the internal ECO circuitry" canBeEmpty="false" requirePreferred="true">
<Constraint type="REQUIRE" targetLocation="ioss\[\d+\]\.port\[\d+\]\.pin.*" valid="true" />
</ParamSignal>
<ParamString id="gpio_in_port" name="gpio_in_port" group="General" default="`${getInstFromLocation(getParamValue(&quot;eco_in[0]&quot;), &quot;port&quot;)}`" visible="false" editable="false" desc="" />
<ParamString id="gpio_in_pin" name="gpio_in_pin" group="General" default="`${getInstFromLocation(getParamValue(&quot;eco_in[0]&quot;), &quot;pin&quot;)}`" visible="false" editable="false" desc="" />
<ParamString id="gpio_out_port" name="gpio_out_port" group="General" default="`${getInstFromLocation(getParamValue(&quot;eco_out[0]&quot;), &quot;port&quot;)}`" visible="false" editable="false" desc="" />
<ParamString id="gpio_out_pin" name="gpio_out_pin" group="General" default="`${getInstFromLocation(getParamValue(&quot;eco_out[0]&quot;), &quot;pin&quot;)}`" visible="false" editable="false" desc="" />
</Parameters>
<DRCs>
<DRC type="ERROR" text="Parameters provided cause the maximum trans-conductance and amplitude control range to exceed the legal design limits." condition="`${maxAmpl &lt; 0.5 || gmMinInt &gt; 3}`" />
</DRCs>
<ConfigFirmware>
<ConfigInclude value="cy_gpio.h" include="true" />
<ConfigInclude value="cy_sysclk.h" include="true" />
<ConfigDefine name="CY_CFG_SYSCLK_ECO_ENABLED" value="1" public="false" include="true" />
<ConfigDefine name="CY_CFG_SYSCLK_ECO_FREQ" value="`${frequency}`UL" public="false" include="true" />
<ConfigFunction signature="__STATIC_INLINE void Cy_SysClk_EcoInit()" body=" (void)Cy_GPIO_Pin_FastInit(GPIO_PRT`${gpio_in_port}`, `${gpio_in_pin}`, CY_GPIO_DM_ANALOG, 0UL, HSIOM_SEL_GPIO);&#xA; (void)Cy_GPIO_Pin_FastInit(GPIO_PRT`${gpio_out_port}`, `${gpio_out_pin}`, CY_GPIO_DM_ANALOG, 0UL, HSIOM_SEL_GPIO);&#xA; if (CY_SYSCLK_BAD_PARAM == Cy_SysClk_EcoConfigure(CY_CFG_SYSCLK_ECO_FREQ, `${cLoad}`UL, `${esr}`UL, `${driveLevel}`UL))&#xA; {&#xA; cycfg_ClockStartupError(CY_CFG_SYSCLK_ECO_ERROR);&#xA; }&#xA; if (CY_SYSCLK_TIMEOUT == Cy_SysClk_EcoEnable(3000UL))&#xA; {&#xA; cycfg_ClockStartupError(CY_CFG_SYSCLK_ECO_ERROR);&#xA; }" public="false" include="true" />
</ConfigFirmware>
</Personality>

View File

@ -170,8 +170,8 @@
<!-- TCPKA Offload settings -->
<ParamBool id="tcpkaOffload" name="Enable" group="TCP Keep Alive Offload" default="false" visible="true" editable="true" desc="Enable TCP Keep Alive offload feature." />
<ParamRange id="tcpkaInterval" name="Interval" group="TCP Keep Alive Offload" default="20" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds between keep alive transmissions." />
<ParamRange id="tcpkaRetryInterval" name="Retry Interval" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds to retry a transmission if no keep alive ACK is received." />
<ParamRange id="tcpkaInterval" name="Interval (s)" group="TCP Keep Alive Offload" default="20" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds between keep alive transmissions." />
<ParamRange id="tcpkaRetryInterval" name="Retry Interval (s)" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Interval in seconds to retry a transmission if no keep alive ACK is received." />
<ParamRange id="tcpkaRetryCount" name="Retry Count" group="TCP Keep Alive Offload" default="3" min="0" max="65535" resolution="1" visible="`${tcpkaOffload}`" editable="`${tcpkaOffload}`" desc="Number of retries to send a keep alive if no ACK is received." />
<!-- Up to 4 simultaneous connections -->
<Repeat count="4">
@ -205,14 +205,14 @@
<ConfigInclude value="cy_lpa_wifi_ol.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_ol_common.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_arp_ol.h" include="`${arpOffload}`" />
<ConfigInclude value="cy_lpa_wifi_pf_ol.h" include="true" />
<ConfigInclude value="cy_lpa_wifi_pf_ol.h" include="`${pktFilterEn}`" />
<ConfigInclude value="cy_lpa_wifi_tko_ol.h" include="`${tcpkaOffload}`" />
<ConfigInclude value="cycfg_pins.h" include="`${hostWake}`" />
<ConfigDefine name="CYCFG_WIFI_HOST_WAKE_ENABLED" public="true" value="(`${hostIRQConnected ? 1 : 0}`u)" include="`${hostWake}`" preventOverride="false" />
<ConfigDefine name="CYCFG_ARP_OL_ENABLED" public="false" value="(1u)" include="`${arpOffload}`" preventOverride="false" />
<ConfigDefine name="CYCFG_PF_OL_ENABLED" public="false" value="(1u)" include="`${pktFilterEn}`" preventOverride="false" />
<ConfigDefine name="CYCFG_TKO_OL_ENABLED" public="false" value="(1u)" include="`${pktFilterEn}`" preventOverride="false" />
<ConfigDefine name="CYCFG_TKO_OL_ENABLED" public="false" value="(1u)" include="`${tcpkaOffload}`" preventOverride="false" />
<!-- HOST_WAKE Pin Configuration -->
<ConfigDefine name="CYCFG_WIFI_HOST_WAKE_GPIO" public="true" value="`${hostIRQConnected ? hostIRQ . &quot;_HAL_PORT_PIN&quot; : &quot;CYHAL_NC_PIN_VALUE&quot;}`" include="`${hostWake}`" preventOverride="false" />
@ -234,7 +234,7 @@
</ConfigStruct>
<!-- Packet Filter (PF) Offload Configuration -->
<ConfigStruct name="cy_pf_ol_cfg_0" type="cy_pf_ol_cfg_t" const="true" isArray="true" public="false" include="true">
<ConfigStruct name="cy_pf_ol_cfg_0" type="cy_pf_ol_cfg_t" const="true" isArray="true" public="false" include="`${pktFilterEn}`">
<Member name="`${configTLSID}`u" value="{.feature = CY_PF_OL_FEAT_PORTNUM,&#xA;`${longIndent}`.bits = `${filterTLSAllow}``${filterTLSAction eq CY_PF_ACTION_DISCARD ? (&quot; | CY_PF_ACTION_DISCARD&quot;) : (&quot;&quot;)}`,&#xA;`${longIndent}`.id = `${configTLSID}`u,&#xA;`${longIndent}`.u = {&#xA;&#9;`${longIndent}`.pf = {&#xA;`${longIndent}``${longIndent}`.portnum = {.portnum = `${filterTLSPort}`u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.range = 0u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.direction = `${filterTLSDir}`,},&#xA;`${longIndent}``${longIndent}`.proto = `${filterTLSProt}`,&#xA;&#9;&#9;`${longIndent}`},&#xA;&#9;`${longIndent}`},&#xA;`${longIndent}`}" include="`${configTLS}`" />
<Member name="`${configNonTLSID}`u" value="{.feature = CY_PF_OL_FEAT_PORTNUM,&#xA;`${longIndent}`.bits = `${filterNonTLSAllow}``${filterNonTLSAction eq CY_PF_ACTION_DISCARD ? (&quot; | CY_PF_ACTION_DISCARD&quot;) : (&quot;&quot;)}`,&#xA;`${longIndent}`.id = `${configNonTLSID}`u,&#xA;`${longIndent}`.u = {&#xA;&#9;`${longIndent}`.pf = {&#xA;`${longIndent}``${longIndent}`.portnum = {.portnum = `${filterNonTLSPort}`u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.range = 0u,&#xA;`${longIndent}``${longIndent}``${longIndent}`.direction = `${filterNonTLSDir}`,},&#xA;`${longIndent}``${longIndent}`.proto = `${filterNonTLSProt}`,&#xA;&#9;&#9;`${longIndent}`},&#xA;&#9;`${longIndent}`},&#xA;`${longIndent}`}" include="`${configNonTLS}`" />

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<baseview>
<shortsiliconid>0xFFFF</shortsiliconid>
<familyid>0xFF</familyid>
<major>F</major>
<minor>F</minor>
<mcu>CortexM0p,CortexM4</mcu>
<vendor>Cypress</vendor>
<flash>262144</flash>
<ram>131072</ram>
<package>68-QFN</package>
<pins>68</pins>
<minvoltage>1700</minvoltage>
<maxvoltage>3600</maxvoltage>
<description>The PSoC6A256K device.</description>
</baseview>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<info>
<name>PSoC6A256K</name>
<description>The PSoC6A256K devices</description>
<part>true</part>
</info>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<info>
<name>PSoC6A256K</name>
<description>The PSoC6A256K devices</description>
</info>

View File

@ -1,25 +0,0 @@
DU 0 SMARTIO[0].DU[0
LUT 0 SMARTIO[0].LUT[0]
LUT 1 SMARTIO[0].LUT[1]
LUT 2 SMARTIO[0].LUT[2]
LUT 3 SMARTIO[0].LUT[3]
LUT 4 SMARTIO[0].LUT[4]
LUT 5 SMARTIO[0].LUT[5]
LUT 6 SMARTIO[0].LUT[6]
LUT 7 SMARTIO[0].LUT[7]
DATA 0 SMARTIO[0].DATA[0]
DATA 1 SMARTIO[0].DATA[1]
DATA 2 SMARTIO[0].DATA[2]
DATA 3 SMARTIO[0].DATA[3]
DATA 4 SMARTIO[0].DATA[4]
DATA 5 SMARTIO[0].DATA[5]
DATA 6 SMARTIO[0].DATA[6]
DATA 7 SMARTIO[0].DATA[7]
GPIO 0 SMARTIO[0].GPIO[0]
GPIO 1 SMARTIO[0].GPIO[1]
GPIO 2 SMARTIO[0].GPIO[2]
GPIO 3 SMARTIO[0].GPIO[3]
GPIO 4 SMARTIO[0].GPIO[4]
GPIO 5 SMARTIO[0].GPIO[5]
GPIO 6 SMARTIO[0].GPIO[6]
GPIO 7 SMARTIO[0].GPIO[7]

View File

@ -1,25 +0,0 @@
DU 0 SMARTIO[0].DU[0
LUT 0 SMARTIO[0].LUT[0]
LUT 1 SMARTIO[0].LUT[1]
LUT 2 SMARTIO[0].LUT[2]
LUT 3 SMARTIO[0].LUT[3]
LUT 4 SMARTIO[0].LUT[4]
LUT 5 SMARTIO[0].LUT[5]
LUT 6 SMARTIO[0].LUT[6]
LUT 7 SMARTIO[0].LUT[7]
DATA 0 SMARTIO[0].DATA[0]
DATA 1 SMARTIO[0].DATA[1]
DATA 2 SMARTIO[0].DATA[2]
DATA 3 SMARTIO[0].DATA[3]
DATA 4 SMARTIO[0].DATA[4]
DATA 5 SMARTIO[0].DATA[5]
DATA 6 SMARTIO[0].DATA[6]
DATA 7 SMARTIO[0].DATA[7]
GPIO 0 SMARTIO[0].GPIO[0]
GPIO 1 SMARTIO[0].GPIO[1]
GPIO 2 SMARTIO[0].GPIO[2]
GPIO 3 SMARTIO[0].GPIO[3]
GPIO 4 SMARTIO[0].GPIO[4]
GPIO 5 SMARTIO[0].GPIO[5]
GPIO 6 SMARTIO[0].GPIO[6]
GPIO 7 SMARTIO[0].GPIO[7]

View File

@ -1,25 +0,0 @@
DU 0 SMARTIO[0].DU[0
LUT 0 SMARTIO[0].LUT[0]
LUT 1 SMARTIO[0].LUT[1]
LUT 2 SMARTIO[0].LUT[2]
LUT 3 SMARTIO[0].LUT[3]
LUT 4 SMARTIO[0].LUT[4]
LUT 5 SMARTIO[0].LUT[5]
LUT 6 SMARTIO[0].LUT[6]
LUT 7 SMARTIO[0].LUT[7]
DATA 0 SMARTIO[0].DATA[0]
DATA 1 SMARTIO[0].DATA[1]
DATA 2 SMARTIO[0].DATA[2]
DATA 3 SMARTIO[0].DATA[3]
DATA 4 SMARTIO[0].DATA[4]
DATA 5 SMARTIO[0].DATA[5]
DATA 6 SMARTIO[0].DATA[6]
DATA 7 SMARTIO[0].DATA[7]
GPIO 0 SMARTIO[0].GPIO[0]
GPIO 1 SMARTIO[0].GPIO[1]
GPIO 2 SMARTIO[0].GPIO[2]
GPIO 3 SMARTIO[0].GPIO[3]
GPIO 4 SMARTIO[0].GPIO[4]
GPIO 5 SMARTIO[0].GPIO[5]
GPIO 6 SMARTIO[0].GPIO[6]
GPIO 7 SMARTIO[0].GPIO[7]

View File

@ -1 +1 @@
<version>1.5.1.2655</version>
<version>1.5.2.3446</version>