Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h')
-rw-r--r--Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h b/Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h
index d99fd65b7..9cc4b7dad 100644
--- a/Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h
+++ b/Middlewares/ST/STM32_WPAN/ble/core/ble_legacy.h
@@ -1,6 +1,6 @@
/*****************************************************************************
* @file ble_legacy.h
- * @author MCD Application Team
+ * @author MCD
* @brief This file contains legacy definitions used for BLE.
*****************************************************************************
* @attention
@@ -229,6 +229,26 @@ typedef uint8_t tBDAddr[6];
#define ADV_INTERVAL_HIGHEST 0X4000
#define ADV_INTERVAL_LOWEST_NONCONN 0X00A0
+
+/* ------------------------------------------------------------------------- */
+
+
+/*
+ * BLE_DEFAULT_MAX_ATT_MTU: maximum supported ATT MTU size.
+ */
+#define BLE_DEFAULT_MAX_ATT_MTU 158
+
+/*
+ * BLE_DEFAULT_MBLOCKS_COUNT: default memory blocks count
+ */
+#define BLE_DEFAULT_MBLOCKS_COUNT(n_link) \
+ BLE_MBLOCKS_CALC(BLE_DEFAULT_PREP_WRITE_LIST_SIZE, \
+ BLE_DEFAULT_MAX_ATT_MTU, n_link)
+
+
+#define TOTAL_DEVICE_ID_DATA_SIZE 56
+
+
/* ------------------------------------------------------------------------- */