mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'test/bqb_test_bt_classic_hid' into 'master'
feat(bt/bqb): Add setting local di record function for specific hid case of bqb auto test Closes BT-3359 See merge request espressif/esp-idf!25055
This commit is contained in:
@@ -317,4 +317,21 @@ static const char *bta_hd_state_code(tBTA_HD_STATE state_code)
|
||||
return "<unknown>";
|
||||
}
|
||||
}
|
||||
|
||||
#if BT_HID_DEVICE_BQB_INCLUDED
|
||||
tBTA_STATUS bta_hd_bqb_set_local_di_record(void)
|
||||
{
|
||||
tBTA_STATUS status = BTA_FAILURE;
|
||||
|
||||
tBTA_DI_RECORD bqb_device_info;
|
||||
bqb_device_info.vendor = 0;
|
||||
bqb_device_info.vendor_id_source = 0xff; // BTA_HH_VENDOR_ID_INVALID
|
||||
bqb_device_info.product = 1;
|
||||
bqb_device_info.version = 0;
|
||||
bqb_device_info.primary_record = TRUE;
|
||||
|
||||
return BTA_DmSetLocalDiRecord(&bqb_device_info, &bta_hd_cb.sdp_handle);
|
||||
}
|
||||
#endif /* BT_HID_DEVICE_BQB_INCLUDED */
|
||||
|
||||
#endif /* BTA_HD_INCLUDED */
|
||||
|
||||
@@ -2034,6 +2034,12 @@
|
||||
#define HID_DEV_FLUSH_TO 0xffff
|
||||
#endif
|
||||
|
||||
#if (BTA_HD_INCLUDED == TRUE) && (HID_DEV_INCLUDED == TRUE) && (BT_CLASSIC_BQB_INCLUDED == TRUE)
|
||||
#define BT_HID_DEVICE_BQB_INCLUDED TRUE
|
||||
#else
|
||||
#define BT_HID_DEVICE_BQB_INCLUDED FALSE
|
||||
#endif
|
||||
|
||||
/*************************************************************************
|
||||
** Definitions for Both HID-Host & Device
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user