From c9a0b9a45c94ffa8ddff12ef849c7ea77fc556e1 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Fri, 25 Nov 2016 21:24:16 +0800 Subject: [PATCH] component/bt : decrese dram 1. decrease some resource --- components/bt/bluedroid/bta/dm/bta_dm_act.c | 2 +- components/bt/bluedroid/bta/include/bta_gattc_int.h | 4 ++-- components/bt/bluedroid/include/bt_target.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/bt/bluedroid/bta/dm/bta_dm_act.c b/components/bt/bluedroid/bta/dm/bta_dm_act.c index 7b6065569..155602fac 100644 --- a/components/bt/bluedroid/bta/dm/bta_dm_act.c +++ b/components/bt/bluedroid/bta/dm/bta_dm_act.c @@ -227,7 +227,7 @@ const tBTM_APPL_INFO bta_security = { }; -#define MAX_DISC_RAW_DATA_BUF (4096) +#define MAX_DISC_RAW_DATA_BUF (1024) UINT8 g_disc_raw_data_buf[MAX_DISC_RAW_DATA_BUF]; extern DEV_CLASS local_device_default_class; diff --git a/components/bt/bluedroid/bta/include/bta_gattc_int.h b/components/bt/bluedroid/bta/include/bta_gattc_int.h index bc200eddc..d50c66226 100644 --- a/components/bt/bluedroid/bta/include/bta_gattc_int.h +++ b/components/bt/bluedroid/bta/include/bta_gattc_int.h @@ -77,12 +77,12 @@ typedef UINT16 tBTA_GATTC_INT_EVT; /* max client application GATTC can support */ #ifndef BTA_GATTC_CL_MAX -#define BTA_GATTC_CL_MAX 8 // 32 +#define BTA_GATTC_CL_MAX 3 // 32 #endif /* max known devices GATTC can support */ #ifndef BTA_GATTC_KNOWN_SR_MAX -#define BTA_GATTC_KNOWN_SR_MAX 5 // 10 +#define BTA_GATTC_KNOWN_SR_MAX 3 // 10 #endif #define BTA_GATTC_CONN_MAX GATT_MAX_PHY_CHANNEL diff --git a/components/bt/bluedroid/include/bt_target.h b/components/bt/bluedroid/include/bt_target.h index e9a1625e0..9d042a2b4 100644 --- a/components/bt/bluedroid/include/bt_target.h +++ b/components/bt/bluedroid/include/bt_target.h @@ -403,7 +403,7 @@ /* Includes SCO if TRUE */ #ifndef BTM_SCO_INCLUDED -#define BTM_SCO_INCLUDED TRUE /* TRUE includes SCO code */ +#define BTM_SCO_INCLUDED FALSE //TRUE /* TRUE includes SCO code */ #endif /* Includes SCO if TRUE */ @@ -480,7 +480,7 @@ /* The number of SCO links. */ #ifndef BTM_MAX_SCO_LINKS -#define BTM_MAX_SCO_LINKS 3 +#define BTM_MAX_SCO_LINKS 1 //3 #endif /* The preferred type of SCO links (2-eSCO, 0-SCO). */