Skip to content

Commit

Permalink
Upload bless 3.50.0.667
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Sep 11, 2020
1 parent 9de8665 commit b7ad1b7
Show file tree
Hide file tree
Showing 831 changed files with 3,184 additions and 3,057 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 8 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Cypress PSoC 6 Bluetooth Low Energy Middleware Library 3.40
# Cypress PSoC 6 Bluetooth Low Energy Middleware Library 3.50

### What's Included?
Please refer to the [README.md](./README.md) and the [API Reference Guide](https://cypresssemiconductorco.github.io/bless/ble_api_reference_manual/html/index.html) for a complete description of the PSoC 6 BLE Middleware.

The revision history of the PSoC 6 BLE Middleware is also available on the [API Reference Guide Changelog](https://cypresssemiconductorco.github.io/bless/ble_api_reference_manual/html/page_group_ble_changelog.html).

### New in this release:
* Added support BLE Single CPU mode on CM0+ core.
* Added PILO support for the PSoC 64 Secure device
* Added BLE Stack controller libraries with IPC communication (BLESS_CONTROLLER_IPC) for CM0+
* Improved the handling of Cy_BLE_StackShutdown API to avoid timing-sensitive bugs
* Improved the handling of the CY_BLE_EVT_GATTS_WRITE_REQ event to allow operation with a custom GATT database
* Enhanced the BLE ISR to handle LL Channel Map in interrupt context for SoC mode.

### Defect Fixes
* Addressed [CVE-2019-16336](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16336) and [CVE-2019-17061](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-17061) Vulnerabilities.
* Updated the CY_BLE_SFLASH_DIE_xxx macros (in cy_ble_gap.h) according to the PSoC 6 BLE production configuration. The silicon-generated “Company assigned” part of the device address had a high repetition rate of the generated MAC address
* Updated Cy_BLE_ControllerEnterLPM API for handling a scenario where wake-up is initiated by the hardware.

Refer to section [Changelog of PSoC 6 BLE Middleware API Reference Guide](https://cypresssemiconductorco.github.io/bless/ble_api_reference_manual/html/page_group_ble_changelog.html) for details.

Expand Down
17 changes: 12 additions & 5 deletions common/cy_ble_common.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_common.c
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for the API of the BLE PSoC 6 BLE Middleware.
Expand All @@ -13,7 +13,7 @@
* the software package with which this file was provided.
*******************************************************************************/

#if defined(COMPONENT_BLESS_CONTROLLER_IPC) || defined(COMPONENT_BLESS_HOST_IPC) || \
#if defined(COMPONENT_BLESS_HOST_IPC) || \
defined(COMPONENT_BLESS_CONTROLLER) || defined(COMPONENT_BLESS_HOST)
#include "cycfg_ble.h"
#endif /* defined(COMPONENT_BLESS_CONTROLLER_IPC) || defined(COMPONENT_BLESS_HOST_IPC) ... */
Expand All @@ -24,6 +24,13 @@
#if defined(CY_IP_MXBLESS)


#if ( (defined(CY_BLE_GATT_DB_INDEX_COUNT)) && \
(CY_BLE_GATT_DB_INDEX_COUNT > CY_BLE_GATT_DB_INDEX_COUNT_MAX) && \
(!defined(CY_BLE_ERROR_SUPPRESS)))
#error The BLE Stack does not support database of more than 512 entries.
#endif /* if CY_BLE_GATT_DB_INDEX_COUNT > CY_BLE_GATT_DB_INDEX_COUNT_MAX */


/******************************************************************************
* Function Name: Cy_BLE_Init
***************************************************************************//**
Expand Down Expand Up @@ -887,7 +894,7 @@ bool Cy_BLE_HAL_MappingBlessInterruptHandler(void)

void Cy_BLE_MappingLlIsrExitLowPowerMode(void)
{
#if CY_BLE_STACK_CONTR_CORE
#if (CY_BLE_STACK_CONTR_CORE)
Cy_BLE_LlIsrExitLowPowerMode();
#endif /* CY_BLE_STACK_CONTR_CORE */
}
Expand All @@ -897,14 +904,14 @@ void Cy_BLE_HAL_MappingUartRxDataHandler(uint8_t byte)
/* Suppress unused variable warning */
(void) byte;

#if (CY_BLE_STACK_CONTR_CORE) && (CY_BLE_MODE_HCI) && (CY_BLE_MODE_HCI_LEGACY)
#if ((CY_BLE_STACK_CONTR_CORE) && (CY_BLE_MODE_HCI) && (CY_BLE_MODE_HCI_LEGACY))
Cy_BLE_HAL_UartRxDataHandler(byte);
#endif /* CY_BLE_STACK_CONTR_CORE */
}

