test/le_audio: support Broadcom Controllers

This commit is contained in:
Matthias Ringwald 2023-01-24 10:48:26 +01:00
parent 547a29a636
commit 0c60899709
2 changed files with 11 additions and 1 deletions

View File

@ -89,6 +89,7 @@ include_directories(../../3rd-party/tinydir)
include_directories(../../src)
include_directories(../../example)
include_directories(../../chipset/zephyr)
include_directories(../../chipset/bcm)
include_directories(../../platform/posix)
include_directories(../../platform/embedded)
include_directories(../../platform/lwip)
@ -108,6 +109,7 @@ file(GLOB SOURCES_RIJNDAEL "../../3rd-party/rijndael/rijndael.c")
file(GLOB SOURCES_POSIX "../../platform/posix/*.c")
file(GLOB SOURCES_MAIN "main.c" "btstack_lc3plus_fraunhofer.c")
file(GLOB SOURCES_ZEPHYR "../../chipset/zephyr/*.c")
file(GLOB SOURCES_BCM "../../chipset/bcm/*.c")
file(GLOB SOURCES_LC3_GOOGLE "../../3rd-party/lc3-google/src/*.c")
file(GLOB SOURCES_BLE_OFF "../../src/ble/le_device_db_memory.c")
@ -132,6 +134,7 @@ set(SOURCES
${SOURCES_UECC}
${SOURCES_HXCMOD}
${SOURCES_ZEPHYR}
${SOURCES_BCM}
)
list(SORT SOURCES)

View File

@ -69,6 +69,7 @@
#include "hci_dump_posix_fs.h"
#include "hci_transport.h"
#include "hci_transport_h4.h"
#include "btstack_chipset_bcm.h"
#define HCI_OPCODE_ZEPHYR_READ_STATIC_ADDRESS 0xFC09
const hci_cmd_t hci_zephyr_read_static_address = {
@ -95,7 +96,7 @@ static void local_version_information_handler(uint8_t * packet);
static hci_transport_config_uart_t config = {
HCI_TRANSPORT_CONFIG_UART,
1000000,
115200,
0, // main baudrate
1, // flow control
NULL,
@ -199,6 +200,12 @@ static void local_version_information_handler(uint8_t * packet){
printf("Zephyr HCI Controller\n");
is_zephyr = true;
break;
case BLUETOOTH_COMPANY_ID_INFINEON_TECHNOLOGIES_AG:
case BLUETOOTH_COMPANY_ID_BROADCOM_CORPORATION:
printf("Broadcom/Cypress/Infineon Controller\n");
config.baudrate_main = 921600;
hci_set_chipset(btstack_chipset_bcm_instance());
break;
default:
printf("Unknown manufacturer / manufacturer not supported yet.\n");
break;