Skip to content

Commit d199fa6

Browse files
committed
PSOC6: update to PDL 1.3.1.1499
1 parent 2af2105 commit d199fa6

File tree

11 files changed

+55
-26
lines changed

11 files changed

+55
-26
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/RELEASE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ Please refer to the [README.md](./README.md) and the [PDL API Reference Manual](
44

55
### New Features
66
Updated Drivers
7-
* [SysInt 1.30](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__sysInt.html)
7+
* [SysInt 1.30](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__sysint.html)
8+
* [SysPm 4.40](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__syspm.html)
89
* [USBFS 2.20](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__usbfs__dev__drv.html)
910

1011
Drivers with patch version updates
12+
* [CAN FD 1.0.1](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__canfd.html)
13+
* [Flash 3.30.2](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__flash.html)
1114
* [Prot 1.30.1](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__prot.html)
1215
* [SysClk 1.40.2](https://cypresssemiconductorco.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__sysclk.html)
1316

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_canfd.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_canfd.h
3-
* \version 1.0
3+
* \version 1.0.1
44
*
55
* This file provides constants and parameter values for
66
* the CAN FD driver.
@@ -217,6 +217,11 @@
217217
* <table class="doxtable">
218218
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
219219
* <tr>
220+
* <td>1.0.1</td>
221+
* <td>Updated description of the \ref Cy_CANFD_Init() and \ref Cy_CANFD_DeInit() functions</td>
222+
* <td>Documentation update and clarification </td>
223+
* </tr>
224+
* <tr>
220225
* <td>1.0</td>
221226
* <td>Initial version</td>
222227
* <td></td>

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_device.h
3-
* \version 2.0
3+
* \version 2.10
44
*
55
* This file specifies the structure for core and peripheral block HW base
66
* addresses, versions, and parameters.
@@ -381,9 +381,9 @@ void Cy_PDL_Init(const cy_stc_device_t * device);
381381
#define SFLASH_CPUSS_TRIM_ROM_CTL_ULP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_ROM_CTL_ULP)
382382
#define SFLASH_CPUSS_TRIM_RAM_CTL_ULP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_RAM_CTL_ULP)
383383
#define SFLASH_CPUSS_TRIM_ROM_CTL_HALF_LP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_ROM_CTL_HALF_LP)
384-
#define SFLASH_CPUSS_TRIM_ROM_CTL_HALF_LP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_ROM_CTL_HALF_LP)
385-
#define SFLASH_CPUSS_TRIM_RAM_CTL_HALF_ULP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_RAM_CTL_HALF_ULP)
384+
#define SFLASH_CPUSS_TRIM_RAM_CTL_HALF_LP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_RAM_CTL_HALF_LP)
386385
#define SFLASH_CPUSS_TRIM_ROM_CTL_HALF_ULP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_ROM_CTL_HALF_ULP)
386+
#define SFLASH_CPUSS_TRIM_RAM_CTL_HALF_ULP (((SFLASH_V1_Type *) SFLASH)->CPUSS_TRIM_RAM_CTL_HALF_ULP)
387387

388388

389389
#define SFLASH_CSD0_ADC_VREF0_TRIM (((SFLASH_V1_Type *) SFLASH)->CSDV2_CSD0_ADC_VREF0)

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_flash.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_flash.h
3-
* \version 3.30.1
3+
* \version 3.30.2
44
*
55
* Provides the API declarations of the Flash driver.
66
*
@@ -52,12 +52,13 @@
5252
* interrupt instead of a reset.
5353
*
5454
* A Read while Write violation occurs when a flash Read operation is initiated
55-
* in the same or neighboring flash sector where the flash Write, Erase, or
55+
* in the same or neighboring (neighboring restriction is applicable just for the
56+
* CY8C6xx6, CY8C6xx7 devices) flash sector where the flash Write, Erase, or
5657
* Program operation is working. This violation may cause a HardFault exception.
5758
* To avoid the Read while Write violation, the user must carefully split the
5859
* Read and Write operation on flash sectors which are not neighboring,
59-
* considering both cores in the multi-processor device. The flash is divided
60-
* into four equal sectors. You may edit the linker script to place the code
60+
* considering both cores in the multi-processor device. If the flash is divided
61+
* into four equal sectors, you may edit the linker script to place the code
6162
* into neighboring sectors. For example, use sectors number 0 and 1 for code
6263
* and sectors 2 and 3 for data storage.
6364
*
@@ -255,6 +256,11 @@
255256
* <table class="doxtable">
256257
* <tr><th>Version</th><th style="width: 52%;">Changes</th><th>Reason for Change</th></tr>
257258
* <tr>
259+
* <td rowspan="1">3.30.2</td>
260+
* <td>Updated documentation to limit devices with the neighboring restriction.</td>
261+
* <td>User experience enhancement.</td>
262+
* </tr>
263+
* <tr>
258264
* <td rowspan="1">3.30.1</td>
259265
* <td>Used the CY_RAMFUNC_BEGIN and CY_RAMFUNC_END macros that allocate the function in RAM instead of using the CY_SECTION(".cy_ramfunc") macros.</td>
260266
* <td>Removed the code duplication.</td>

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_sysint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ extern cy_israddress __ramVectors[]; /**< Relocated vector table in SRAM */
270270
#define CY_SYSINT_DRV_VERSION_MAJOR 1
271271

272272
/** Driver minor version */
273-
#define CY_SYSINT_DRV_VERSION_MINOR 20
273+
#define CY_SYSINT_DRV_VERSION_MINOR 30
274274

275275
/** SysInt driver ID */
276276
#define CY_SYSINT_ID CY_PDL_DRV_ID (0x15U)

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/include/cy_syspm.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_syspm.h
3-
* \version 4.30
3+
* \version 4.40
44
*
55
* Provides the function definitions for the power management API.
66
*
@@ -724,6 +724,20 @@
724724
* <table class="doxtable">
725725
* <tr><th>Version</th><th>Changes</th><th>Reason for Change</th></tr>
726726
* <tr>
727+
* <td>4.40</td>
728+
* <td>
729+
* Fixed \ref Cy_SysPm_LdoSetVoltage(), \ref Cy_SysPm_BuckEnable(), and
730+
* \ref Cy_SysPm_BuckSetVoltage1() functions. Corrected the sequence for
731+
* setting the RAM trim value. This behavior is applicable for all
732+
* devices, except CY8C6xx6 and CY8C6xx7.
733+
* </td>
734+
* <td>
735+
* For all devices, except CY8C6xx6 and CY8C6xx7, the trim
736+
* sequence was setting incorrect trim values for RAM.
737+
* This could cause a CPU hard fault.
738+
* </td>
739+
* </tr>
740+
* <tr>
727741
* <td>4.30</td>
728742
* <td>
729743
* Corrected the \ref Cy_SysPm_CpuEnterDeepSleep() function.
@@ -1209,7 +1223,7 @@ extern "C" {
12091223
#define CY_SYSPM_DRV_VERSION_MAJOR 4
12101224

12111225
/** Driver minor version */
1212-
#define CY_SYSPM_DRV_VERSION_MINOR 30
1226+
#define CY_SYSPM_DRV_VERSION_MINOR 40
12131227

12141228
/** SysPm driver identifier */
12151229
#define CY_SYSPM_ID (CY_PDL_DRV_ID(0x10U))

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/source/cy_canfd.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* \file cy_canfd.c
3-
* \version 1.0
3+
* \version 1.0.1
44
*
55
* \brief
66
* Provides an API implementation of the CAN FD driver.
@@ -229,6 +229,7 @@ static uint32_t Cy_CANFD_CalcTxBufAdrs(CANFD_Type *base, uint32_t chan,
229229
* "Rx FIFO 1 New Message" and "Rx FIFO 0 New Message" interrupt events only.
230230
* Other interrupts can be configured with the Cy_CANFD_SetInterruptMask() function.
231231
* \note If the channel was disabled, call Cy_CANFD_Enable before calling Cy_CANFD_Init.
232+
* \note Call this function only after all debug messages reception is completed.
232233
*
233234
* \param *base
234235
* The pointer to a CAN FD instance.
@@ -512,8 +513,8 @@ cy_en_canfd_status_t Cy_CANFD_Init(CANFD_Type *base, uint32_t chan,
512513
*
513514
* De-initializes the CAN FD block, returns registers values to default.
514515
*
515-
* \note
516-
* Do not call Cy_CANFD_Disable before Cy_CANFD_DeInit.
516+
* \note Do not call Cy_CANFD_Disable before Cy_CANFD_DeInit.
517+
* \note Call this function only after all debug messages reception is completed.
517518
*
518519
* \param *base
519520
* The pointer to a CAN FD instance.

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/source/cy_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_device.c
3-
* \version 2.0
3+
* \version 2.10
44
*
55
* This file provides the definitions for core and peripheral block HW base
66
* addresses, versions, and parameters.

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/source/cy_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_flash.c
3-
* \version 3.30.1
3+
* \version 3.30.2
44
*
55
* \brief
66
* Provides the public functions for the API for the PSoC 6 Flash Driver.

targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/source/cy_syspm.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***************************************************************************//**
22
* \file cy_syspm.c
3-
* \version 4.30
3+
* \version 4.40
44
*
55
* This driver provides the source code for API power management.
66
*
@@ -3110,7 +3110,7 @@ static void SetReadMarginTrimUlp(void)
31103110
else
31113111
{
31123112
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_RAM_CTL_HALF_ULP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3113-
(CPUSS_TRIM_RAM_CTL | CPUSS_TRIM_RAM_CTL_RA_MASK);
3113+
(CPUSS_TRIM_RAM_CTL & CPUSS_TRIM_RAM_CTL_RA_MASK);
31143114

31153115
CPUSS_TRIM_ROM_CTL = SFLASH_CPUSS_TRIM_ROM_CTL_HALF_ULP;
31163116
}
@@ -3139,8 +3139,8 @@ static void SetReadMarginTrimLp(void)
31393139
}
31403140
else
31413141
{
3142-
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_ROM_CTL_LP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3143-
(CPUSS_TRIM_RAM_CTL | CPUSS_TRIM_RAM_CTL_RA_MASK);
3142+
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_RAM_CTL_LP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3143+
(CPUSS_TRIM_RAM_CTL & CPUSS_TRIM_RAM_CTL_RA_MASK);
31443144

31453145
CPUSS_TRIM_ROM_CTL = SFLASH_CPUSS_TRIM_ROM_CTL_LP;
31463146
}
@@ -3166,8 +3166,8 @@ static void SetWriteAssistTrimUlp(void)
31663166
}
31673167
else
31683168
{
3169-
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_ROM_CTL_ULP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3170-
(CPUSS_TRIM_RAM_CTL | CPUSS_TRIM_RAM_CTL_RA_MASK);
3169+
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_RAM_CTL_ULP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3170+
(CPUSS_TRIM_RAM_CTL & CPUSS_TRIM_RAM_CTL_RA_MASK);
31713171
}
31723172
}
31733173

@@ -3191,8 +3191,8 @@ static void SetWriteAssistTrimLp(void)
31913191
}
31923192
else
31933193
{
3194-
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_ROM_CTL_HALF_LP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3195-
(CPUSS_TRIM_RAM_CTL | CPUSS_TRIM_RAM_CTL_RA_MASK);
3194+
CPUSS_TRIM_RAM_CTL = (SFLASH_CPUSS_TRIM_RAM_CTL_HALF_LP & ((uint32_t) ~CPUSS_TRIM_RAM_CTL_RA_MASK)) |
3195+
(CPUSS_TRIM_RAM_CTL & CPUSS_TRIM_RAM_CTL_RA_MASK);
31963196

31973197
CPUSS_TRIM_ROM_CTL = SFLASH_CPUSS_TRIM_ROM_CTL_HALF_LP;
31983198
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<version>1.3.1.1474</version>
1+
<version>1.3.1.1499</version>

0 commit comments

Comments
 (0)