mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/bt : close sdp to free dram
1. free 15K
This commit is contained in:
parent
19273c7b2d
commit
ac87ddfb05
@ -29,6 +29,7 @@
|
|||||||
#include "bt_types.h"
|
#include "bt_types.h"
|
||||||
#include "btm_api.h"
|
#include "btm_api.h"
|
||||||
// #include "uipc_msg.h"
|
// #include "uipc_msg.h"
|
||||||
|
#include "sdp_api.h"
|
||||||
|
|
||||||
#if BLE_INCLUDED == TRUE
|
#if BLE_INCLUDED == TRUE
|
||||||
#include "btm_ble_api.h"
|
#include "btm_ble_api.h"
|
||||||
|
@ -978,7 +978,7 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#ifndef SDP_INCLUDED
|
#ifndef SDP_INCLUDED
|
||||||
#define SDP_INCLUDED TRUE
|
#define SDP_INCLUDED FALSE //TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This is set to enable SDP server functionality. */
|
/* This is set to enable SDP server functionality. */
|
||||||
|
@ -2615,13 +2615,15 @@ BOOLEAN btm_ble_update_inq_result(tINQ_DB_ENT *p_i, UINT8 addr_type, UINT8 evt_t
|
|||||||
BTM_BLE_AD_TYPE_16SRV_CMPL, &len)) != NULL) {
|
BTM_BLE_AD_TYPE_16SRV_CMPL, &len)) != NULL) {
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
for (i = 0; i + 2 <= len; i = i + 2) {
|
for (i = 0; i + 2 <= len; i = i + 2) {
|
||||||
/* if this BLE device support HID over LE, set HID Major in class of device */
|
#if BTA_HH_LE_INCLUDED == TRUE
|
||||||
|
/* if this BLE device support HID over LE, set HID Major in class of device */
|
||||||
if ((p_uuid16[i] | (p_uuid16[i + 1] << 8)) == UUID_SERVCLASS_LE_HID) {
|
if ((p_uuid16[i] | (p_uuid16[i + 1] << 8)) == UUID_SERVCLASS_LE_HID) {
|
||||||
p_cur->dev_class[0] = 0;
|
p_cur->dev_class[0] = 0;
|
||||||
p_cur->dev_class[1] = BTM_COD_MAJOR_PERIPHERAL;
|
p_cur->dev_class[1] = BTM_COD_MAJOR_PERIPHERAL;
|
||||||
p_cur->dev_class[2] = 0;
|
p_cur->dev_class[2] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif /* BTA_HH_LE_INCLUDED */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "gatt_int.h"
|
#include "gatt_int.h"
|
||||||
#include "btm_int.h"
|
#include "btm_int.h"
|
||||||
#include "hcimsgs.h"
|
#include "hcimsgs.h"
|
||||||
|
#include "sdpdefs.h"
|
||||||
|
|
||||||
#define GAP_CHAR_ICON_SIZE 2
|
#define GAP_CHAR_ICON_SIZE 2
|
||||||
#define GAP_CHAR_DEV_NAME_SIZE 248
|
#define GAP_CHAR_DEV_NAME_SIZE 248
|
||||||
|
@ -33,7 +33,8 @@
|
|||||||
#include "gatt_int.h"
|
#include "gatt_int.h"
|
||||||
#include "l2c_api.h"
|
#include "l2c_api.h"
|
||||||
#include "btm_int.h"
|
#include "btm_int.h"
|
||||||
|
#include "sdpdefs.h"
|
||||||
|
#include "sdp_api.h"
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "gatt_api.h"
|
#include "gatt_api.h"
|
||||||
#include "gatt_int.h"
|
#include "gatt_int.h"
|
||||||
|
#include "sdpdefs.h"
|
||||||
|
|
||||||
#if BLE_INCLUDED == TRUE
|
#if BLE_INCLUDED == TRUE
|
||||||
|
|
||||||
|
@ -31,7 +31,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDP_DYNAMIC_MEMORY
|
#ifndef SDP_DYNAMIC_MEMORY
|
||||||
#define SDP_DYNAMIC_MEMORY FALSE
|
//#define SDP_DYNAMIC_MEMORY FALSE
|
||||||
|
#define SDP_DYNAMIC_MEMORY TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef L2C_DYNAMIC_MEMORY
|
#ifndef L2C_DYNAMIC_MEMORY
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#ifndef GAP_API_H
|
#ifndef GAP_API_H
|
||||||
#define GAP_API_H
|
#define GAP_API_H
|
||||||
|
|
||||||
|
#include "sdpdefs.h"
|
||||||
#include "profiles_api.h"
|
#include "profiles_api.h"
|
||||||
#include "btm_api.h"
|
#include "btm_api.h"
|
||||||
#include "l2c_api.h"
|
#include "l2c_api.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user