Skip to content

Commit 1c9eab0

Browse files
authored
Merge branch 'espressif:release/v5.4' into release/v5.4
2 parents 1e853d6 + 72de711 commit 1c9eab0

File tree

153 files changed

+11527
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+11527
-654
lines changed

components/bt/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,19 @@ if(CONFIG_BT_ENABLED)
451451
list(APPEND srcs "esp_ble_mesh/core/bluedroid_host/adapter.c")
452452
endif()
453453

454+
if(CONFIG_BT_BLE_FEAT_ISO_EN)
455+
list(APPEND srcs "host/bluedroid/stack/btm/btm_ble_iso.c"
456+
"host/bluedroid/btc/profile/std/iso/btc_iso_ble.c"
457+
"host/bluedroid/api/esp_ble_iso_api.c"
458+
"host/bluedroid/hci/ble_hci_iso.c")
459+
endif()
460+
461+
if(CONFIG_BT_BLE_FEAT_CTE_EN)
462+
list(APPEND srcs "host/bluedroid/stack/btm/btm_ble_cte.c"
463+
"host/bluedroid/btc/profile/std/cte/btc_ble_cte.c"
464+
"host/bluedroid/api/esp_ble_cte_api.c")
465+
endif()
466+
454467
endif()
455468

456469
if(CONFIG_BLE_MESH)

components/bt/common/btc/core/btc_task.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include "btc_gattc.h"
2525
#include "btc_gatt_common.h"
2626
#include "btc_gap_ble.h"
27+
#include "btc_iso_ble.h"
28+
#include "btc_ble_cte.h"
2729
#include "btc/btc_dm.h"
2830
#include "bta/bta_gatt_api.h"
2931
#if CLASSIC_BT_INCLUDED
@@ -258,6 +260,12 @@ static const btc_func_t profile_tab[BTC_PID_NUM] = {
258260
[BTC_PID_BLE_MESH_BLE_COEX] = {btc_ble_mesh_ble_call_handler, btc_ble_mesh_ble_cb_handler },
259261
#endif /* CONFIG_BLE_MESH_BLE_COEX_SUPPORT */
260262
#endif /* #if CONFIG_BLE_MESH */
263+
#if (BLE_FEAT_ISO_EN == TRUE)
264+
[BTC_PID_ISO_BLE] = {btc_iso_ble_call_handler, btc_iso_ble_cb_handler },
265+
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
266+
#if (BLE_FEAT_CTE_EN == TRUE)
267+
[BTC_PID_BLE_CTE] = {btc_ble_cte_call_handler, btc_ble_cte_cb_handler },
268+
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
261269
};
262270

263271
/*****************************************************************************
@@ -525,6 +533,12 @@ bt_status_t btc_init(void)
525533

526534
#if (BLE_INCLUDED == TRUE)
527535
btc_gap_callback_init();
536+
#if (BLE_FEAT_ISO_EN == TRUE)
537+
btc_iso_callback_init();
538+
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
539+
#if (BLE_FEAT_CTE_EN == TRUE)
540+
btc_cte_callback_init();
541+
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
528542
btc_gap_ble_init();
529543
#endif ///BLE_INCLUDED == TRUE
530544

components/bt/common/btc/include/btc/btc_task.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ typedef enum {
105105
BTC_PID_MBT_SERVER,
106106
BTC_PID_BLE_MESH_BLE_COEX,
107107
#endif /* CONFIG_BLE_MESH */
108+
#if (BLE_FEAT_ISO_EN == TRUE)
109+
BTC_PID_ISO_BLE,
110+
#endif // #if (BLE_FEAT_ISO_EN == TRUE)
111+
#if (BLE_FEAT_CTE_EN == TRUE)
112+
BTC_PID_BLE_CTE,
113+
#endif // #if (BLE_FEAT_CTE_EN == TRUE)
108114
BTC_PID_NUM,
109115
} btc_pid_t; //btc profile id
110116

components/bt/common/hci_log/bt_hci_log.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -124,6 +124,11 @@ static char IRAM_ATTR *bt_data_type_to_str(uint8_t data_type)
124124
// self-defining data
125125
tag = "S";
126126
break;
127+
case HCI_LOG_DATA_TYPE_ISO_DATA:
128+
// 5.2 iso data
129+
tag = "I";
130+
break;
131+
break;
127132
default:
128133
// unknown data type
129134
tag = "U";

