mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
test/pts: fix compile
This commit is contained in:
parent
15bc0bd402
commit
9bd31a40c4
@ -98,6 +98,7 @@ CFLAGS += -D ENABLE_LE_SIGNED_WRITE
|
||||
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
|
||||
CFLAGS += -I${BTSTACK_ROOT}/src
|
||||
CFLAGS += -I${BTSTACK_ROOT}/example
|
||||
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include -D OI_DEBUG
|
||||
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
|
||||
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/eCC
|
||||
@ -113,6 +114,7 @@ VPATH += ${BTSTACK_ROOT}/src/ble
|
||||
VPATH += ${BTSTACK_ROOT}/src/ble/gatt-service
|
||||
VPATH += ${BTSTACK_ROOT}/src/ble/mesh
|
||||
VPATH += ${BTSTACK_ROOT}/src/classic
|
||||
VPATH += ${BTSTACK_ROOT}/example
|
||||
VPATH += ${BTSTACK_ROOT}/platform/posix
|
||||
VPATH += ${BTSTACK_ROOT}/platform/libusb
|
||||
VPATH += ${BTSTACK_ROOT}/port/libusb
|
||||
@ -145,7 +147,8 @@ AVRCP_OBJ = $(AVRCP:.c=.o)
|
||||
HXCMOD_PLAYER_OBJ = ${HXCMOD_PLAYER:.c=.o}
|
||||
SRC_BLE_GATT_SERVICE_FILES_OBJ = ${SRC_BLE_GATT_SERVICE_FILES:.c=.o}
|
||||
|
||||
EXAMPLES = iopt ble_peripheral_test ble_central_test l2cap_test classic_test bnep_test hsp_ag_test hsp_hs_test sco_loopback le_data_channel
|
||||
EXAMPLES = iopt ble_peripheral_test ble_central_test l2cap_test classic_test bnep_test le_data_channel
|
||||
EXAMPLES += hsp_ag_test hsp_hs_test sco_loopback hfp_ag_test hfp_hf_test
|
||||
EXAMPLES += avdtp_source_test avdtp_sink_test avrcp_test gatt_profiles hrp_col_test hrp_server_test
|
||||
EXAMPLES += hog_device_test hog_host_test hid_device_test hid_host_test
|
||||
EXAMPLES += csc_server_test csc_client_test cycling_power_server_test
|
||||
|
@ -458,7 +458,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
printf("Connection failed, staus 0x%02x\n", status);
|
||||
break;
|
||||
}
|
||||
acl_handle = hfp_subevent_service_level_connection_established_get_con_handle(event);
|
||||
acl_handle = hfp_subevent_service_level_connection_established_get_acl_handle(event);
|
||||
hfp_subevent_service_level_connection_established_get_bd_addr(event, device_addr);
|
||||
printf("Service level connection established to %s.\n", bd_addr_to_str(device_addr));
|
||||
dump_supported_codecs();
|
||||
@ -476,7 +476,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
if (hfp_subevent_audio_connection_established_get_status(event) != ERROR_CODE_SUCCESS){
|
||||
printf("Audio connection establishment failed with status %u\n", hfp_subevent_audio_connection_established_get_status(event));
|
||||
} else {
|
||||
sco_handle = hfp_subevent_audio_connection_established_get_handle(event);
|
||||
sco_handle = hfp_subevent_audio_connection_established_get_sco_handle(event);
|
||||
printf("Audio connection established with SCO handle 0x%04x.\n", sco_handle);
|
||||
negotiated_codec = hfp_subevent_audio_connection_established_get_negotiated_codec(event);
|
||||
switch (negotiated_codec){
|
||||
|
@ -465,7 +465,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
case HCI_EVENT_HFP_META:
|
||||
switch (hci_event_hfp_meta_get_subevent_code(event)) {
|
||||
case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED:
|
||||
acl_handle = hfp_subevent_service_level_connection_established_get_con_handle(event);
|
||||
acl_handle = hfp_subevent_service_level_connection_established_get_acl_handle(event);
|
||||
hfp_subevent_service_level_connection_established_get_bd_addr(event, device_addr);
|
||||
printf("Service level connection established %s.\n\n", bd_addr_to_str(device_addr));
|
||||
break;
|
||||
@ -478,7 +478,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
if (status != ERROR_CODE_SUCCESS){
|
||||
printf("Audio connection establishment failed with status 0x%02x\n", status);
|
||||
} else {
|
||||
sco_handle = hfp_subevent_audio_connection_established_get_handle(event);
|
||||
sco_handle = hfp_subevent_audio_connection_established_get_sco_handle(event);
|
||||
printf("Audio connection established with SCO handle 0x%04x.\n", sco_handle);
|
||||
negotiated_codec = hfp_subevent_audio_connection_established_get_negotiated_codec(event);
|
||||
switch (negotiated_codec){
|
||||
|
Loading…
x
Reference in New Issue
Block a user