Skip to content

chore: update to STM32_WPAN v1.23.0 #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utility/STM32_WPAN/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

## Source

[STMicroelectronics/STM32CubeWB Release v1.22.0](https://github.com/STMicroelectronics/STM32CubeWB/releases/tag/v1.22.0)
- Application: [BLE_TransparentMode](https://github.com/STMicroelectronics/STM32CubeWB/tree/v1.22.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_TransparentMode)
[STMicroelectronics/STM32CubeWB Release v1.23.0](https://github.com/STMicroelectronics/STM32CubeWB/releases/tag/v1.23.0)
- Application: [BLE_TransparentMode](https://github.com/STMicroelectronics/STM32CubeWB/tree/v1.23.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_TransparentMode)

7 changes: 7 additions & 0 deletions src/utility/STM32_WPAN/app_conf_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@

#define CFG_BLE_MAX_TX_POWER (6)

/**
* BLE stack Maximum number of created Enhanced ATT bearers to be configured
* in addition to the number of links
* - Range: 0 .. 4
*/
#define CFG_BLE_MAX_ADD_EATT_BEARERS (4)

/**
* BLE Rx model configuration flags to be configured with:
* - SHCI_C2_BLE_INIT_RX_MODEL_AGC_RSSI_LEGACY
Expand Down
2 changes: 1 addition & 1 deletion src/utility/STM32_WPAN/ble_bufsize.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
#if (BEACON_ONLY != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES 4200 /* Beacon only */
#elif (LL_ONLY_BASIC != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES 6040 /* LL only Basic*/
#define BLE_FIXED_BUFFER_SIZE_BYTES 5960 /* LL only Basic*/
#elif (LL_ONLY != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES 6288 /* LL only Full */
#elif (SLAVE_ONLY != 0)
Expand Down
75 changes: 42 additions & 33 deletions src/utility/STM32_WPAN/shci.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,53 +565,62 @@ extern "C" {
*/
int8_t max_tx_power;

/**
* RX model configuration
* - bit 0: 1: agc_rssi model improved vs RF blockers 0: Legacy agc_rssi model
* - other bits: reserved ( shall be set to 0)
*/
/**
* RX model configuration
* - bit 0: 1: agc_rssi model improved vs RF blockers 0: Legacy agc_rssi model
* - other bits: reserved ( shall be set to 0)
*/
uint8_t rx_model_config;

/* Maximum number of advertising sets.
* Range: 1 .. 8 with limitation:
* This parameter is linked to max_adv_data_len such as both compliant with allocated Total memory computed with BLE_EXT_ADV_BUFFER_SIZE based
* on Max Extended advertising configuration supported.
* This parameter is considered by the CPU2 when Options has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
*/
/** Maximum number of advertising sets.
* Range: 1 .. 8 with limitation:
* This parameter is linked to max_adv_data_len such as both compliant with allocated Total memory computed with BLE_EXT_ADV_BUFFER_SIZE based
* on Max Extended advertising configuration supported.
* This parameter is considered by the CPU2 when Options has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
*/
uint8_t max_adv_set_nbr;

/* Maximum advertising data length (in bytes)
* Range: 31 .. 1650 with limitation:
* This parameter is linked to max_adv_set_nbr such as both compliant with allocated Total memory computed with BLE_EXT_ADV_BUFFER_SIZE based
* on Max Extended advertising configuration supported.
* This parameter is considered by the CPU2 when Options has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
*/
/** Maximum advertising data length (in bytes)
* Range: 31 .. 1650 with limitation:
* This parameter is linked to max_adv_set_nbr such as both compliant with allocated Total memory computed with BLE_EXT_ADV_BUFFER_SIZE based
* on Max Extended advertising configuration supported.
* This parameter is considered by the CPU2 when Options has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
*/
uint16_t max_adv_data_len;

/* RF TX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
* Range: -1280 .. 1280
*/
/** RF TX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
* Range: -1280 .. 1280
*/
int16_t tx_path_compens;

/* RF RX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
* Range: -1280 .. 1280
*/
/** RF RX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
* Range: -1280 .. 1280
*/
int16_t rx_path_compens;

/* BLE core specification version (8-bit unsigned integer).
* values as: 11(5.2), 12(5.3), 13(5.4)
*/
/** BLE core specification version (8-bit unsigned integer).
* values as: 11(5.2), 12(5.3), 13(5.4)
*/
uint8_t ble_core_version;

/**
* Options flags extension
* - bit 0: 1: appearance Writable 0: appearance Read-Only
* - bit 1: 1: Enhanced ATT supported 0: Enhanced ATT not supported
* - other bits: reserved ( shall be set to 0)
*/
/**
* Options flags extension
* - bit 0: 1: appearance Writable 0: appearance Read-Only
* - bit 1: 1: Enhanced ATT supported 0: Enhanced ATT not supported
* - other bits: reserved ( shall be set to 0)
*/
uint8_t Options_extension;

} SHCI_C2_Ble_Init_Cmd_Param_t;
/**
* MaxAddEattBearers
*
* Maximum number of bearers that can be created for Enhanced ATT
* in addition to the number of links
* - Range: 0 .. 4
*/
uint8_t MaxAddEattBearers;

} SHCI_C2_Ble_Init_Cmd_Param_t;

typedef PACKED_STRUCT{
SHCI_Header_t Header; /** Does not need to be initialized by the user */
Expand Down
8 changes: 8 additions & 0 deletions src/utility/STM32_WPAN/stm_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#ifndef _STM_LIST_H_
#define _STM_LIST_H_

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32_wpan_common.h"

Expand Down Expand Up @@ -52,4 +56,8 @@ void LST_get_next_node (tListNode * ref_node, tListNode ** node);

void LST_get_prev_node (tListNode * ref_node, tListNode ** node);

#ifdef __cplusplus
}
#endif

#endif /* _STM_LIST_H_ */
Loading