void Cy_BLE_HAL_MappingUartTxCompltHandler(void)
{
#if (CY_BLE_STACK_CONTR_CORE) && (CY_BLE_MODE_HCI) && (CY_BLE_MODE_HCI_LEGACY)
#if ((CY_BLE_STACK_CONTR_CORE) && (CY_BLE_MODE_HCI) && (CY_BLE_MODE_HCI_LEGACY))
Cy_BLE_HAL_UartTxCompltHandler();
#endif /* CY_BLE_STACK_CONTR_CORE */
}
Expand Down
2 changes: 1 addition & 1 deletion common/cy_ble_common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_common.h
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for the API of the PSoC 6 BLE Middleware.
Expand Down
26 changes: 16 additions & 10 deletions cy_ble.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble.c
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for the API of the PSoC 6 BLE Middleware.
Expand Down Expand Up @@ -871,9 +871,11 @@ static void Cy_BLE_UnregisterHostPmCallbacksDual(void)
* Cy_BLE_EnableLPM).
*
* \param
* callbackParams pointer to the structure with the syspm callback parameters
* callbackParams->mode - the callback mode. See description
* of the cy_en_syspm_callback_mode_t type.
* callbackParams Pointer to the structure with the syspm callback parameters.
*
* \param
* mode The associated syspm callback mode. See description of the
* cy_en_syspm_callback_mode_t type.
*
* \return
* * CY_SYSPM_SUCCESS - Entered and exited from BLESS deep sleep.
Expand Down Expand Up @@ -1008,9 +1010,11 @@ static cy_en_syspm_status_t Cy_BLE_DeepSleepCallbackSingleCore(cy_stc_syspm_call
* Cy_BLE_EnableLPM).
*
* \param
* callbackParams pointer to the structure with the syspm callback parameters
* callbackParams->mode - the callback mode. See description
* of the cy_en_syspm_callback_mode_t type.
* callbackParams Pointer to the structure with the syspm callback parameters.
*
* \param
* mode The associated syspm callback mode. See description of the
* cy_en_syspm_callback_mode_t type.
*
* \return
* * CY_SYSPM_SUCCESS - Entered and exited from BLESS deep sleep.
Expand Down Expand Up @@ -1116,9 +1120,11 @@ static cy_en_syspm_status_t Cy_BLE_DeepSleepCallbackDualCore(cy_stc_syspm_callba
* Cy_BLE_EnableLPM).
*
* \param
* callbackParams pointer to the structure with the syspm callback parameters
* callbackParams->mode - the callback mode. See description
* of the cy_en_syspm_callback_mode_t type.
* callbackParams Pointer to the structure with the syspm callback parameters.
*
* \param
* mode The associated syspm callback mode. See description of the
* cy_en_syspm_callback_mode_t type.
*
* \return
* * CY_SYSPM_SUCCESS - Entered and exited from CPU sleep.
Expand Down
4 changes: 2 additions & 2 deletions cy_ble.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble.h
* \version 3.40
* \version 3.50
*
* \brief
* Contains the prototypes and constants used in the PSoC 6 BLE Middleware.
Expand Down Expand Up @@ -61,7 +61,7 @@ extern "C" {
#define CY_BLE_MW_VERSION_MAJOR (3)

/** Library minor version */
#define CY_BLE_MW_VERSION_MINOR (40)
#define CY_BLE_MW_VERSION_MINOR (50)

#define CY_BLE_M0S8BLESS_VERSION (4u)
#define CY_BLE_SEMA (3u)
Expand Down
4 changes: 1 addition & 3 deletions cy_ble_aios.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_aios.c
* \version 3.40
* \version 3.50
*
* \brief
* Contains the source code for Automation Input Output service.
Expand Down Expand Up @@ -2193,7 +2193,6 @@ cy_en_ble_api_result_t Cy_BLE_AIOSC_SetCharacteristicValueWithoutResponse(cy_stc
* Returns the discovered peer device characteristic value handle.
*
* \param connHandle: The connection handle.
* \param serviceIndex: The index of the service instance.
* \param charIndex: The index of a service characteristic.
* \param charInstance: The instance of characteristic
* \return
Expand Down Expand Up @@ -2223,7 +2222,6 @@ cy_ble_gatt_db_attr_handle_t Cy_BLE_AIOSC_GetCharacteristicValueHandle(cy_stc_bl
* Returns the discovered peer device characteristic descriptor handle.
*
* \param connHandle: The connection handle.
* \param serviceIndex: The index of the service instance.
* \param charIndex: The index of a service characteristic.
* \param charInstance: The instance of characteristic
* \param descrIndex: The index of the descriptor.
Expand Down
4 changes: 2 additions & 2 deletions cy_ble_aios.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file CY_BLE_aios.h
* \version 3.40
* \file cy_ble_aios.h
* \version 3.50
*
* \brief
* Contains the function prototypes and constants for the Automation Input
Expand Down
4 changes: 2 additions & 2 deletions cy_ble_ancs.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_ancs.c
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for
Expand Down Expand Up @@ -973,7 +973,7 @@ static void Cy_BLE_ANCSC_DiscoverCharacteristicsEventHandler(cy_stc_ble_disc_cha
* event. Based on the service UUID, the appropriate data structure is populated
* using the data received as part of the callback.
*
* \param discCharInfo: The pointer to the characteristic information structure.
* \param discDescrInfo: The pointer to a descriptor information structure.
*
******************************************************************************/
static void Cy_BLE_ANCSC_DiscoverCharDescriptorsEventHandler(cy_stc_ble_disc_descr_info_t *discDescrInfo)
Expand Down
2 changes: 1 addition & 1 deletion cy_ble_ancs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_ancs.h
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the function prototypes and constants used in
Expand Down
16 changes: 6 additions & 10 deletions cy_ble_ans.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_ans.c
* \version 3.40
* \version 3.50
*
* \brief
* Contains the source code for the Alert Notification service.
Expand Down Expand Up @@ -637,10 +637,10 @@ static void Cy_BLE_ANSC_DiscoverCharacteristicsEventHandler(cy_stc_ble_disc_char
*
* This function is called on receiving a #CY_BLE_EVT_GATTC_FIND_INFO_RSP event.
* This event is generated when a server successfully sends the data for
* #CY_BLE_EVT_GATTC_FIND_INFO_REQ. Based on the service UUID, an appropriate data
* #CY_BLE_GATT_FIND_INFO_REQ. Based on the service UUID, an appropriate data
* structure is populated to the service with a service callback.
*
* \param *discCharInfo: The pointer to a characteristic information structure.
* \param discDescrInfo: The pointer to descriptor information structure.
*
******************************************************************************/
static void Cy_BLE_ANSC_DiscoverCharDescriptorsEventHandler(cy_stc_ble_disc_descr_info_t * discDescrInfo)
Expand Down Expand Up @@ -781,8 +781,7 @@ static void Cy_BLE_ANSC_NotificationEventHandler(cy_stc_ble_gattc_handle_value_n
*
* Handles Read Response event for Alert Notification service.
*
* \param #cy_stc_ble_gattc_read_rsp_param_t *eventParam: The pointer to the data that came
* with a read response for ANS.
* \param eventParam: The pointer to the data that came with a read response for ANS.
*
******************************************************************************/
static void Cy_BLE_ANSC_ReadResponseEventHandler(cy_stc_ble_gattc_read_rsp_param_t *eventParam)
Expand Down Expand Up @@ -868,8 +867,7 @@ static void Cy_BLE_ANSC_ReadResponseEventHandler(cy_stc_ble_gattc_read_rsp_param
*
* Handles Write Response event for Alert Notification service.
*
* \param cy_stc_ble_conn_handle_t *eventParam: The pointer to the cy_stc_ble_conn_handle_t data
* structure.
* \param eventParam: The pointer to the cy_stc_ble_conn_handle_t data structure.
*
******************************************************************************/
static void Cy_BLE_ANSC_WriteResponseEventHandler(const cy_stc_ble_conn_handle_t *eventParam)
Expand Down Expand Up @@ -948,9 +946,7 @@ static void Cy_BLE_ANSC_WriteResponseEventHandler(const cy_stc_ble_conn_handle_t
*
* Handles Error Response event for Alert Notification service.
*
* \param cy_stc_ble_gatt_err_param_t *eventParam: The pointer to
* the cy_stc_ble_gatt_err_param_t
* structure.
* \param eventParam: The pointer to the cy_stc_ble_gatt_err_param_t structure.
*
******************************************************************************/
static void Cy_BLE_ANSC_ErrorResponseEventHandler(const cy_stc_ble_gatt_err_param_t *eventParam)
Expand Down
2 changes: 1 addition & 1 deletion cy_ble_ans.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_ans.h
* \version 3.40
* \version 3.50
*
* \brief
* Contains the function prototypes and constants for the Alert Notification
Expand Down
4 changes: 2 additions & 2 deletions cy_ble_bas.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bas.c
* \version 3.40
* \version 3.50
*
* \brief
* Contains the source code for the Battery service.
Expand Down Expand Up @@ -409,7 +409,7 @@ cy_en_ble_api_result_t Cy_BLE_BASS_GetCharacteristicDescriptor(cy_stc_ble_conn_h
*
* Handles a Write Request event for the Battery service.
*
* \param void *eventParam: The pointer to the data structure specified by the event.
* \param *eventParam: The pointer to the data structure specified by the event.
*
* \return
* A return value of type \ref cy_en_ble_gatt_err_code_t.
Expand Down
2 changes: 1 addition & 1 deletion cy_ble_bas.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bas.h
* \version 3.40
* \version 3.50
*
* \brief
* Contains the function prototypes and constants for the Battery service.
Expand Down
4 changes: 2 additions & 2 deletions cy_ble_bcs.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bcs.c
* \version 3.40
* \version 3.50
*
* \brief
* Contains the source code for the Body Composition service.
Expand Down Expand Up @@ -469,7 +469,7 @@ cy_en_ble_api_result_t Cy_BLE_BCSS_GetCharacteristicDescriptor(cy_stc_ble_conn_h
*
* Handles a Write Request event for the Body Composition service.
*
* \param void *eventParam - The pointer to the data structure specified by the event.
* \param *eventParam - The pointer to the data structure specified by the event.
*
* \return
* A return value of type cy_en_ble_gatt_err_code_t.
Expand Down
2 changes: 1 addition & 1 deletion cy_ble_bcs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bcs.h
* \version 3.40
* \version 3.50
*
* \brief
* Contains the function prototypes and constants for the Body Composition service.
Expand Down
6 changes: 3 additions & 3 deletions cy_ble_bls.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bls.c
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for the Blood Pressure service.
Expand Down Expand Up @@ -1051,7 +1051,7 @@ static void Cy_BLE_BLSC_DiscoverCharacteristicsEventHandler(cy_stc_ble_disc_char
* event. Based on the service UUID, the appropriate data structure is populated
* using the data received as part of the callback.
*
* \param discCharInfo: The pointer to a characteristic information structure.
* \param discDescrInfo: The pointer to a descriptor information structure.
*
******************************************************************************/
static void Cy_BLE_BLSC_DiscoverCharDescriptorsEventHandler(cy_stc_ble_disc_descr_info_t * discDescrInfo)
Expand Down Expand Up @@ -1199,7 +1199,7 @@ static void Cy_BLE_BLSC_IndicationEventHandler(cy_stc_ble_gattc_handle_value_ind
*
* Handles a Read Response event.
*
* \param cy_stc_ble_gattc_read_rsp_param_t *eventParam: The pointer to the data structure.
* \param eventParam: The pointer to the data structure specified by the event.
*
******************************************************************************/
static void Cy_BLE_BLSC_ReadResponseEventHandler(cy_stc_ble_gattc_read_rsp_param_t *eventParam)
Expand Down
2 changes: 1 addition & 1 deletion cy_ble_bls.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bls.h
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the function prototypes and constants used in
Expand Down
11 changes: 4 additions & 7 deletions cy_ble_bms.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************//**
* \file cy_ble_bms.c
* \version 3.40
* \version 3.50
*
* \brief
* This file contains the source code for the Bond Management service.
Expand Down Expand Up @@ -525,9 +525,7 @@ static cy_en_ble_gatt_err_code_t Cy_BLE_BMSS_WriteEventHandler(cy_stc_ble_gatts_
*
* Handles a Prepare Write Request event.
*
* \param cy_stc_ble_gatts_prep_write_req_param_t *eventParam: The pointer to the data that
* came with a Prepare Write
* request.
* \param eventParam: The pointer to the data that came with a Prepare Write request.
*
******************************************************************************/
static void Cy_BLE_BMSS_PrepareWriteRequestEventHandler(cy_stc_ble_gatts_prep_write_req_param_t *eventParam)
Expand Down Expand Up @@ -563,8 +561,7 @@ static void Cy_BLE_BMSS_PrepareWriteRequestEventHandler(cy_stc_ble_gatts_prep_wr
*
* Handles an Execute Write Request event.
*
* \param cy_stc_ble_gatts_exec_write_req_t *eventParam: The pointer to the data that came
* with a Write Request.
* \param eventParam: The pointer to the data that came with a Write Request.
*
******************************************************************************/
static void Cy_BLE_BMSS_ExecuteWriteRequestEventHandler(cy_stc_ble_gatts_exec_write_req_t *eventParam)
Expand Down Expand Up @@ -1114,7 +1111,7 @@ static void Cy_BLE_BMSC_DiscoverCharacteristicsEventHandler(cy_stc_ble_disc_char
* event. Based on the service UUID, the appropriate data structure is populated
* using the data received as part of the callback.
*
* \param discCharInfo: The pointer to a characteristic information structure.
* \param discDescrInfo: The pointer to a descriptor information structure.
*
******************************************************************************/
static void Cy_BLE_BMSC_DiscoverCharDescriptorsEventHandler(cy_stc_ble_disc_descr_info_t *discDescrInfo)
Expand Down
Loading

0 comments on commit b7ad1b7

Please sign in to comment.