components/bt/common/hci_log/include/hci_log/bt_hci_log.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ extern "C" {
2121
#define HCI_LOG_DATA_TYPE_ADV (5)
2222
#define HCI_LOG_DATA_TYPE_SELF_DEFINE (6)
2323
#define HCI_LOG_DATA_TYPE_C2H_ACL (7)
24+
#define HCI_LOG_DATA_TYPE_ISO_DATA (8)
2425

2526
/**
2627
*

components/bt/controller/lib_esp32

components/bt/host/bluedroid/Kconfig.in

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,118 @@ config BT_BLE_42_SCAN_EN
13401340
help
13411341
This enables BLE v4.2 scan
13421342

1343+
menuconfig BT_BLE_FEAT_ISO_EN
1344+
bool "Enable BLE 5.2 iso feature"
1345+
depends on (BT_BLE_50_FEATURES_SUPPORTED && ((BT_CONTROLLER_ENABLED && SOC_BLE_AUDIO_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
1346+
default n
1347+
help
1348+
Enable BLE 5.2 iso
1349+
1350+
config BT_BLE_FEAT_ISO_60_EN
1351+
bool "Enable ISO v6.0 feature"
1352+
depends on BT_BLE_FEAT_ISO_EN
1353+
default n
1354+
help
1355+
Enable iso 6.0 feature
1356+
1357+
config BT_BLE_FEAT_ISO_BIG_BROCASTER
1358+
bool "Enable BLE iso BIG brocaster"
1359+
depends on BT_BLE_FEAT_ISO_EN
1360+
default y
1361+
help
1362+
Enable BLE 5.2 BIG brocaster
1363+
1364+
config BT_BLE_FEAT_ISO_BIG_SYNCER
1365+
bool "Enable BLE iso BIG syncer"
1366+
depends on BT_BLE_FEAT_ISO_EN
1367+
default y
1368+
help
1369+
Enable BLE 5.2 BIG syncer
1370+
1371+
config BT_BLE_ISO_BIS_MAX_COUNT
1372+
int "Maximum bis count"
1373+
depends on BT_BLE_FEAT_ISO_EN && (BT_BLE_FEAT_ISO_BIG_BROCASTER || BT_BLE_FEAT_ISO_BIG_SYNCER)
1374+
default 2
1375+
range 1 31
1376+
help
1377+
Enable BLE 5.2 CIG peripheral
1378+
1379+
config BT_BLE_FEAT_ISO_CIG_CENTRAL
1380+
bool "Enable BLE iso CIG central"
1381+
depends on BT_BLE_FEAT_ISO_EN
1382+
default y
1383+
help
1384+
Enable BLE 5.2 CIG central
1385+
1386+
config BT_BLE_FEAT_ISO_CIG_PERIPHERAL
1387+
bool "Enable BLE iso CIG peripheral"
1388+
depends on BT_BLE_FEAT_ISO_EN
1389+
default y
1390+
help
1391+
Enable BLE 5.2 CIG peripheral
1392+
1393+
config BT_BLE_ISO_CIS_MAX_COUNT
1394+
int "Maximum cis count"
1395+
depends on BT_BLE_FEAT_ISO_EN && (BT_BLE_FEAT_ISO_CIG_CENTRAL || BT_BLE_FEAT_ISO_CIG_PERIPHERAL)
1396+
default 2
1397+
range 1 31
1398+
help
1399+
Enable BLE 5.2 CIG peripheral
1400+
1401+
choice BT_BLE_ISO_FLOW_CONTROL
1402+
prompt "Select ISO flow control type"
1403+
depends on BT_BLE_FEAT_ISO_EN
1404+
default BT_BLE_ISO_NON_STD_FLOW_CTRL
1405+
help
1406+
Select ISO flow control type
1407+
1408+
config BT_BLE_ISO_STD_FLOW_CTRL
1409+
bool "ISO standard flow control"
1410+
help
1411+
Enable ISO standard flow control
1412+
1413+
config BT_BLE_ISO_NON_STD_FLOW_CTRL
1414+
bool "ISO non-standard flow control"
1415+
help
1416+
Enable ISO non-standard flow control
1417+
1418+
endchoice
1419+
1420+
menuconfig BT_BLE_FEAT_CTE_EN
1421+
bool "Enable BLE CTE feature"
1422+
depends on (BT_BLE_50_FEATURES_SUPPORTED && ((BT_CONTROLLER_ENABLED && SOC_BLE_CTE_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
1423+
default n
1424+
help
1425+
Enable BLE 5.1 CTE
1426+
1427+
config BT_BLE_FEAT_CTE_CONNECTIONLESS_EN
1428+
bool "Enable BLE CTE connectionless feature"
1429+
depends on BT_BLE_FEAT_CTE_EN
1430+
default y
1431+
help
1432+
Transmission of CTE in periodic advertising
1433+
1434+
config BT_BLE_FEAT_CTE_CONNECTION_EN
1435+
bool "Enable BLE CTE connection feature"
1436+
depends on BT_BLE_FEAT_CTE_EN
1437+
default y
1438+
help
1439+
Transmission of CTE by ACL connection
1440+
1441+
config BT_BLE_FEAT_POWER_CONTROL
1442+
bool "Enable BLE power control feature"
1443+
depends on (BT_BLE_50_FEATURES_SUPPORTED && ((BT_CONTROLLER_ENABLED && SOC_BLE_POWER_CONTROL_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
1444+
default n
1445+
help
1446+
Enable BLE power control feature
1447+
1448+
config BT_BLE_FEAT_CONN_SUBRATING
1449+
bool "Enable BLE connection subrating feature"
1450+
depends on (BT_BLE_50_FEATURES_SUPPORTED && ((BT_CONTROLLER_ENABLED && SOC_BLE_SUBRATE_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
1451+
default n
1452+
help
1453+
Enable BLE connection subrating feature
1454+
13431455
config BT_BLE_HIGH_DUTY_ADV_INTERVAL
13441456
bool "Enable BLE high duty advertising interval feature"
13451457
depends on BT_BLE_ENABLED

0 commit comments

Comments
 (0)