1. add the L1 include path with a prefix, such like osi/list.h, stack/a2d_api.h and etc.
2. modify component, only bluedroid/api/include/api is export to another component and application,
other include path just for bluedroid used
3. put bluedroid/include into common/include/common, so the root directory of bluedroid have no include path.
4. modify doxygen to use esp_bt.h and redirect to
component/bt/bluedroid/api/include/api/
fix compile
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "esp_err.h"
#include "esp_a2dp_api.h"
#include "esp_bt_main.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_av.h"
#if BTC_AV_INCLUDED
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "esp_err.h"
#include "esp_avrc_api.h"
#include "esp_bt_main.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_avrc.h"
#if BTC_AV_INCLUDED
#include "esp_blufi_api.h"
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
-#include "btc_task.h"
+#include "btc/btc_task.h"
#include "btc_blufi_prf.h"
-#include "btc_manage.h"
-#include "btc_main.h"
-#include "future.h"
+#include "btc/btc_manage.h"
+#include "btc/btc_main.h"
+#include "osi/future.h"
#include "btc_gatts.h"
#include "btc_gatt_util.h"
#include <string.h>
#include "esp_bt_device.h"
#include "esp_bt_main.h"
-#include "controller.h"
-#include "btc_task.h"
-#include "btc_dev.h"
+#include "device/controller.h"
+#include "btc/btc_task.h"
+#include "btc/btc_dev.h"
const uint8_t *esp_bt_dev_get_address(void)
{
#include "esp_bt_main.h"
-#include "btc_task.h"
-#include "btc_main.h"
+#include "btc/btc_task.h"
+#include "btc/btc_main.h"
#include "esp_bt.h"
-#include "future.h"
-#include "allocator.h"
+#include "osi/future.h"
+#include "osi/allocator.h"
static bool bd_already_enable = false;
static bool bd_already_init = false;
#include "esp_bt_device.h"
#include "esp_bt_main.h"
#include "esp_gap_ble_api.h"
-#include "bta_api.h"
-#include "bt_trace.h"
-#include "btc_manage.h"
+#include "bta/bta_api.h"
+#include "common/bt_trace.h"
+#include "btc/btc_manage.h"
#include "btc_gap_ble.h"
-#include "btc_ble_storage.h"
+#include "btc/btc_ble_storage.h"
esp_err_t esp_ble_gap_register_callback(esp_gap_ble_cb_t callback)
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "esp_bt_main.h"
#include "esp_gap_bt_api.h"
-#include "bt_trace.h"
-#include "btc_manage.h"
+#include "common/bt_trace.h"
+#include "btc/btc_manage.h"
#include "btc_gap_bt.h"
#if (BTC_GAP_BT_INCLUDED == TRUE)
#include "esp_gattc_api.h"
#include "esp_bt_main.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_gattc.h"
#include "btc_gatt_util.h"
#include "esp_gatt_defs.h"
#include "esp_gatts_api.h"
#include "esp_bt_main.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_gatts.h"
#include "btc_gatt_util.h"
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (GATTS_INCLUDED == TRUE)
#define COPY_TO_GATTS_ARGS(_gatt_args, _arg, _arg_type) memcpy(_gatt_args, _arg, sizeof(_arg_type))
#include <string.h>
#include "esp_bt_main.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_spp.h"
#include "esp_spp_api.h"
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (defined BTC_SPP_INCLUDED && BTC_SPP_INCLUDED == TRUE)
ESP_BT_STATUS_UNACCEPT_CONN_INTERVAL, /* relate to BT_UNACCEPT_CONN_INTERVAL in bt_def.h */
ESP_BT_STATUS_PARAM_OUT_OF_RANGE, /* relate to BT_PARAM_OUT_OF_RANGE in bt_def.h */
ESP_BT_STATUS_TIMEOUT, /* relate to BT_STATUS_TIMEOUT in bt_def.h */
- ESP_BT_STATUS_PEER_LE_DATA_LEN_UNSUPPORTED, /* relate to BTM_PEER_LE_DATA_LEN_UNSUPPORTED in btm_api.h */
- ESP_BT_STATUS_CONTROL_LE_DATA_LEN_UNSUPPORTED,/* relate to BTM_CONTROL_LE_DATA_LEN_UNSUPPORTED in btm_api.h */
- ESP_BT_STATUS_ERR_ILLEGAL_PARAMETER_FMT, /* relate to HCI_ERR_ILLEGAL_PARAMETER_FMT in hcidefs.h */
+ ESP_BT_STATUS_PEER_LE_DATA_LEN_UNSUPPORTED, /* relate to BTM_PEER_LE_DATA_LEN_UNSUPPORTED in stack/btm_api.h */
+ ESP_BT_STATUS_CONTROL_LE_DATA_LEN_UNSUPPORTED,/* relate to BTM_CONTROL_LE_DATA_LEN_UNSUPPORTED in stack/btm_api.h */
+ ESP_BT_STATUS_ERR_ILLEGAL_PARAMETER_FMT, /* relate to HCI_ERR_ILLEGAL_PARAMETER_FMT in stack/hcidefs.h */
ESP_BT_STATUS_MEMORY_FULL, /* relate to BT_STATUS_MEMORY_FULL in bt_def.h */
} esp_bt_status_t;
/// Default GATT interface id
#define ESP_DEFAULT_GATT_IF 0xff
-#define ESP_BLE_CONN_INT_MIN 0x0006 /*!< relate to BTM_BLE_CONN_INT_MIN in btm_ble_api.h */
-#define ESP_BLE_CONN_INT_MAX 0x0C80 /*!< relate to BTM_BLE_CONN_INT_MAX in btm_ble_api.h */
-#define ESP_BLE_CONN_LATENCY_MAX 500 /*!< relate to ESP_BLE_CONN_LATENCY_MAX in btm_ble_api.h */
-#define ESP_BLE_CONN_SUP_TOUT_MIN 0x000A /*!< relate to BTM_BLE_CONN_SUP_TOUT_MIN in btm_ble_api.h */
-#define ESP_BLE_CONN_SUP_TOUT_MAX 0x0C80 /*!< relate to ESP_BLE_CONN_SUP_TOUT_MAX in btm_ble_api.h */
-#define ESP_BLE_CONN_PARAM_UNDEF 0xffff /* use this value when a specific value not to be overwritten */ /* relate to ESP_BLE_CONN_PARAM_UNDEF in btm_ble_api.h */
-#define ESP_BLE_SCAN_PARAM_UNDEF 0xffffffff /* relate to ESP_BLE_SCAN_PARAM_UNDEF in btm_ble_api.h */
+#define ESP_BLE_CONN_INT_MIN 0x0006 /*!< relate to BTM_BLE_CONN_INT_MIN in stack/btm_ble_api.h */
+#define ESP_BLE_CONN_INT_MAX 0x0C80 /*!< relate to BTM_BLE_CONN_INT_MAX in stack/btm_ble_api.h */
+#define ESP_BLE_CONN_LATENCY_MAX 500 /*!< relate to ESP_BLE_CONN_LATENCY_MAX in stack/btm_ble_api.h */
+#define ESP_BLE_CONN_SUP_TOUT_MIN 0x000A /*!< relate to BTM_BLE_CONN_SUP_TOUT_MIN in stack/btm_ble_api.h */
+#define ESP_BLE_CONN_SUP_TOUT_MAX 0x0C80 /*!< relate to ESP_BLE_CONN_SUP_TOUT_MAX in stack/btm_ble_api.h */
+#define ESP_BLE_CONN_PARAM_UNDEF 0xffff /* use this value when a specific value not to be overwritten */ /* relate to ESP_BLE_CONN_PARAM_UNDEF in stack/btm_ble_api.h */
+#define ESP_BLE_SCAN_PARAM_UNDEF 0xffffffff /* relate to ESP_BLE_SCAN_PARAM_UNDEF in stack/btm_ble_api.h */
/// Check the param is valid or not
#define ESP_BLE_IS_VALID_PARAM(x, min, max) (((x) >= (min) && (x) <= (max)) || ((x) == ESP_BLE_CONN_PARAM_UNDEF))
} esp_ble_addr_type_t;
/// Used to exchange the encrytyption key in the init key & response key
-#define ESP_BLE_ENC_KEY_MASK (1 << 0) /* relate to BTM_BLE_ENC_KEY_MASK in btm_api.h */
+#define ESP_BLE_ENC_KEY_MASK (1 << 0) /* relate to BTM_BLE_ENC_KEY_MASK in stack/btm_api.h */
/// Used to exchange the IRK key in the init key & response key
-#define ESP_BLE_ID_KEY_MASK (1 << 1) /* relate to BTM_BLE_ID_KEY_MASK in btm_api.h */
+#define ESP_BLE_ID_KEY_MASK (1 << 1) /* relate to BTM_BLE_ID_KEY_MASK in stack/btm_api.h */
/// Used to exchange the CSRK key in the init key & response key
-#define ESP_BLE_CSR_KEY_MASK (1 << 2) /* relate to BTM_BLE_CSR_KEY_MASK in btm_api.h */
+#define ESP_BLE_CSR_KEY_MASK (1 << 2) /* relate to BTM_BLE_CSR_KEY_MASK in stack/btm_api.h */
/// Used to exchange the link key(this key just used in the BLE & BR/EDR coexist mode) in the init key & response key
-#define ESP_BLE_LINK_KEY_MASK (1 << 3) /* relate to BTM_BLE_LINK_KEY_MASK in btm_api.h */
+#define ESP_BLE_LINK_KEY_MASK (1 << 3) /* relate to BTM_BLE_LINK_KEY_MASK in stack/btm_api.h */
typedef uint8_t esp_ble_key_mask_t; /* the key mask type */
/// Minimum of the application id
* @}
*/
-/* relate to BTM_LE_KEY_xxx in btm_api.h */
-#define ESP_LE_KEY_NONE 0 /* relate to BTM_LE_KEY_NONE in btm_api.h */
-#define ESP_LE_KEY_PENC (1 << 0) /*!< encryption key, encryption information of peer device */ /* relate to BTM_LE_KEY_PENC in btm_api.h */
-#define ESP_LE_KEY_PID (1 << 1) /*!< identity key of the peer device */ /* relate to BTM_LE_KEY_PID in btm_api.h */
-#define ESP_LE_KEY_PCSRK (1 << 2) /*!< peer SRK */ /* relate to BTM_LE_KEY_PCSRK in btm_api.h */
-#define ESP_LE_KEY_PLK (1 << 3) /*!< Link key*/ /* relate to BTM_LE_KEY_PLK in btm_api.h */
-#define ESP_LE_KEY_LLK (ESP_LE_KEY_PLK << 4) /* relate to BTM_LE_KEY_LLK in btm_api.h */
-#define ESP_LE_KEY_LENC (ESP_LE_KEY_PENC << 4) /*!< master role security information:div */ /* relate to BTM_LE_KEY_LENC in btm_api.h */
-#define ESP_LE_KEY_LID (ESP_LE_KEY_PID << 4) /*!< master device ID key */ /* relate to BTM_LE_KEY_LID in btm_api.h */
-#define ESP_LE_KEY_LCSRK (ESP_LE_KEY_PCSRK << 4) /*!< local CSRK has been deliver to peer */ /* relate to BTM_LE_KEY_LCSRK in btm_api.h */
+/* relate to BTM_LE_KEY_xxx in stack/btm_api.h */
+#define ESP_LE_KEY_NONE 0 /* relate to BTM_LE_KEY_NONE in stack/btm_api.h */
+#define ESP_LE_KEY_PENC (1 << 0) /*!< encryption key, encryption information of peer device */ /* relate to BTM_LE_KEY_PENC in stack/btm_api.h */
+#define ESP_LE_KEY_PID (1 << 1) /*!< identity key of the peer device */ /* relate to BTM_LE_KEY_PID in stack/btm_api.h */
+#define ESP_LE_KEY_PCSRK (1 << 2) /*!< peer SRK */ /* relate to BTM_LE_KEY_PCSRK in stack/btm_api.h */
+#define ESP_LE_KEY_PLK (1 << 3) /*!< Link key*/ /* relate to BTM_LE_KEY_PLK in stack/btm_api.h */
+#define ESP_LE_KEY_LLK (ESP_LE_KEY_PLK << 4) /* relate to BTM_LE_KEY_LLK in stack/btm_api.h */
+#define ESP_LE_KEY_LENC (ESP_LE_KEY_PENC << 4) /*!< master role security information:div */ /* relate to BTM_LE_KEY_LENC in stack/btm_api.h */
+#define ESP_LE_KEY_LID (ESP_LE_KEY_PID << 4) /*!< master device ID key */ /* relate to BTM_LE_KEY_LID in stack/btm_api.h */
+#define ESP_LE_KEY_LCSRK (ESP_LE_KEY_PCSRK << 4) /*!< local CSRK has been deliver to peer */ /* relate to BTM_LE_KEY_LCSRK in stack/btm_api.h */
typedef uint8_t esp_ble_key_type_t;
-/* relate to BTM_LE_AUTH_xxx in btm_api.h */
-#define ESP_LE_AUTH_NO_BOND 0x00 /*!< 0*/ /* relate to BTM_LE_AUTH_NO_BOND in btm_api.h */
-#define ESP_LE_AUTH_BOND 0x01 /*!< 1 << 0 */ /* relate to BTM_LE_AUTH_BOND in btm_api.h */
-#define ESP_LE_AUTH_REQ_MITM (1 << 2) /*!< 1 << 2 */ /* relate to BTM_LE_AUTH_REQ_MITM in btm_api.h */
-#define ESP_LE_AUTH_REQ_SC_ONLY (1 << 3) /*!< 1 << 3 */ /* relate to BTM_LE_AUTH_REQ_SC_ONLY in btm_api.h */
-#define ESP_LE_AUTH_REQ_SC_BOND (ESP_LE_AUTH_BOND | ESP_LE_AUTH_REQ_SC_ONLY) /*!< 1001 */ /* relate to BTM_LE_AUTH_REQ_SC_BOND in btm_api.h */
-#define ESP_LE_AUTH_REQ_SC_MITM (ESP_LE_AUTH_REQ_MITM | ESP_LE_AUTH_REQ_SC_ONLY) /*!< 1100 */ /* relate to BTM_LE_AUTH_REQ_SC_MITM in btm_api.h */
-#define ESP_LE_AUTH_REQ_SC_MITM_BOND (ESP_LE_AUTH_REQ_MITM | ESP_LE_AUTH_REQ_SC_ONLY | ESP_LE_AUTH_BOND) /*!< 1101 */ /* relate to BTM_LE_AUTH_REQ_SC_MITM_BOND in btm_api.h */
+/* relate to BTM_LE_AUTH_xxx in stack/btm_api.h */
+#define ESP_LE_AUTH_NO_BOND 0x00 /*!< 0*/ /* relate to BTM_LE_AUTH_NO_BOND in stack/btm_api.h */
+#define ESP_LE_AUTH_BOND 0x01 /*!< 1 << 0 */ /* relate to BTM_LE_AUTH_BOND in stack/btm_api.h */
+#define ESP_LE_AUTH_REQ_MITM (1 << 2) /*!< 1 << 2 */ /* relate to BTM_LE_AUTH_REQ_MITM in stack/btm_api.h */
+#define ESP_LE_AUTH_REQ_SC_ONLY (1 << 3) /*!< 1 << 3 */ /* relate to BTM_LE_AUTH_REQ_SC_ONLY in stack/btm_api.h */
+#define ESP_LE_AUTH_REQ_SC_BOND (ESP_LE_AUTH_BOND | ESP_LE_AUTH_REQ_SC_ONLY) /*!< 1001 */ /* relate to BTM_LE_AUTH_REQ_SC_BOND in stack/btm_api.h */
+#define ESP_LE_AUTH_REQ_SC_MITM (ESP_LE_AUTH_REQ_MITM | ESP_LE_AUTH_REQ_SC_ONLY) /*!< 1100 */ /* relate to BTM_LE_AUTH_REQ_SC_MITM in stack/btm_api.h */
+#define ESP_LE_AUTH_REQ_SC_MITM_BOND (ESP_LE_AUTH_REQ_MITM | ESP_LE_AUTH_REQ_SC_ONLY | ESP_LE_AUTH_BOND) /*!< 1101 */ /* relate to BTM_LE_AUTH_REQ_SC_MITM_BOND in stack/btm_api.h */
typedef uint8_t esp_ble_auth_req_t; /*!< combination of the above bit pattern */
-/* relate to BTM_IO_CAP_xxx in btm_api.h */
-#define ESP_IO_CAP_OUT 0 /*!< DisplayOnly */ /* relate to BTM_IO_CAP_OUT in btm_api.h */
-#define ESP_IO_CAP_IO 1 /*!< DisplayYesNo */ /* relate to BTM_IO_CAP_IO in btm_api.h */
-#define ESP_IO_CAP_IN 2 /*!< KeyboardOnly */ /* relate to BTM_IO_CAP_IN in btm_api.h */
-#define ESP_IO_CAP_NONE 3 /*!< NoInputNoOutput */ /* relate to BTM_IO_CAP_NONE in btm_api.h */
-#define ESP_IO_CAP_KBDISP 4 /*!< Keyboard display */ /* relate to BTM_IO_CAP_KBDISP in btm_api.h */
+/* relate to BTM_IO_CAP_xxx in stack/btm_api.h */
+#define ESP_IO_CAP_OUT 0 /*!< DisplayOnly */ /* relate to BTM_IO_CAP_OUT in stack/btm_api.h */
+#define ESP_IO_CAP_IO 1 /*!< DisplayYesNo */ /* relate to BTM_IO_CAP_IO in stack/btm_api.h */
+#define ESP_IO_CAP_IN 2 /*!< KeyboardOnly */ /* relate to BTM_IO_CAP_IN in stack/btm_api.h */
+#define ESP_IO_CAP_NONE 3 /*!< NoInputNoOutput */ /* relate to BTM_IO_CAP_NONE in stack/btm_api.h */
+#define ESP_IO_CAP_KBDISP 4 /*!< Keyboard display */ /* relate to BTM_IO_CAP_KBDISP in stack/btm_api.h */
typedef uint8_t esp_ble_io_cap_t; /*!< combination of the io capability */
/// GAP BLE callback event type
/// Scan response data maximum length
#define ESP_BLE_SCAN_RSP_DATA_LEN_MAX 31
-/* relate to BTM_BLE_AD_TYPE_xxx in btm_ble_api.h */
+/* relate to BTM_BLE_AD_TYPE_xxx in stack/btm_ble_api.h */
/// The type of advertising data(not adv_type)
typedef enum {
- ESP_BLE_AD_TYPE_FLAG = 0x01, /* relate to BTM_BLE_AD_TYPE_FLAG in btm_ble_api.h */
- ESP_BLE_AD_TYPE_16SRV_PART = 0x02, /* relate to BTM_BLE_AD_TYPE_16SRV_PART in btm_ble_api.h */
- ESP_BLE_AD_TYPE_16SRV_CMPL = 0x03, /* relate to BTM_BLE_AD_TYPE_16SRV_CMPL in btm_ble_api.h */
- ESP_BLE_AD_TYPE_32SRV_PART = 0x04, /* relate to BTM_BLE_AD_TYPE_32SRV_PART in btm_ble_api.h */
- ESP_BLE_AD_TYPE_32SRV_CMPL = 0x05, /* relate to BTM_BLE_AD_TYPE_32SRV_CMPL in btm_ble_api.h */
- ESP_BLE_AD_TYPE_128SRV_PART = 0x06, /* relate to BTM_BLE_AD_TYPE_128SRV_PART in btm_ble_api.h */
- ESP_BLE_AD_TYPE_128SRV_CMPL = 0x07, /* relate to BTM_BLE_AD_TYPE_128SRV_CMPL in btm_ble_api.h */
- ESP_BLE_AD_TYPE_NAME_SHORT = 0x08, /* relate to BTM_BLE_AD_TYPE_NAME_SHORT in btm_ble_api.h */
- ESP_BLE_AD_TYPE_NAME_CMPL = 0x09, /* relate to BTM_BLE_AD_TYPE_NAME_CMPL in btm_ble_api.h */
- ESP_BLE_AD_TYPE_TX_PWR = 0x0A, /* relate to BTM_BLE_AD_TYPE_TX_PWR in btm_ble_api.h */
- ESP_BLE_AD_TYPE_DEV_CLASS = 0x0D, /* relate to BTM_BLE_AD_TYPE_DEV_CLASS in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SM_TK = 0x10, /* relate to BTM_BLE_AD_TYPE_SM_TK in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SM_OOB_FLAG = 0x11, /* relate to BTM_BLE_AD_TYPE_SM_OOB_FLAG in btm_ble_api.h */
- ESP_BLE_AD_TYPE_INT_RANGE = 0x12, /* relate to BTM_BLE_AD_TYPE_INT_RANGE in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SOL_SRV_UUID = 0x14, /* relate to BTM_BLE_AD_TYPE_SOL_SRV_UUID in btm_ble_api.h */
- ESP_BLE_AD_TYPE_128SOL_SRV_UUID = 0x15, /* relate to BTM_BLE_AD_TYPE_128SOL_SRV_UUID in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SERVICE_DATA = 0x16, /* relate to BTM_BLE_AD_TYPE_SERVICE_DATA in btm_ble_api.h */
- ESP_BLE_AD_TYPE_PUBLIC_TARGET = 0x17, /* relate to BTM_BLE_AD_TYPE_PUBLIC_TARGET in btm_ble_api.h */
- ESP_BLE_AD_TYPE_RANDOM_TARGET = 0x18, /* relate to BTM_BLE_AD_TYPE_RANDOM_TARGET in btm_ble_api.h */
- ESP_BLE_AD_TYPE_APPEARANCE = 0x19, /* relate to BTM_BLE_AD_TYPE_APPEARANCE in btm_ble_api.h */
- ESP_BLE_AD_TYPE_ADV_INT = 0x1A, /* relate to BTM_BLE_AD_TYPE_ADV_INT in btm_ble_api.h */
- ESP_BLE_AD_TYPE_LE_DEV_ADDR = 0x1b, /* relate to BTM_BLE_AD_TYPE_LE_DEV_ADDR in btm_ble_api.h */
- ESP_BLE_AD_TYPE_LE_ROLE = 0x1c, /* relate to BTM_BLE_AD_TYPE_LE_ROLE in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SPAIR_C256 = 0x1d, /* relate to BTM_BLE_AD_TYPE_SPAIR_C256 in btm_ble_api.h */
- ESP_BLE_AD_TYPE_SPAIR_R256 = 0x1e, /* relate to BTM_BLE_AD_TYPE_SPAIR_R256 in btm_ble_api.h */
- ESP_BLE_AD_TYPE_32SOL_SRV_UUID = 0x1f, /* relate to BTM_BLE_AD_TYPE_32SOL_SRV_UUID in btm_ble_api.h */
- ESP_BLE_AD_TYPE_32SERVICE_DATA = 0x20, /* relate to BTM_BLE_AD_TYPE_32SERVICE_DATA in btm_ble_api.h */
- ESP_BLE_AD_TYPE_128SERVICE_DATA = 0x21, /* relate to BTM_BLE_AD_TYPE_128SERVICE_DATA in btm_ble_api.h */
- ESP_BLE_AD_TYPE_LE_SECURE_CONFIRM = 0x22, /* relate to BTM_BLE_AD_TYPE_LE_SECURE_CONFIRM in btm_ble_api.h */
- ESP_BLE_AD_TYPE_LE_SECURE_RANDOM = 0x23, /* relate to BTM_BLE_AD_TYPE_LE_SECURE_RANDOM in btm_ble_api.h */
- ESP_BLE_AD_TYPE_URI = 0x24, /* relate to BTM_BLE_AD_TYPE_URI in btm_ble_api.h */
- ESP_BLE_AD_TYPE_INDOOR_POSITION = 0x25, /* relate to BTM_BLE_AD_TYPE_INDOOR_POSITION in btm_ble_api.h */
- ESP_BLE_AD_TYPE_TRANS_DISC_DATA = 0x26, /* relate to BTM_BLE_AD_TYPE_TRANS_DISC_DATA in btm_ble_api.h */
- ESP_BLE_AD_TYPE_LE_SUPPORT_FEATURE = 0x27, /* relate to BTM_BLE_AD_TYPE_LE_SUPPORT_FEATURE in btm_ble_api.h */
- ESP_BLE_AD_TYPE_CHAN_MAP_UPDATE = 0x28, /* relate to BTM_BLE_AD_TYPE_CHAN_MAP_UPDATE in btm_ble_api.h */
- ESP_BLE_AD_MANUFACTURER_SPECIFIC_TYPE = 0xFF, /* relate to BTM_BLE_AD_MANUFACTURER_SPECIFIC_TYPE in btm_ble_api.h */
+ ESP_BLE_AD_TYPE_FLAG = 0x01, /* relate to BTM_BLE_AD_TYPE_FLAG in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_16SRV_PART = 0x02, /* relate to BTM_BLE_AD_TYPE_16SRV_PART in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_16SRV_CMPL = 0x03, /* relate to BTM_BLE_AD_TYPE_16SRV_CMPL in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_32SRV_PART = 0x04, /* relate to BTM_BLE_AD_TYPE_32SRV_PART in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_32SRV_CMPL = 0x05, /* relate to BTM_BLE_AD_TYPE_32SRV_CMPL in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_128SRV_PART = 0x06, /* relate to BTM_BLE_AD_TYPE_128SRV_PART in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_128SRV_CMPL = 0x07, /* relate to BTM_BLE_AD_TYPE_128SRV_CMPL in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_NAME_SHORT = 0x08, /* relate to BTM_BLE_AD_TYPE_NAME_SHORT in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_NAME_CMPL = 0x09, /* relate to BTM_BLE_AD_TYPE_NAME_CMPL in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_TX_PWR = 0x0A, /* relate to BTM_BLE_AD_TYPE_TX_PWR in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_DEV_CLASS = 0x0D, /* relate to BTM_BLE_AD_TYPE_DEV_CLASS in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SM_TK = 0x10, /* relate to BTM_BLE_AD_TYPE_SM_TK in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SM_OOB_FLAG = 0x11, /* relate to BTM_BLE_AD_TYPE_SM_OOB_FLAG in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_INT_RANGE = 0x12, /* relate to BTM_BLE_AD_TYPE_INT_RANGE in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SOL_SRV_UUID = 0x14, /* relate to BTM_BLE_AD_TYPE_SOL_SRV_UUID in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_128SOL_SRV_UUID = 0x15, /* relate to BTM_BLE_AD_TYPE_128SOL_SRV_UUID in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SERVICE_DATA = 0x16, /* relate to BTM_BLE_AD_TYPE_SERVICE_DATA in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_PUBLIC_TARGET = 0x17, /* relate to BTM_BLE_AD_TYPE_PUBLIC_TARGET in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_RANDOM_TARGET = 0x18, /* relate to BTM_BLE_AD_TYPE_RANDOM_TARGET in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_APPEARANCE = 0x19, /* relate to BTM_BLE_AD_TYPE_APPEARANCE in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_ADV_INT = 0x1A, /* relate to BTM_BLE_AD_TYPE_ADV_INT in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_LE_DEV_ADDR = 0x1b, /* relate to BTM_BLE_AD_TYPE_LE_DEV_ADDR in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_LE_ROLE = 0x1c, /* relate to BTM_BLE_AD_TYPE_LE_ROLE in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SPAIR_C256 = 0x1d, /* relate to BTM_BLE_AD_TYPE_SPAIR_C256 in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_SPAIR_R256 = 0x1e, /* relate to BTM_BLE_AD_TYPE_SPAIR_R256 in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_32SOL_SRV_UUID = 0x1f, /* relate to BTM_BLE_AD_TYPE_32SOL_SRV_UUID in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_32SERVICE_DATA = 0x20, /* relate to BTM_BLE_AD_TYPE_32SERVICE_DATA in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_128SERVICE_DATA = 0x21, /* relate to BTM_BLE_AD_TYPE_128SERVICE_DATA in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_LE_SECURE_CONFIRM = 0x22, /* relate to BTM_BLE_AD_TYPE_LE_SECURE_CONFIRM in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_LE_SECURE_RANDOM = 0x23, /* relate to BTM_BLE_AD_TYPE_LE_SECURE_RANDOM in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_URI = 0x24, /* relate to BTM_BLE_AD_TYPE_URI in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_INDOOR_POSITION = 0x25, /* relate to BTM_BLE_AD_TYPE_INDOOR_POSITION in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_TRANS_DISC_DATA = 0x26, /* relate to BTM_BLE_AD_TYPE_TRANS_DISC_DATA in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_LE_SUPPORT_FEATURE = 0x27, /* relate to BTM_BLE_AD_TYPE_LE_SUPPORT_FEATURE in stack/btm_ble_api.h */
+ ESP_BLE_AD_TYPE_CHAN_MAP_UPDATE = 0x28, /* relate to BTM_BLE_AD_TYPE_CHAN_MAP_UPDATE in stack/btm_ble_api.h */
+ ESP_BLE_AD_MANUFACTURER_SPECIFIC_TYPE = 0xFF, /* relate to BTM_BLE_AD_MANUFACTURER_SPECIFIC_TYPE in stack/btm_ble_api.h */
} esp_ble_adv_data_type;
/// Advertising mode
} esp_ble_adv_filter_t;
-/* relate to BTA_DM_BLE_SEC_xxx in bta_api.h */
+/* relate to BTA_DM_BLE_SEC_xxx in bta/bta_api.h */
typedef enum {
- ESP_BLE_SEC_ENCRYPT = 1, /* relate to BTA_DM_BLE_SEC_ENCRYPT in bta_api.h. If the device has already
+ ESP_BLE_SEC_ENCRYPT = 1, /* relate to BTA_DM_BLE_SEC_ENCRYPT in bta/bta_api.h. If the device has already
bonded, the stack will used LTK to encrypt with the remote device directly.
Else if the device hasn't bonded, the stack will used the default authentication request
used the esp_ble_gap_set_security_param function set by the user. */
- ESP_BLE_SEC_ENCRYPT_NO_MITM, /* relate to BTA_DM_BLE_SEC_ENCRYPT_NO_MITM in bta_api.h. If the device has already
+ ESP_BLE_SEC_ENCRYPT_NO_MITM, /* relate to BTA_DM_BLE_SEC_ENCRYPT_NO_MITM in bta/bta_api.h. If the device has already
bonded, the stack will check the LTK Whether the authentication request has been met, if met, used the LTK
to encrypt with the remote device directly, else Re-pair with the remote device.
Else if the device hasn't bonded, the stack will used NO MITM authentication request in the current link instead of
used the authreq in the esp_ble_gap_set_security_param function set by the user. */
- ESP_BLE_SEC_ENCRYPT_MITM, /* relate to BTA_DM_BLE_SEC_ENCRYPT_MITM in bta_api.h. If the device has already
+ ESP_BLE_SEC_ENCRYPT_MITM, /* relate to BTA_DM_BLE_SEC_ENCRYPT_MITM in bta/bta_api.h. If the device has already
bonded, the stack will check the LTK Whether the authentication request has been met, if met, used the LTK
to encrypt with the remote device directly, else Re-pair with the remote device.
Else if the device hasn't bonded, the stack will used MITM authentication request in the current link instead of
#endif
// Maximum Transmission Unit used in GATT
-#define ESP_GATT_DEF_BLE_MTU_SIZE 23 /* relate to GATT_DEF_BLE_MTU_SIZE in gatt_api.h */
+#define ESP_GATT_DEF_BLE_MTU_SIZE 23 /* relate to GATT_DEF_BLE_MTU_SIZE in stack/gatt_api.h */
// Maximum Transmission Unit allowed in GATT
-#define ESP_GATT_MAX_MTU_SIZE 517 /* relate to GATT_MAX_MTU_SIZE in gatt_api.h */
+#define ESP_GATT_MAX_MTU_SIZE 517 /* relate to GATT_MAX_MTU_SIZE in stack/gatt_api.h */
/**
* @brief This function is called to set local MTU,
* @}
*/
-/* relate to BTA_GATT_PREP_WRITE_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_PREP_WRITE_xxx in bta/bta_gatt_api.h */
/// Attribute write data type from the client
typedef enum {
- ESP_GATT_PREP_WRITE_CANCEL = 0x00, /*!< Prepare write cancel */ /* relate to BTA_GATT_PREP_WRITE_CANCEL in bta_gatt_api.h */
- ESP_GATT_PREP_WRITE_EXEC = 0x01, /*!< Prepare write execute */ /* relate to BTA_GATT_PREP_WRITE_EXEC in bta_gatt_api.h */
+ ESP_GATT_PREP_WRITE_CANCEL = 0x00, /*!< Prepare write cancel */ /* relate to BTA_GATT_PREP_WRITE_CANCEL in bta/bta_gatt_api.h */
+ ESP_GATT_PREP_WRITE_EXEC = 0x01, /*!< Prepare write execute */ /* relate to BTA_GATT_PREP_WRITE_EXEC in bta/bta_gatt_api.h */
} esp_gatt_prep_write_type;
-/* relate to BTA_GATT_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_xxx in bta/bta_gatt_api.h */
/**
* @brief GATT success code and error codes
*/
typedef enum {
- ESP_GATT_OK = 0x0, /* relate to BTA_GATT_OK in bta_gatt_api.h */
- ESP_GATT_INVALID_HANDLE = 0x01, /* 0x0001 */ /* relate to BTA_GATT_INVALID_HANDLE in bta_gatt_api.h */
- ESP_GATT_READ_NOT_PERMIT = 0x02, /* 0x0002 */ /* relate to BTA_GATT_READ_NOT_PERMIT in bta_gatt_api.h */
- ESP_GATT_WRITE_NOT_PERMIT = 0x03, /* 0x0003 */ /* relate to BTA_GATT_WRITE_NOT_PERMIT in bta_gatt_api.h */
- ESP_GATT_INVALID_PDU = 0x04, /* 0x0004 */ /* relate to BTA_GATT_INVALID_PDU in bta_gatt_api.h */
- ESP_GATT_INSUF_AUTHENTICATION = 0x05, /* 0x0005 */ /* relate to BTA_GATT_INSUF_AUTHENTICATION in bta_gatt_api.h */
- ESP_GATT_REQ_NOT_SUPPORTED = 0x06, /* 0x0006 */ /* relate to BTA_GATT_REQ_NOT_SUPPORTED in bta_gatt_api.h */
- ESP_GATT_INVALID_OFFSET = 0x07, /* 0x0007 */ /* relate to BTA_GATT_INVALID_OFFSET in bta_gatt_api.h */
- ESP_GATT_INSUF_AUTHORIZATION = 0x08, /* 0x0008 */ /* relate to BTA_GATT_INSUF_AUTHORIZATION in bta_gatt_api.h */
- ESP_GATT_PREPARE_Q_FULL = 0x09, /* 0x0009 */ /* relate to BTA_GATT_PREPARE_Q_FULL in bta_gatt_api.h */
- ESP_GATT_NOT_FOUND = 0x0a, /* 0x000a */ /* relate to BTA_GATT_NOT_FOUND in bta_gatt_api.h */
- ESP_GATT_NOT_LONG = 0x0b, /* 0x000b */ /* relate to BTA_GATT_NOT_LONG in bta_gatt_api.h */
- ESP_GATT_INSUF_KEY_SIZE = 0x0c, /* 0x000c */ /* relate to BTA_GATT_INSUF_KEY_SIZE in bta_gatt_api.h */
- ESP_GATT_INVALID_ATTR_LEN = 0x0d, /* 0x000d */ /* relate to BTA_GATT_INVALID_ATTR_LEN in bta_gatt_api.h */
- ESP_GATT_ERR_UNLIKELY = 0x0e, /* 0x000e */ /* relate to BTA_GATT_ERR_UNLIKELY in bta_gatt_api.h */
- ESP_GATT_INSUF_ENCRYPTION = 0x0f, /* 0x000f */ /* relate to BTA_GATT_INSUF_ENCRYPTION in bta_gatt_api.h */
- ESP_GATT_UNSUPPORT_GRP_TYPE = 0x10, /* 0x0010 */ /* relate to BTA_GATT_UNSUPPORT_GRP_TYPE in bta_gatt_api.h */
- ESP_GATT_INSUF_RESOURCE = 0x11, /* 0x0011 */ /* relate to BTA_GATT_INSUF_RESOURCE in bta_gatt_api.h */
-
- ESP_GATT_NO_RESOURCES = 0x80, /* 0x80 */ /* relate to BTA_GATT_NO_RESOURCES in bta_gatt_api.h */
- ESP_GATT_INTERNAL_ERROR = 0x81, /* 0x81 */ /* relate to BTA_GATT_INTERNAL_ERROR in bta_gatt_api.h */
- ESP_GATT_WRONG_STATE = 0x82, /* 0x82 */ /* relate to BTA_GATT_WRONG_STATE in bta_gatt_api.h */
- ESP_GATT_DB_FULL = 0x83, /* 0x83 */ /* relate to BTA_GATT_DB_FULL in bta_gatt_api.h */
- ESP_GATT_BUSY = 0x84, /* 0x84 */ /* relate to BTA_GATT_BUSY in bta_gatt_api.h */
- ESP_GATT_ERROR = 0x85, /* 0x85 */ /* relate to BTA_GATT_ERROR in bta_gatt_api.h */
- ESP_GATT_CMD_STARTED = 0x86, /* 0x86 */ /* relate to BTA_GATT_CMD_STARTED in bta_gatt_api.h */
- ESP_GATT_ILLEGAL_PARAMETER = 0x87, /* 0x87 */ /* relate to BTA_GATT_ILLEGAL_PARAMETER in bta_gatt_api.h */
- ESP_GATT_PENDING = 0x88, /* 0x88 */ /* relate to BTA_GATT_PENDING in bta_gatt_api.h */
- ESP_GATT_AUTH_FAIL = 0x89, /* 0x89 */ /* relate to BTA_GATT_AUTH_FAIL in bta_gatt_api.h */
- ESP_GATT_MORE = 0x8a, /* 0x8a */ /* relate to BTA_GATT_MORE in bta_gatt_api.h */
- ESP_GATT_INVALID_CFG = 0x8b, /* 0x8b */ /* relate to BTA_GATT_INVALID_CFG in bta_gatt_api.h */
- ESP_GATT_SERVICE_STARTED = 0x8c, /* 0x8c */ /* relate to BTA_GATT_SERVICE_STARTED in bta_gatt_api.h */
- ESP_GATT_ENCRYPED_MITM = ESP_GATT_OK, /* relate to BTA_GATT_ENCRYPED_MITM in bta_gatt_api.h */
- ESP_GATT_ENCRYPED_NO_MITM = 0x8d, /* 0x8d */ /* relate to BTA_GATT_ENCRYPED_NO_MITM in bta_gatt_api.h */
- ESP_GATT_NOT_ENCRYPTED = 0x8e, /* 0x8e */ /* relate to BTA_GATT_NOT_ENCRYPTED in bta_gatt_api.h */
- ESP_GATT_CONGESTED = 0x8f, /* 0x8f */ /* relate to BTA_GATT_CONGESTED in bta_gatt_api.h */
- ESP_GATT_DUP_REG = 0x90, /* 0x90 */ /* relate to BTA_GATT_DUP_REG in bta_gatt_api.h */
- ESP_GATT_ALREADY_OPEN = 0x91, /* 0x91 */ /* relate to BTA_GATT_ALREADY_OPEN in bta_gatt_api.h */
- ESP_GATT_CANCEL = 0x92, /* 0x92 */ /* relate to BTA_GATT_CANCEL in bta_gatt_api.h */
+ ESP_GATT_OK = 0x0, /* relate to BTA_GATT_OK in bta/bta_gatt_api.h */
+ ESP_GATT_INVALID_HANDLE = 0x01, /* 0x0001 */ /* relate to BTA_GATT_INVALID_HANDLE in bta/bta_gatt_api.h */
+ ESP_GATT_READ_NOT_PERMIT = 0x02, /* 0x0002 */ /* relate to BTA_GATT_READ_NOT_PERMIT in bta/bta_gatt_api.h */
+ ESP_GATT_WRITE_NOT_PERMIT = 0x03, /* 0x0003 */ /* relate to BTA_GATT_WRITE_NOT_PERMIT in bta/bta_gatt_api.h */
+ ESP_GATT_INVALID_PDU = 0x04, /* 0x0004 */ /* relate to BTA_GATT_INVALID_PDU in bta/bta_gatt_api.h */
+ ESP_GATT_INSUF_AUTHENTICATION = 0x05, /* 0x0005 */ /* relate to BTA_GATT_INSUF_AUTHENTICATION in bta/bta_gatt_api.h */
+ ESP_GATT_REQ_NOT_SUPPORTED = 0x06, /* 0x0006 */ /* relate to BTA_GATT_REQ_NOT_SUPPORTED in bta/bta_gatt_api.h */
+ ESP_GATT_INVALID_OFFSET = 0x07, /* 0x0007 */ /* relate to BTA_GATT_INVALID_OFFSET in bta/bta_gatt_api.h */
+ ESP_GATT_INSUF_AUTHORIZATION = 0x08, /* 0x0008 */ /* relate to BTA_GATT_INSUF_AUTHORIZATION in bta/bta_gatt_api.h */
+ ESP_GATT_PREPARE_Q_FULL = 0x09, /* 0x0009 */ /* relate to BTA_GATT_PREPARE_Q_FULL in bta/bta_gatt_api.h */
+ ESP_GATT_NOT_FOUND = 0x0a, /* 0x000a */ /* relate to BTA_GATT_NOT_FOUND in bta/bta_gatt_api.h */
+ ESP_GATT_NOT_LONG = 0x0b, /* 0x000b */ /* relate to BTA_GATT_NOT_LONG in bta/bta_gatt_api.h */
+ ESP_GATT_INSUF_KEY_SIZE = 0x0c, /* 0x000c */ /* relate to BTA_GATT_INSUF_KEY_SIZE in bta/bta_gatt_api.h */
+ ESP_GATT_INVALID_ATTR_LEN = 0x0d, /* 0x000d */ /* relate to BTA_GATT_INVALID_ATTR_LEN in bta/bta_gatt_api.h */
+ ESP_GATT_ERR_UNLIKELY = 0x0e, /* 0x000e */ /* relate to BTA_GATT_ERR_UNLIKELY in bta/bta_gatt_api.h */
+ ESP_GATT_INSUF_ENCRYPTION = 0x0f, /* 0x000f */ /* relate to BTA_GATT_INSUF_ENCRYPTION in bta/bta_gatt_api.h */
+ ESP_GATT_UNSUPPORT_GRP_TYPE = 0x10, /* 0x0010 */ /* relate to BTA_GATT_UNSUPPORT_GRP_TYPE in bta/bta_gatt_api.h */
+ ESP_GATT_INSUF_RESOURCE = 0x11, /* 0x0011 */ /* relate to BTA_GATT_INSUF_RESOURCE in bta/bta_gatt_api.h */
+
+ ESP_GATT_NO_RESOURCES = 0x80, /* 0x80 */ /* relate to BTA_GATT_NO_RESOURCES in bta/bta_gatt_api.h */
+ ESP_GATT_INTERNAL_ERROR = 0x81, /* 0x81 */ /* relate to BTA_GATT_INTERNAL_ERROR in bta/bta_gatt_api.h */
+ ESP_GATT_WRONG_STATE = 0x82, /* 0x82 */ /* relate to BTA_GATT_WRONG_STATE in bta/bta_gatt_api.h */
+ ESP_GATT_DB_FULL = 0x83, /* 0x83 */ /* relate to BTA_GATT_DB_FULL in bta/bta_gatt_api.h */
+ ESP_GATT_BUSY = 0x84, /* 0x84 */ /* relate to BTA_GATT_BUSY in bta/bta_gatt_api.h */
+ ESP_GATT_ERROR = 0x85, /* 0x85 */ /* relate to BTA_GATT_ERROR in bta/bta_gatt_api.h */
+ ESP_GATT_CMD_STARTED = 0x86, /* 0x86 */ /* relate to BTA_GATT_CMD_STARTED in bta/bta_gatt_api.h */
+ ESP_GATT_ILLEGAL_PARAMETER = 0x87, /* 0x87 */ /* relate to BTA_GATT_ILLEGAL_PARAMETER in bta/bta_gatt_api.h */
+ ESP_GATT_PENDING = 0x88, /* 0x88 */ /* relate to BTA_GATT_PENDING in bta/bta_gatt_api.h */
+ ESP_GATT_AUTH_FAIL = 0x89, /* 0x89 */ /* relate to BTA_GATT_AUTH_FAIL in bta/bta_gatt_api.h */
+ ESP_GATT_MORE = 0x8a, /* 0x8a */ /* relate to BTA_GATT_MORE in bta/bta_gatt_api.h */
+ ESP_GATT_INVALID_CFG = 0x8b, /* 0x8b */ /* relate to BTA_GATT_INVALID_CFG in bta/bta_gatt_api.h */
+ ESP_GATT_SERVICE_STARTED = 0x8c, /* 0x8c */ /* relate to BTA_GATT_SERVICE_STARTED in bta/bta_gatt_api.h */
+ ESP_GATT_ENCRYPED_MITM = ESP_GATT_OK, /* relate to BTA_GATT_ENCRYPED_MITM in bta/bta_gatt_api.h */
+ ESP_GATT_ENCRYPED_NO_MITM = 0x8d, /* 0x8d */ /* relate to BTA_GATT_ENCRYPED_NO_MITM in bta/bta_gatt_api.h */
+ ESP_GATT_NOT_ENCRYPTED = 0x8e, /* 0x8e */ /* relate to BTA_GATT_NOT_ENCRYPTED in bta/bta_gatt_api.h */
+ ESP_GATT_CONGESTED = 0x8f, /* 0x8f */ /* relate to BTA_GATT_CONGESTED in bta/bta_gatt_api.h */
+ ESP_GATT_DUP_REG = 0x90, /* 0x90 */ /* relate to BTA_GATT_DUP_REG in bta/bta_gatt_api.h */
+ ESP_GATT_ALREADY_OPEN = 0x91, /* 0x91 */ /* relate to BTA_GATT_ALREADY_OPEN in bta/bta_gatt_api.h */
+ ESP_GATT_CANCEL = 0x92, /* 0x92 */ /* relate to BTA_GATT_CANCEL in bta/bta_gatt_api.h */
/* 0xE0 ~ 0xFC reserved for future use */
- ESP_GATT_STACK_RSP = 0xe0, /* 0xe0 */ /* relate to BTA_GATT_STACK_RSP in bta_gatt_api.h */
- ESP_GATT_APP_RSP = 0xe1, /* 0xe1 */ /* relate to BTA_GATT_APP_RSP in bta_gatt_api.h */
+ ESP_GATT_STACK_RSP = 0xe0, /* 0xe0 */ /* relate to BTA_GATT_STACK_RSP in bta/bta_gatt_api.h */
+ ESP_GATT_APP_RSP = 0xe1, /* 0xe1 */ /* relate to BTA_GATT_APP_RSP in bta/bta_gatt_api.h */
//Error caused by customer application or stack bug
- ESP_GATT_UNKNOWN_ERROR = 0xef, /* 0xef */ /* relate to BTA_GATT_UNKNOWN_ERROR in bta_gatt_api.h */
- ESP_GATT_CCC_CFG_ERR = 0xfd, /* 0xFD Client Characteristic Configuration Descriptor Improperly Configured */ /* relate to BTA_GATT_CCC_CFG_ERR in bta_gatt_api.h */
- ESP_GATT_PRC_IN_PROGRESS = 0xfe, /* 0xFE Procedure Already in progress */ /* relate to BTA_GATT_PRC_IN_PROGRESS in bta_gatt_api.h */
- ESP_GATT_OUT_OF_RANGE = 0xff, /* 0xFFAttribute value out of range */ /* relate to BTA_GATT_OUT_OF_RANGE in bta_gatt_api.h */
+ ESP_GATT_UNKNOWN_ERROR = 0xef, /* 0xef */ /* relate to BTA_GATT_UNKNOWN_ERROR in bta/bta_gatt_api.h */
+ ESP_GATT_CCC_CFG_ERR = 0xfd, /* 0xFD Client Characteristic Configuration Descriptor Improperly Configured */ /* relate to BTA_GATT_CCC_CFG_ERR in bta/bta_gatt_api.h */
+ ESP_GATT_PRC_IN_PROGRESS = 0xfe, /* 0xFE Procedure Already in progress */ /* relate to BTA_GATT_PRC_IN_PROGRESS in bta/bta_gatt_api.h */
+ ESP_GATT_OUT_OF_RANGE = 0xff, /* 0xFFAttribute value out of range */ /* relate to BTA_GATT_OUT_OF_RANGE in bta/bta_gatt_api.h */
} esp_gatt_status_t;
-/* relate to BTA_GATT_CONN_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_CONN_xxx in bta/bta_gatt_api.h */
/**
* @brief Gatt Connection reason enum
*/
typedef enum {
- ESP_GATT_CONN_UNKNOWN = 0, /*!< Gatt connection unknown */ /* relate to BTA_GATT_CONN_UNKNOWN in bta_gatt_api.h */
- ESP_GATT_CONN_L2C_FAILURE = 1, /*!< General L2cap failure */ /* relate to BTA_GATT_CONN_L2C_FAILURE in bta_gatt_api.h */
- ESP_GATT_CONN_TIMEOUT = 0x08, /*!< Connection timeout */ /* relate to BTA_GATT_CONN_TIMEOUT in bta_gatt_api.h */
- ESP_GATT_CONN_TERMINATE_PEER_USER = 0x13, /*!< Connection terminate by peer user */ /* relate to BTA_GATT_CONN_TERMINATE_PEER_USER in bta_gatt_api.h */
- ESP_GATT_CONN_TERMINATE_LOCAL_HOST = 0x16, /*!< Connectionterminated by local host */ /* relate to BTA_GATT_CONN_TERMINATE_LOCAL_HOST in bta_gatt_api.h */
- ESP_GATT_CONN_FAIL_ESTABLISH = 0x3e, /*!< Connection fail to establish */ /* relate to BTA_GATT_CONN_FAIL_ESTABLISH in bta_gatt_api.h */
- ESP_GATT_CONN_LMP_TIMEOUT = 0x22, /*!< Connection fail for LMP response tout */ /* relate to BTA_GATT_CONN_LMP_TIMEOUT in bta_gatt_api.h */
- ESP_GATT_CONN_CONN_CANCEL = 0x0100, /*!< L2CAP connection cancelled */ /* relate to BTA_GATT_CONN_CONN_CANCEL in bta_gatt_api.h */
- ESP_GATT_CONN_NONE = 0x0101 /*!< No connection to cancel */ /* relate to BTA_GATT_CONN_NONE in bta_gatt_api.h */
+ ESP_GATT_CONN_UNKNOWN = 0, /*!< Gatt connection unknown */ /* relate to BTA_GATT_CONN_UNKNOWN in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_L2C_FAILURE = 1, /*!< General L2cap failure */ /* relate to BTA_GATT_CONN_L2C_FAILURE in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_TIMEOUT = 0x08, /*!< Connection timeout */ /* relate to BTA_GATT_CONN_TIMEOUT in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_TERMINATE_PEER_USER = 0x13, /*!< Connection terminate by peer user */ /* relate to BTA_GATT_CONN_TERMINATE_PEER_USER in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_TERMINATE_LOCAL_HOST = 0x16, /*!< Connectionterminated by local host */ /* relate to BTA_GATT_CONN_TERMINATE_LOCAL_HOST in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_FAIL_ESTABLISH = 0x3e, /*!< Connection fail to establish */ /* relate to BTA_GATT_CONN_FAIL_ESTABLISH in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_LMP_TIMEOUT = 0x22, /*!< Connection fail for LMP response tout */ /* relate to BTA_GATT_CONN_LMP_TIMEOUT in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_CONN_CANCEL = 0x0100, /*!< L2CAP connection cancelled */ /* relate to BTA_GATT_CONN_CONN_CANCEL in bta/bta_gatt_api.h */
+ ESP_GATT_CONN_NONE = 0x0101 /*!< No connection to cancel */ /* relate to BTA_GATT_CONN_NONE in bta/bta_gatt_api.h */
} esp_gatt_conn_reason_t;
/**
bool is_primary; /*!< This service is primary or not */
} __attribute__((packed)) esp_gatt_srvc_id_t;
-/* relate to BTA_GATT_AUTH_REQ_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_AUTH_REQ_xxx in bta/bta_gatt_api.h */
/**
* @brief Gatt authentication request type
*/
typedef enum {
- ESP_GATT_AUTH_REQ_NONE = 0, /* relate to BTA_GATT_AUTH_REQ_NONE in bta_gatt_api.h */
- ESP_GATT_AUTH_REQ_NO_MITM = 1, /* unauthenticated encryption */ /* relate to BTA_GATT_AUTH_REQ_NO_MITM in bta_gatt_api.h */
- ESP_GATT_AUTH_REQ_MITM = 2, /* authenticated encryption */ /* relate to BTA_GATT_AUTH_REQ_MITM in bta_gatt_api.h */
- ESP_GATT_AUTH_REQ_SIGNED_NO_MITM = 3, /* relate to BTA_GATT_AUTH_REQ_SIGNED_NO_MITM in bta_gatt_api.h */
- ESP_GATT_AUTH_REQ_SIGNED_MITM = 4, /* relate to BTA_GATT_AUTH_REQ_SIGNED_MITM in bta_gatt_api.h */
+ ESP_GATT_AUTH_REQ_NONE = 0, /* relate to BTA_GATT_AUTH_REQ_NONE in bta/bta_gatt_api.h */
+ ESP_GATT_AUTH_REQ_NO_MITM = 1, /* unauthenticated encryption */ /* relate to BTA_GATT_AUTH_REQ_NO_MITM in bta/bta_gatt_api.h */
+ ESP_GATT_AUTH_REQ_MITM = 2, /* authenticated encryption */ /* relate to BTA_GATT_AUTH_REQ_MITM in bta/bta_gatt_api.h */
+ ESP_GATT_AUTH_REQ_SIGNED_NO_MITM = 3, /* relate to BTA_GATT_AUTH_REQ_SIGNED_NO_MITM in bta/bta_gatt_api.h */
+ ESP_GATT_AUTH_REQ_SIGNED_MITM = 4, /* relate to BTA_GATT_AUTH_REQ_SIGNED_MITM in bta/bta_gatt_api.h */
} esp_gatt_auth_req_t;
-/* relate to BTA_GATT_PERM_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_PERM_xxx in bta/bta_gatt_api.h */
/**
* @brief Attribute permissions
*/
-#define ESP_GATT_PERM_READ (1 << 0) /* bit 0 - 0x0001 */ /* relate to BTA_GATT_PERM_READ in bta_gatt_api.h */
-#define ESP_GATT_PERM_READ_ENCRYPTED (1 << 1) /* bit 1 - 0x0002 */ /* relate to BTA_GATT_PERM_READ_ENCRYPTED in bta_gatt_api.h */
-#define ESP_GATT_PERM_READ_ENC_MITM (1 << 2) /* bit 2 - 0x0004 */ /* relate to BTA_GATT_PERM_READ_ENC_MITM in bta_gatt_api.h */
-#define ESP_GATT_PERM_WRITE (1 << 4) /* bit 4 - 0x0010 */ /* relate to BTA_GATT_PERM_WRITE in bta_gatt_api.h */
-#define ESP_GATT_PERM_WRITE_ENCRYPTED (1 << 5) /* bit 5 - 0x0020 */ /* relate to BTA_GATT_PERM_WRITE_ENCRYPTED in bta_gatt_api.h */
-#define ESP_GATT_PERM_WRITE_ENC_MITM (1 << 6) /* bit 6 - 0x0040 */ /* relate to BTA_GATT_PERM_WRITE_ENC_MITM in bta_gatt_api.h */
-#define ESP_GATT_PERM_WRITE_SIGNED (1 << 7) /* bit 7 - 0x0080 */ /* relate to BTA_GATT_PERM_WRITE_SIGNED in bta_gatt_api.h */
-#define ESP_GATT_PERM_WRITE_SIGNED_MITM (1 << 8) /* bit 8 - 0x0100 */ /* relate to BTA_GATT_PERM_WRITE_SIGNED_MITM in bta_gatt_api.h */
+#define ESP_GATT_PERM_READ (1 << 0) /* bit 0 - 0x0001 */ /* relate to BTA_GATT_PERM_READ in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_READ_ENCRYPTED (1 << 1) /* bit 1 - 0x0002 */ /* relate to BTA_GATT_PERM_READ_ENCRYPTED in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_READ_ENC_MITM (1 << 2) /* bit 2 - 0x0004 */ /* relate to BTA_GATT_PERM_READ_ENC_MITM in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_WRITE (1 << 4) /* bit 4 - 0x0010 */ /* relate to BTA_GATT_PERM_WRITE in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_WRITE_ENCRYPTED (1 << 5) /* bit 5 - 0x0020 */ /* relate to BTA_GATT_PERM_WRITE_ENCRYPTED in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_WRITE_ENC_MITM (1 << 6) /* bit 6 - 0x0040 */ /* relate to BTA_GATT_PERM_WRITE_ENC_MITM in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_WRITE_SIGNED (1 << 7) /* bit 7 - 0x0080 */ /* relate to BTA_GATT_PERM_WRITE_SIGNED in bta/bta_gatt_api.h */
+#define ESP_GATT_PERM_WRITE_SIGNED_MITM (1 << 8) /* bit 8 - 0x0100 */ /* relate to BTA_GATT_PERM_WRITE_SIGNED_MITM in bta/bta_gatt_api.h */
typedef uint16_t esp_gatt_perm_t;
-/* relate to BTA_GATT_CHAR_PROP_BIT_xxx in bta_gatt_api.h */
+/* relate to BTA_GATT_CHAR_PROP_BIT_xxx in bta/bta_gatt_api.h */
/* definition of characteristic properties */
-#define ESP_GATT_CHAR_PROP_BIT_BROADCAST (1 << 0) /* 0x01 */ /* relate to BTA_GATT_CHAR_PROP_BIT_BROADCAST in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_READ (1 << 1) /* 0x02 */ /* relate to BTA_GATT_CHAR_PROP_BIT_READ in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_WRITE_NR (1 << 2) /* 0x04 */ /* relate to BTA_GATT_CHAR_PROP_BIT_WRITE_NR in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_WRITE (1 << 3) /* 0x08 */ /* relate to BTA_GATT_CHAR_PROP_BIT_WRITE in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_NOTIFY (1 << 4) /* 0x10 */ /* relate to BTA_GATT_CHAR_PROP_BIT_NOTIFY in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_INDICATE (1 << 5) /* 0x20 */ /* relate to BTA_GATT_CHAR_PROP_BIT_INDICATE in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_AUTH (1 << 6) /* 0x40 */ /* relate to BTA_GATT_CHAR_PROP_BIT_AUTH in bta_gatt_api.h */
-#define ESP_GATT_CHAR_PROP_BIT_EXT_PROP (1 << 7) /* 0x80 */ /* relate to BTA_GATT_CHAR_PROP_BIT_EXT_PROP in bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_BROADCAST (1 << 0) /* 0x01 */ /* relate to BTA_GATT_CHAR_PROP_BIT_BROADCAST in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_READ (1 << 1) /* 0x02 */ /* relate to BTA_GATT_CHAR_PROP_BIT_READ in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_WRITE_NR (1 << 2) /* 0x04 */ /* relate to BTA_GATT_CHAR_PROP_BIT_WRITE_NR in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_WRITE (1 << 3) /* 0x08 */ /* relate to BTA_GATT_CHAR_PROP_BIT_WRITE in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_NOTIFY (1 << 4) /* 0x10 */ /* relate to BTA_GATT_CHAR_PROP_BIT_NOTIFY in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_INDICATE (1 << 5) /* 0x20 */ /* relate to BTA_GATT_CHAR_PROP_BIT_INDICATE in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_AUTH (1 << 6) /* 0x40 */ /* relate to BTA_GATT_CHAR_PROP_BIT_AUTH in bta/bta_gatt_api.h */
+#define ESP_GATT_CHAR_PROP_BIT_EXT_PROP (1 << 7) /* 0x80 */ /* relate to BTA_GATT_CHAR_PROP_BIT_EXT_PROP in bta/bta_gatt_api.h */
typedef uint8_t esp_gatt_char_prop_t;
/// GATT maximum attribute length
} esp_spp_status_t;
/* Security Setting Mask */
-#define ESP_SPP_SEC_NONE 0x0000 /*!< No security. relate to BTA_SEC_NONE in bta_api.h */
-#define ESP_SPP_SEC_AUTHORIZE 0x0001 /*!< Authorization required (only needed for out going connection ) relate to BTA_SEC_AUTHORIZE in bta_api.h*/
-#define ESP_SPP_SEC_AUTHENTICATE 0x0012 /*!< Authentication required. relate to BTA_SEC_AUTHENTICATE in bta_api.h*/
-#define ESP_SPP_SEC_ENCRYPT 0x0024 /*!< Encryption required. relate to BTA_SEC_ENCRYPT in bta_api.h*/
-#define ESP_SPP_SEC_MODE4_LEVEL4 0x0040 /*!< Mode 4 level 4 service, i.e. incoming/outgoing MITM and P-256 encryption relate to BTA_SEC_MODE4_LEVEL4 in bta_api.h*/
-#define ESP_SPP_SEC_MITM 0x3000 /*!< Man-In-The_Middle protection relate to BTA_SEC_MITM in bta_api.h*/
-#define ESP_SPP_SEC_IN_16_DIGITS 0x4000 /*!< Min 16 digit for pin code relate to BTA_SEC_IN_16_DIGITS in bta_api.h*/
+#define ESP_SPP_SEC_NONE 0x0000 /*!< No security. relate to BTA_SEC_NONE in bta/bta_api.h */
+#define ESP_SPP_SEC_AUTHORIZE 0x0001 /*!< Authorization required (only needed for out going connection ) relate to BTA_SEC_AUTHORIZE in bta/bta_api.h*/
+#define ESP_SPP_SEC_AUTHENTICATE 0x0012 /*!< Authentication required. relate to BTA_SEC_AUTHENTICATE in bta/bta_api.h*/
+#define ESP_SPP_SEC_ENCRYPT 0x0024 /*!< Encryption required. relate to BTA_SEC_ENCRYPT in bta/bta_api.h*/
+#define ESP_SPP_SEC_MODE4_LEVEL4 0x0040 /*!< Mode 4 level 4 service, i.e. incoming/outgoing MITM and P-256 encryption relate to BTA_SEC_MODE4_LEVEL4 in bta/bta_api.h*/
+#define ESP_SPP_SEC_MITM 0x3000 /*!< Man-In-The_Middle protection relate to BTA_SEC_MITM in bta/bta_api.h*/
+#define ESP_SPP_SEC_IN_16_DIGITS 0x4000 /*!< Min 16 digit for pin code relate to BTA_SEC_IN_16_DIGITS in bta/bta_api.h*/
typedef uint16_t esp_spp_sec_t;
typedef enum {
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "bta_ar_api.h"
+#include "bta/bta_ar_api.h"
#include "bta_ar_int.h"
#if BTA_AR_INCLUDED
#ifndef BTA_AR_INT_H
#define BTA_AR_INT_H
-#include "bta_av_api.h"
+#include "bta/bta_av_api.h"
#if (BTA_AR_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
// #include <assert.h>
-#include "bt_trace.h"
+#include "common/bt_trace.h"
#include <string.h>
-#include "allocator.h"
+#include "osi/allocator.h"
#include "bta_av_int.h"
-#include "avdt_api.h"
-#include "utl.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
+#include "stack/avdt_api.h"
+#include "bta/utl.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
#if( defined BTA_AR_INCLUDED ) && (BTA_AR_INCLUDED == TRUE)
-#include "bta_ar_api.h"
+#include "bta/bta_ar_api.h"
#endif
/*****************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
#include <string.h>
-#include "bta_av_api.h"
+#include "bta/bta_av_api.h"
#include "bta_av_int.h"
-#include "avdt_api.h"
-#include "utl.h"
-#include "l2c_api.h"
-#include "allocator.h"
-#include "list.h"
+#include "stack/avdt_api.h"
+#include "bta/utl.h"
+#include "stack/l2c_api.h"
+#include "osi/allocator.h"
+#include "osi/list.h"
#if( defined BTA_AR_INCLUDED ) && (BTA_AR_INCLUDED == TRUE)
-#include "bta_ar_api.h"
+#include "bta/bta_ar_api.h"
#endif
#define LOG_TAG "bt_bta_av"
// #include "osi/include/log.h"
-#include "bt_trace.h"
+#include "common/bt_trace.h"
/*****************************************************************************
** Constants
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
-#include "allocator.h"
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_av_api.h"
+#include "osi/allocator.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_av_api.h"
#include "bta_av_int.h"
#include <string.h>
#include <stddef.h>
-#include "bt_target.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
#include "bta_av_int.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
-#include "bta_api.h"
-#include "bta_sys.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
#include "bta_av_int.h"
-#include "bta_av_ci.h"
-#include "allocator.h"
+#include "bta/bta_av_ci.h"
+#include "osi/allocator.h"
#include <string.h>
// #include <assert.h>
#include <string.h>
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
#include "bta_av_int.h"
-#include "utl.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "bta_av_co.h"
+#include "bta/utl.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "bta/bta_av_co.h"
#if( defined BTA_AR_INCLUDED ) && (BTA_AR_INCLUDED == TRUE)
-#include "bta_ar_api.h"
+#include "bta/bta_ar_api.h"
#endif
-#include "osi.h"
+#include "osi/osi.h"
/*****************************************************************************
** Constants and types
*
******************************************************************************/
-#include "bt_target.h"
-#include "a2d_api.h"
-#include "a2d_sbc.h"
-#include "bta_av_sbc.h"
-#include "utl.h"
-#include "bt_defs.h"
+#include "common/bt_target.h"
+#include "stack/a2d_api.h"
+#include "stack/a2d_sbc.h"
+#include "bta/bta_av_sbc.h"
+#include "bta/utl.h"
+#include "common/bt_defs.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
#include <string.h>
-#include "bta_av_co.h"
+#include "bta/bta_av_co.h"
#include "bta_av_int.h"
/*****************************************************************************
#ifndef BTA_AV_INT_H
#define BTA_AV_INT_H
-#include "bta_sys.h"
-#include "bta_api.h"
-#include "bta_av_api.h"
-#include "avdt_api.h"
-#include "bta_av_co.h"
-#include "list.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_av_api.h"
+#include "stack/avdt_api.h"
+#include "bta/bta_av_co.h"
+#include "osi/list.h"
#if (BTA_AV_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
-#include "bt_types.h"
-#include "bta_sys.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "stack/bt_types.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
#include "bta_dm_int.h"
-#include "bta_dm_co.h"
-#include "bta_gattc_co.h"
-#include "btm_api.h"
+#include "bta/bta_dm_co.h"
+#include "bta/bta_gattc_co.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "btu.h"
-#include "sdp_api.h"
-#include "l2c_api.h"
-#include "utl.h"
-#include "gap_api.h" /* For GAP_BleReadPeerPrefConnParams */
+#include "stack/btu.h"
+#include "stack/sdp_api.h"
+#include "stack/l2c_api.h"
+#include "bta/utl.h"
+#include "stack/gap_api.h" /* For GAP_BleReadPeerPrefConnParams */
#include <string.h>
-#include "controller.h"
+#include "device/controller.h"
#define LOG_TAG "bt_bta_dm"
// #include "osi/include/log.h"
#if (GAP_INCLUDED == TRUE)
-#include "gap_api.h"
+#include "stack/gap_api.h"
#endif
static void bta_dm_inq_results_cb (tBTM_INQ_RESULTS *p_inq, UINT8 *p_eir);
/*
* NOTE : The number of element in bta_service_id_to_btm_srv_id_lkup_tbl should be matching with
- * the value BTA_MAX_SERVICE_ID in bta_api.h
+ * the value BTA_MAX_SERVICE_ID in bta/bta_api.h
*
* i.e., If you add new Service ID for BTA, the correct security ID of the new service
- * from Security service definitions (btm_api.h) should be added to this lookup table.
+ * from Security service definitions (stack/btm_api.h) should be added to this lookup table.
*/
const UINT32 bta_service_id_to_btm_srv_id_lkup_tbl [BTA_MAX_SERVICE_ID] = {
0, /* Reserved */
*
******************************************************************************/
-#include "bta_sys.h"
-#include "bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
#include "bta_dm_int.h"
#include "bta_sys_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
#include <string.h>
-#include "utl.h"
-#include "allocator.h"
+#include "bta/utl.h"
+#include "osi/allocator.h"
/*****************************************************************************
** Constants
******************************************************************************/
#include <stddef.h>
-#include "bt_target.h"
-#include "bta_sys.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
#include "bta_dm_int.h"
-// #include "bta_jv_api.h"
+// #include "bta/bta_jv_api.h"
#ifndef BTA_DM_LINK_POLICY_SETTINGS
#define BTA_DM_LINK_POLICY_SETTINGS (HCI_ENABLE_MASTER_SLAVE_SWITCH | HCI_ENABLE_HOLD_MODE | HCI_ENABLE_SNIFF_MODE | HCI_ENABLE_PARK_MODE)
#endif /* BTE_SIM_APP */
};
-/* Please refer to the SNIFF table definitions in bta_api.h.
+/* Please refer to the SNIFF table definitions in bta/bta_api.h.
*
* Adding to or Modifying the Table
* Additional sniff parameter entries can be added for BTA_DM_PM_SNIFF5 - BTA_DM_PM_SNIFF7.
* Overrides of additional table entries can be specified in bdroid_buildcfg.h. If additional
* sniff parameter entries are added or an override of an existing entry is specified in
- * bdroid_buildcfg.h then the BTA_DM_PM_*_IDX defines in bta_api.h will need to be match the new
+ * bdroid_buildcfg.h then the BTA_DM_PM_*_IDX defines in bta/bta_api.h will need to be match the new
* ordering.
*
* Table Ordering
* More sniff parameter entries can be added for
* BTA_DM_PM_SNIFF3 - BTA_DM_PM_SNIFF7, if needed. When entries are added or
* removed, BTA_DM_PM_PARK_IDX needs to be updated to reflect the actual index
- * BTA_DM_PM_PARK_IDX is defined in bta_api.h and can be override by the
+ * BTA_DM_PM_PARK_IDX is defined in bta/bta_api.h and can be override by the
* bdroid_buildcfg.h settings.
* The SNIFF table entries must be in the order from highest latency (biggest
* interval) to lowest latency. If there's a conflict among the connected
*
******************************************************************************/
-#include "bta_sys.h"
-#include "bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
#include "bta_dm_int.h"
#include <string.h>
-#include "bta_dm_ci.h"
-#include "allocator.h"
+#include "bta/bta_dm_ci.h"
+#include "osi/allocator.h"
#if (BTM_OOB_INCLUDED == TRUE && SMP_INCLUDED == TRUE)
#include <stdio.h>
#include <stdlib.h>
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_dm_co.h"
-#include "bta_dm_ci.h"
-#include "btc_dm.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_dm_co.h"
+#include "bta/bta_dm_ci.h"
+#include "btc/btc_dm.h"
#if (defined(BTIF_INCLUDED) && BTIF_INCLUDED == TRUE)
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#if (BTM_OOB_INCLUDED == TRUE)
#include "btif_dm.h"
#endif
#endif /* #if (defined(BTIF_INCLUDED) && BTIF_INCLUDED == TRUE) */
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE)
-#include "bte_appl.h"
+#include "common/bte_appl.h"
tBTE_APPL_CFG bte_appl_cfg = {
#if SMP_INCLUDED == TRUE
BTA_LE_AUTH_REQ_SC_MITM_BOND, // Authentication requirements
*
******************************************************************************/
-#include "bta_api.h"
-#include "bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
#include "bta_dm_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#include <string.h>
// #include <assert.h>
#include <string.h>
-#include "bta_sys.h"
-#include "bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
#include "bta_dm_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#if (BTM_SSR_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bta_api.h"
-#include "bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
#if (BTM_SCO_HCI_INCLUDED == TRUE)
#ifndef BTA_DM_INT_H
#define BTA_DM_INT_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (BLE_INCLUDED == TRUE && (defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE))
-#include "bta_gatt_api.h"
+#include "bta/bta_gatt_api.h"
#endif
*
******************************************************************************/
-#include "bta_gatt_common.h"
+#include "bta/bta_gatt_common.h"
#include "gatt_int.h"
void BTA_GATT_SetLocalMTU(uint16_t mtu)
******************************************************************************/
#define LOG_TAG "bt_bta_gattc"
-#include "bt_target.h"
+#include "common/bt_target.h"
-#include "utl.h"
-#include "bta_sys.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
#include "bta_gattc_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "l2c_int.h"
#include "gatt_int.h"
-#include "allocator.h"
-#include "mutex.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
#if (defined BTA_HH_LE_INCLUDED && BTA_HH_LE_INCLUDED == TRUE)
#include "bta_hh_int.h"
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if defined(GATTC_INCLUDED) && (GATTC_INCLUDED == TRUE)
#include <string.h>
-#include "bta_sys.h"
-#include "bta_gatt_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gattc_int.h"
/*****************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTC_INCLUDED) && (GATTC_INCLUDED == TRUE)
#include <string.h>
-#include "utl.h"
-#include "bta_sys.h"
-#include "sdp_api.h"
-#include "sdpdefs.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
+#include "stack/sdp_api.h"
+#include "stack/sdpdefs.h"
#include "bta_gattc_int.h"
-#include "btm_api.h"
-#include "btm_ble_api.h"
-#include "allocator.h"
-#include "l2c_api.h"
+#include "stack/btm_api.h"
+#include "stack/btm_ble_api.h"
+#include "osi/allocator.h"
+#include "stack/l2c_api.h"
#include "btm_int.h"
#include "errno.h"
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTC_INCLUDED) && (GATTC_INCLUDED == TRUE)
#include <string.h>
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_gattc_ci.h"
-#include "utl.h"
-#include "allocator.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_gattc_ci.h"
+#include "bta/utl.h"
+#include "osi/allocator.h"
/*******************************************************************************
#include <unistd.h>
#endif /* BT_SUPPORT_NVM */
-#include "bta_gattc_co.h"
-#include "bta_gattc_ci.h"
+#include "bta/bta_gattc_co.h"
+#include "bta/bta_gattc_ci.h"
// #include "btif_util.h"
#include "btm_int.h"
#include "nvs.h"
#include "nvs_flash.h"
-#include "list.h"
+#include "osi/list.h"
#include "esp_err.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if( defined BLE_INCLUDED ) && (BLE_INCLUDED == TRUE)
#if( defined BTA_GATT_INCLUDED ) && (GATTC_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (GATTC_INCLUDED == TRUE && BLE_INCLUDED == TRUE)
#include <string.h>
#include "bta_gattc_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/*****************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTC_INCLUDED) && (GATTC_INCLUDED == TRUE)
#include <string.h>
-#include "bdaddr.h"
+#include "device/bdaddr.h"
// #include "btif/include/btif_util.h"
-#include "utl.h"
-#include "bta_sys.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
#include "bta_gattc_int.h"
-#include "l2c_api.h"
-#include "allocator.h"
+#include "stack/l2c_api.h"
+#include "osi/allocator.h"
#define LOG_TAG "bt_bta_gattc"
/*****************************************************************************
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTS_INCLUDED) && (GATTS_INCLUDED == TRUE)
-#include "utl.h"
-#include "bta_sys.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
#include "bta_gatts_int.h"
-#include "bta_gatts_co.h"
-#include "btm_ble_api.h"
+#include "bta/bta_gatts_co.h"
+#include "stack/btm_ble_api.h"
#include <string.h>
-#include "allocator.h"
+#include "osi/allocator.h"
static void bta_gatts_nv_save_cback(BOOLEAN is_saved, tGATTS_HNDL_RANGE *p_hndl_range);
static BOOLEAN bta_gatts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req,
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTS_INCLUDED) && (GATTS_INCLUDED == TRUE)
#include <string.h>
-#include "bta_sys.h"
-#include "bta_gatt_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gatts_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/*****************************************************************************
** Constants
*
******************************************************************************/
-#include "bta_api.h"
+#include "bta/bta_api.h"
#if( defined BLE_INCLUDED ) && (BLE_INCLUDED == TRUE)
#if( defined GATTS_INCLUDED ) && (GATTS_INCLUDED == TRUE)
#include <stdlib.h>
#include <string.h>
-#include "bta_gatts_co.h"
+#include "bta/bta_gatts_co.h"
// #include "btif_util.h"
#if (defined(BTIF_INCLUDED) && BTIF_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTS_INCLUDED) && (GATTS_INCLUDED == TRUE)
#include <string.h>
#include "bta_gatts_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/* type for service building action functions */
typedef void (*tBTA_GATTS_SRVC_ACT)(tBTA_GATTS_SRVC_CB *p_rcb, tBTA_GATTS_DATA *p_data);
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(GATTS_INCLUDED) && (GATTS_INCLUDED == TRUE)
#include <string.h>
-#include "utl.h"
-#include "bta_sys.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
#include "bta_gatts_int.h"
static const UINT8 base_uuid[LEN_UUID_128] = {0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80,
#ifndef BTA_GATTC_INT_H
#define BTA_GATTC_INT_H
-#include "bt_target.h"
-#include "bta_sys.h"
-#include "bta_gatt_api.h"
-#include "bta_gattc_ci.h"
-#include "bta_gattc_co.h"
-#include "fixed_queue.h"
-#include "mutex.h"
+#include "common/bt_target.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_gatt_api.h"
+#include "bta/bta_gattc_ci.h"
+#include "bta/bta_gattc_co.h"
+#include "osi/fixed_queue.h"
+#include "osi/mutex.h"
/*****************************************************************************
** Constants and data types
#ifndef BTA_GATTS_INT_H
#define BTA_GATTS_INT_H
-#include "bt_target.h"
-#include "bta_sys.h"
-#include "bta_gatt_api.h"
-#include "gatt_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_gatt_api.h"
+#include "stack/gatt_api.h"
/*****************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
#include <string.h>
-#include "bta_sys.h"
-#include "btm_api.h"
-#include "l2c_api.h"
+#include "bta/bta_sys.h"
+#include "stack/btm_api.h"
+#include "stack/l2c_api.h"
#include "bta_hh_int.h"
-#include "bta_hh_co.h"
-#include "utl.h"
+#include "bta/bta_hh_co.h"
+#include "bta/utl.h"
/*****************************************************************************
** Constants
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
#include <string.h>
#include <stdio.h>
-#include "bta_hh_api.h"
+#include "bta/bta_hh_api.h"
#include "bta_hh_int.h"
-#include "l2c_api.h"
-#include "utl.h"
+#include "stack/l2c_api.h"
+#include "bta/utl.h"
#define LOG_TAG "bt_bta_hh"
#include "osi/include/log.h"
*
******************************************************************************/
-#include "bt_target.h"
-#include "bta_hh_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_hh_api.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bta_api.h"
+#include "bta/bta_api.h"
#include "bta_hh_int.h"
#if (defined BTA_HH_LE_INCLUDED && BTA_HH_LE_INCLUDED == TRUE)
-#include "bta_api.h"
+#include "bta/bta_api.h"
#include <string.h>
-#include "btm_api.h"
-#include "btm_ble_api.h"
-#include "bta_hh_co.h"
-#include "bta_gatt_api.h"
+#include "stack/btm_api.h"
+#include "stack/btm_ble_api.h"
+#include "bta/bta_hh_co.h"
+#include "bta/bta_gatt_api.h"
#include "srvc_api.h"
#include "btm_int.h"
-#include "utl.h"
+#include "bta/utl.h"
#define LOG_TAG "bt_bta_hh"
#include "osi/include/log.h"
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
#include <string.h>
-#include "bta_hh_api.h"
+#include "bta/bta_hh_api.h"
#include "bta_hh_int.h"
/*****************************************************************************
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
#ifndef BTA_HH_INT_H
#define BTA_HH_INT_H
-#include "bta_sys.h"
-#include "utl.h"
-#include "bta_hh_api.h"
+#include "bta/bta_sys.h"
+#include "bta/utl.h"
+#include "bta/bta_hh_api.h"
//#if BTA_HH_LE_INCLUDED == TRUE
-#include "bta_gatt_api.h"
+#include "bta/bta_gatt_api.h"
//#endif
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
-/* can be moved to bta_api.h */
+/* can be moved to bta/bta_api.h */
#define BTA_HH_MAX_RPT_CHARS 8
#if (BTA_GATT_INCLUDED == FALSE || BLE_INCLUDED == FALSE)
#ifndef BTA_API_H
#define BTA_API_H
-#include "bt_target.h"
-#include "bt_types.h"
-#include "btm_api.h"
+#include "common/bt_target.h"
+#include "stack/bt_types.h"
+#include "stack/btm_api.h"
// #include "uipc_msg.h"
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#if BLE_INCLUDED == TRUE
-#include "btm_ble_api.h"
+#include "stack/btm_ble_api.h"
#endif
/*****************************************************************************
* Service ID
*
* NOTES: When you add a new Service ID for BTA AND require to change the value of BTA_MAX_SERVICE_ID,
- * make sure that the correct security ID of the new service from Security service definitions (btm_api.h)
+ * make sure that the correct security ID of the new service from Security service definitions (stack/btm_api.h)
* should be added to bta_service_id_to_btm_srv_id_lkup_tbl table in bta_dm_act.c.
*/
#ifndef BTA_AR_API_H
#define BTA_AR_API_H
-#include "avdt_api.h"
-#include "avct_api.h"
-#include "avrc_api.h"
-#include "sdp_api.h"
-#include "bta_av_api.h"
-#include "bta_sys.h"
+#include "stack/avdt_api.h"
+#include "stack/avct_api.h"
+#include "stack/avrc_api.h"
+#include "stack/sdp_api.h"
+#include "bta/bta_av_api.h"
+#include "bta/bta_sys.h"
#if (BTA_AR_INCLUDED == TRUE)
#ifndef BTA_AV_API_H
#define BTA_AV_API_H
-#include "avrc_api.h"
-#include "avdt_api.h"
-#include "a2d_api.h"
-#include "bta_api.h"
+#include "stack/avrc_api.h"
+#include "stack/avdt_api.h"
+#include "stack/a2d_api.h"
+#include "bta/bta_api.h"
#if (BTA_AV_INCLUDED == TRUE)
#ifndef BTA_AV_CI_H
#define BTA_AV_CI_H
-#include "bta_av_api.h"
+#include "bta/bta_av_api.h"
#if (BTA_AV_INCLUDED == TRUE)
#ifndef BTA_AV_CO_H
#define BTA_AV_CO_H
-#include "l2c_api.h"
-#include "bta_av_api.h"
+#include "stack/l2c_api.h"
+#include "bta/bta_av_api.h"
#if (BTA_AV_INCLUDED == TRUE)
#ifndef BTA_DM_CI_H
#define BTA_DM_CI_H
-#include "bta_api.h"
+#include "bta/bta_api.h"
/*****************************************************************************
** Function Declarations
#ifndef BTA_DM_CO_H
#define BTA_DM_CO_H
-#include "bta_sys.h"
+#include "bta/bta_sys.h"
#ifndef BTA_SCO_OUT_PKT_SIZE
#ifndef BTA_GATT_API_H
#define BTA_GATT_API_H
-#include "bta_api.h"
-#include "gatt_api.h"
-#include "list.h"
+#include "bta/bta_api.h"
+#include "stack/gatt_api.h"
+#include "osi/list.h"
#ifndef BTA_GATT_INCLUDED
#warning BTA_GATT_INCLUDED not defined
*
******************************************************************************/
-#include "bt_types.h"
+#include "stack/bt_types.h"
#ifdef __cplusplus
#ifndef BTA_GATTC_CI_H
#define BTA_GATTC_CI_H
-#include "bta_gatt_api.h"
+#include "bta/bta_gatt_api.h"
/*****************************************************************************
** Constants and data types
#ifndef BTA_GATTC_CO_H
#define BTA_GATTC_CO_H
-#include "bta_gatt_api.h"
-#include "hashkey.h"
+#include "bta/bta_gatt_api.h"
+#include "coap/hashkey.h"
/*******************************************************************************
**
#ifndef BTA_GATTS_CO_H
#define BTA_GATTS_CO_H
-#include "bta_gatt_api.h"
+#include "bta/bta_gatt_api.h"
/*******************************************************************************
**
#ifndef BTA_HH_API_H
#define BTA_HH_API_H
-#include "bta_api.h"
-#include "hidh_api.h"
+#include "bta/bta_api.h"
+#include "stack/hidh_api.h"
#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
#if (defined BTA_HH_LE_INCLUDED && BTA_HH_LE_INCLUDED == TRUE)
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#endif
/*****************************************************************************
#ifndef BTA_HH_CO_H
#define BTA_HH_CO_H
-#include "bta_hh_api.h"
+#include "bta/bta_hh_api.h"
typedef struct {
UINT16 rpt_uuid;
#ifndef BTA_JV_API_H
#define BTA_JV_API_H
-#include "bt_target.h"
-#include "bt_types.h"
-#include "bta_api.h"
-#include "btm_api.h"
-#include "l2c_api.h"
-#include "rfcdefs.h"
-#include "sdp_api.h"
+#include "common/bt_target.h"
+#include "stack/bt_types.h"
+#include "bta/bta_api.h"
+#include "stack/btm_api.h"
+#include "stack/l2c_api.h"
+#include "stack/rfcdefs.h"
+#include "stack/sdp_api.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
/*****************************************************************************
#ifndef BTA_JV_CO_H
#define BTA_JV_CO_H
-#include "bta_jv_api.h"
+#include "bta/bta_jv_api.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
/*****************************************************************************
#define BTA_SDP_API_H
#include "bt_sdp.h"
-#include "bt_target.h"
-#include "bt_types.h"
-#include "bta_api.h"
-#include "btm_api.h"
+#include "common/bt_target.h"
+#include "stack/bt_types.h"
+#include "bta/bta_api.h"
+#include "stack/btm_api.h"
#if (SDP_INCLUDED == TRUE)
/* status values */
#ifndef BTA_SYS_H
#define BTA_SYS_H
-#include "bt_target.h"
-#include "bt_defs.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
/*****************************************************************************
** Constants and data types
#ifndef UTL_H
#define UTL_H
-#include "bt_types.h"
+#include "stack/bt_types.h"
// #include "bt_utils.h"
/*****************************************************************************
#include <pthread.h>
#include <stdlib.h>
-#include "allocator.h"
-#include "bt_types.h"
-#include "utl.h"
-#include "bta_sys.h"
-#include "bta_api.h"
-#include "bta_jv_api.h"
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_jv_api.h"
#include "bta_jv_int.h"
-#include "bta_jv_co.h"
-#include "btm_api.h"
+#include "bta/bta_jv_co.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "sdp_api.h"
-#include "l2c_api.h"
-#include "port_api.h"
+#include "stack/sdp_api.h"
+#include "stack/l2c_api.h"
+#include "stack/port_api.h"
#include <string.h>
-#include "rfcdefs.h"
-#include "avct_api.h"
-#include "avdt_api.h"
-#include "gap_api.h"
-#include "l2c_api.h"
+#include "stack/rfcdefs.h"
+#include "stack/avct_api.h"
+#include "stack/avdt_api.h"
+#include "stack/gap_api.h"
+#include "stack/l2c_api.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_jv_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_jv_api.h"
#include "bta_jv_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#include <string.h>
-#include "port_api.h"
-#include "sdp_api.h"
-#include "utl.h"
-#include "gap_api.h"
+#include "stack/port_api.h"
+#include "stack/sdp_api.h"
+#include "bta/utl.h"
+#include "stack/gap_api.h"
-#include "bt_target.h"
-#include "sdp_api.h"
+#include "common/bt_target.h"
+#include "stack/sdp_api.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
*
******************************************************************************/
-#include "allocator.h"
-#include "bta_api.h"
-#include "bta_jv_api.h"
-#include "bt_target.h"
+#include "osi/allocator.h"
+#include "bta/bta_api.h"
+#include "bta/bta_jv_api.h"
+#include "common/bt_target.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
#ifndef BTA_JV_SDP_DB_SIZE
*
******************************************************************************/
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_jv_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_jv_api.h"
#include "bta_jv_int.h"
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
/*****************************************************************************
#ifndef BTA_JV_INT_H
#define BTA_JV_INT_H
-#include "bta_sys.h"
-#include "bta_api.h"
-#include "bta_jv_api.h"
-#include "rfcdefs.h"
-#include "port_api.h"
-#include "sdp_api.h"
-
-#include "bt_target.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_jv_api.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
+#include "stack/sdp_api.h"
+
+#include "common/bt_target.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
/*****************************************************************************
** Constants
******************************************************************************/
#include <stdlib.h>
-#include "bt_target.h"
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_sdp_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_sdp_api.h"
#include "bta_sdp_int.h"
#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
// #include <hardware/bluetooth.h>
#include "bt_sdp.h"
// #include <arpa/inet.h>
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#include <stdlib.h>
#include <string.h>
-#include "bt_target.h"
-#include "allocator.h"
-#include "bt_types.h"
-#include "utl.h"
-#include "bta_sys.h"
-#include "bta_api.h"
-#include "bta_sdp_api.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "bta/utl.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sdp_api.h"
#include "bta_sdp_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#if (SDP_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "bta_sdp_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_sdp_api.h"
#include "bta_sdp_int.h"
#include <string.h>
-#include "allocator.h"
-#include "sdp_api.h"
+#include "osi/allocator.h"
+#include "stack/sdp_api.h"
#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
/*****************************************************************************
* This file contains compile-time configurable constants for SDP Search
******************************************************************************/
-#include "bt_target.h"
-#include "bta_api.h"
-#include "bta_sdp_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sdp_api.h"
#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
#ifndef BTA_SDP_INT_H
#define BTA_SDP_INT_H
-#include "bta_sys.h"
-#include "bta_api.h"
-#include "bta_sdp_api.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sdp_api.h"
#if (SDP_INCLUDED == TRUE)
/*****************************************************************************
******************************************************************************/
#include <stddef.h>
-#include "bta_api.h"
-#include "bta_sys.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
#include "bta_sys_int.h"
-#include "utl.h"
+#include "bta/utl.h"
/*******************************************************************************
**
// #include <assert.h>
#include <string.h>
-#include "alarm.h"
-#include "thread.h"
-#include "btm_api.h"
-#include "bta_api.h"
-#include "bta_sys.h"
+#include "osi/alarm.h"
+#include "osi/thread.h"
+#include "stack/btm_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
#include "bta_sys_int.h"
-#include "fixed_queue.h"
-#include "hash_map.h"
-#include "osi.h"
-#include "hash_functions.h"
+#include "osi/fixed_queue.h"
+#include "osi/hash_map.h"
+#include "osi/osi.h"
+#include "osi/hash_functions.h"
#if( defined BTA_AR_INCLUDED ) && (BTA_AR_INCLUDED == TRUE)
-#include "bta_ar_api.h"
+#include "bta/bta_ar_api.h"
#endif
-#include "utl.h"
-#include "allocator.h"
-#include "mutex.h"
+#include "bta/utl.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
/* system manager control block definition */
/* action function list */
const tBTA_SYS_ACTION bta_sys_action[] = {
- /* device manager local device API events - cf bta_sys.h for events */
+ /* device manager local device API events - cf bta/bta_sys.h for events */
bta_sys_hw_api_enable, /* 0 BTA_SYS_HW_API_ENABLE_EVT */
bta_sys_hw_evt_enabled, /* 1 BTA_SYS_HW_EVT_ENABLED_EVT */
bta_sys_hw_evt_stack_enabled, /* 2 BTA_SYS_HW_EVT_STACK_ENABLED_EVT */
*
******************************************************************************/
#include <stddef.h>
-#include "utl.h"
-#include "btm_api.h"
-#include "allocator.h"
+#include "bta/utl.h"
+#include "stack/btm_api.h"
+#include "osi/allocator.h"
/*******************************************************************************
**
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "btc_task.h"
-#include "btc_alarm.h"
+#include "btc/btc_task.h"
+#include "btc/btc_alarm.h"
void btc_alarm_handler(btc_msg_t *msg)
{
#include <string.h>
-#include "bta_api.h"
-#include "btc_config.h"
-#include "bdaddr.h"
-#include "btc_ble_storage.h"
-#include "bta_gatts_co.h"
-#include "btc_util.h"
+#include "bta/bta_api.h"
+#include "btc/btc_config.h"
+#include "device/bdaddr.h"
+#include "btc/btc_ble_storage.h"
+#include "bta/bta_gatts_co.h"
+#include "btc/btc_util.h"
#if (SMP_INCLUDED == TRUE)
#include <stdio.h>
#include <string.h>
-#include "bt_defs.h"
-#include "bt_trace.h"
-#include "alarm.h"
-#include "allocator.h"
-#include "bdaddr.h"
-#include "btc_config.h"
-#include "btc_util.h"
-#include "config.h"
-#include "osi.h"
-#include "mutex.h"
-
-#include "bt_types.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
+#include "osi/alarm.h"
+#include "osi/allocator.h"
+#include "device/bdaddr.h"
+#include "btc/btc_config.h"
+#include "btc/btc_util.h"
+#include "osi/config.h"
+#include "osi/osi.h"
+#include "osi/mutex.h"
+
+#include "stack/bt_types.h"
static const char *CONFIG_FILE_PATH = "bt_config.conf";
static const period_ms_t CONFIG_SETTLE_PERIOD_MS = 3000;
// limitations under the License.
#include <string.h>
-#include "bta_api.h"
-#include "btc_task.h"
-#include "btc_manage.h"
-#include "btc_dev.h"
+#include "bta/bta_api.h"
+#include "btc/btc_task.h"
+#include "btc/btc_manage.h"
+#include "btc/btc_dev.h"
void btc_dev_call_handler(btc_msg_t *msg)
{
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <stdlib.h>
#include <string.h>
-#include "btc_common.h"
-#include "btc_dm.h"
-#include "btc_main.h"
-#include "bt_trace.h"
-#include "bt_target.h"
-#include "btc_storage.h"
-#include "btc_ble_storage.h"
+#include "btc/btc_common.h"
+#include "btc/btc_dm.h"
+#include "btc/btc_main.h"
+#include "common/bt_trace.h"
+#include "common/bt_target.h"
+#include "btc/btc_storage.h"
+#include "btc/btc_ble_storage.h"
#include "esp_gap_ble_api.h"
#include "btm_int.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
-#include "allocator.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
+#include "osi/allocator.h"
#if (BTC_GAP_BT_INCLUDED == TRUE)
#include "btc_gap_bt.h"
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "btc_task.h"
-#include "btc_main.h"
-#include "btc_dm.h"
-#include "future.h"
+#include "btc/btc_task.h"
+#include "btc/btc_main.h"
+#include "btc/btc_dm.h"
+#include "osi/future.h"
#include "esp_err.h"
-#include "btc_config.h"
-#include "alarm.h"
-#include "btc_ble_storage.h"
+#include "btc/btc_config.h"
+#include "osi/alarm.h"
+#include "btc/btc_ble_storage.h"
#include "btc_gap_ble.h"
#include "bta_gattc_int.h"
#include "bta_gatts_int.h"
// limitations under the License.
-#include "btc_task.h"
-#include "bt_trace.h"
-#include "thread.h"
+#include "btc/btc_task.h"
+#include "common/bt_trace.h"
+#include "osi/thread.h"
#include "esp_bt_defs.h"
#include "esp_gatt_defs.h"
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "esp_bt_main.h"
-#include "bt_trace.h"
-#include "bt_defs.h"
-#include "btc_profile_queue.h"
-#include "list.h"
-#include "allocator.h"
+#include "common/bt_trace.h"
+#include "common/bt_defs.h"
+#include "btc/btc_profile_queue.h"
+#include "osi/list.h"
+#include "osi/allocator.h"
#if BTC_PRF_QUEUE_INCLUDED
/*******************************************************************************
* Description: Generic BTC state machine API
*
*****************************************************************************/
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "btc_common.h"
-#include "btc_sm.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "btc/btc_common.h"
+#include "btc/btc_sm.h"
#if BTC_SM_INCLUDED
/*****************************************************************************
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "btc_storage.h"
-#include "btc_util.h"
-#include "osi.h"
-#include "bt_trace.h"
+#include "btc/btc_storage.h"
+#include "btc/btc_util.h"
+#include "osi/osi.h"
+#include "common/bt_trace.h"
#include "esp_system.h"
-#include "bta_api.h"
-#include "bdaddr.h"
-#include "btc_config.h"
+#include "bta/bta_api.h"
+#include "device/bdaddr.h"
+#include "btc/btc_config.h"
/*******************************************************************************
**
#include <stdlib.h>
#include <string.h>
-#include "bt_target.h"
-#include "btc_task.h"
-#include "bt_trace.h"
-#include "thread.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "btc_main.h"
-#include "btc_dev.h"
+#include "common/bt_target.h"
+#include "btc/btc_task.h"
+#include "common/bt_trace.h"
+#include "osi/thread.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "btc/btc_main.h"
+#include "btc/btc_dev.h"
#include "btc_gatts.h"
#include "btc_gattc.h"
#include "btc_gatt_common.h"
#include "btc_gap_ble.h"
#include "btc_blufi_prf.h"
-#include "btc_dm.h"
-#include "btc_alarm.h"
-#include "bta_gatt_api.h"
+#include "btc/btc_dm.h"
+#include "btc/btc_alarm.h"
+#include "bta/bta_gatt_api.h"
#if CONFIG_CLASSIC_BT_ENABLED
-#include "btc_profile_queue.h"
+#include "btc/btc_profile_queue.h"
#if (BTC_GAP_BT_INCLUDED == TRUE)
#include "btc_gap_bt.h"
#endif /* BTC_GAP_BT_INCLUDED == TRUE */
#include <string.h>
#include <ctype.h>
-#include "btc_util.h"
+#include "btc/btc_util.h"
#if (BTA_AV_INCLUDED == TRUE)
-#include "bta_av_api.h"
+#include "bta/bta_av_api.h"
#endif ///BTA_AV_INCLUDED == TRUE
-#include "bt_defs.h"
+#include "common/bt_defs.h"
/************************************************************************************
** Constants & Macros
#define __BTC_ALARM_H__
#include <stdint.h>
-#include "alarm.h"
+#include "osi/alarm.h"
/* btc_alarm_args_t */
typedef struct {
// limitations under the License.
#ifndef __BTC_BLE_STORAGE_H__
#define __BTC_BLE_STORAGE_H__
-#include "bt_types.h"
-#include "bt_target.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
#include "esp_gap_ble_api.h"
#if (SMP_INCLUDED == TRUE)
#ifndef __BTC_COMMON_H__
#define __BTC_COMMON_H__
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "osi.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "osi/osi.h"
#define BTC_ASSERTC(cond, msg, val) if (!(cond)) { LOG_ERROR( \
"### ASSERT : %s line %d %s (%d) ###", __FILE__, __LINE__, msg, val);}
#include <stdbool.h>
#include <stddef.h>
-#include "bt_types.h"
+#include "stack/bt_types.h"
typedef struct btc_config_section_iter_t btc_config_section_iter_t;
#include "esp_bt_defs.h"
#include "esp_bt_device.h"
-#include "btc_task.h"
+#include "btc/btc_task.h"
typedef enum {
BTC_DEV_ACT_SET_DEVICE_NAME
#ifndef __BTC_DM_H__
#define __BTC_DM_H__
-#include "btc_task.h"
+#include "btc/btc_task.h"
#include "esp_bt_defs.h"
-#include "bta_api.h"
+#include "bta/bta_api.h"
typedef enum {
BTC_DM_SEC_ACT
#ifndef __BTC_BT_MAIN_H__
#define __BTC_BT_MAIN_H__
-#include "future.h"
-#include "bt_types.h"
-#include "bta_api.h"
-#include "btc_main.h"
-#include "btc_task.h"
+#include "osi/future.h"
+#include "stack/bt_types.h"
+#include "bta/bta_api.h"
+#include "btc/btc_main.h"
+#include "btc/btc_task.h"
typedef enum {
BTC_MAIN_ACT_INIT = 0,
#ifndef __BTC_MANAGE_H__
#define __BTC_MANAGE_H__
-#include "bta_api.h"
-#include "btc_task.h"
+#include "bta/bta_api.h"
+#include "btc/btc_task.h"
#include "esp_bt_defs.h"
/* reset gatt callback table */
/*******************************************************************************
*
- * Filename: btc_profile_queue.h
+ * Filename: btc/btc_profile_queue.h
*
* Description: Bluetooth remote device connection queuing
*
#ifndef __BTC_PROFILE_QUEUE_H__
#define __BTC_PROFILE_QUEUE_H__
-#include "bt_defs.h"
-#include "btc_task.h"
+#include "common/bt_defs.h"
+#include "btc/btc_task.h"
typedef enum {
BTC_PRF_QUE_CONNECT = 0,
/*****************************************************************************
*
- * Filename: btc_sm.h
+ * Filename: btc/btc_sm.h
*
* Description: Generic BTC state machine API
*
#define __BTC_STORAGE_H__
#include <stdint.h>
-#include "bt_defs.h"
-#include "bt_types.h"
+#include "common/bt_defs.h"
+#include "stack/bt_types.h"
#define BTC_STORAGE_DEV_CLASS_STR "DevClass"
#define __BTC_TASK_H__
#include <stdint.h>
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "thread.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "osi/thread.h"
typedef struct btc_msg {
uint8_t sig; //event signal
#define __BTC_UTIL_H__
#include <stdbool.h>
-#include "bt_types.h"
-#include "bt_defs.h"
+#include "stack/bt_types.h"
+#include "common/bt_defs.h"
#include "esp_bt_defs.h"
/*******************************************************************************
#include <stdio.h>
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "gatt_api.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "stack/gatt_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gatts_int.h"
#include "button_pro.h"
#include <stdio.h>
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "allocator.h"
-#include "bt_types.h"
-#include "gatt_api.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "stack/gatt_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gatts_int.h"
#include "btc_blufi_prf.h"
-#include "btc_task.h"
-#include "btc_manage.h"
+#include "btc/btc_task.h"
+#include "btc/btc_manage.h"
#include "btc_gatt_util.h"
#include "blufi_int.h"
#include <stdio.h>
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "gatt_api.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "stack/gatt_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gatts_int.h"
#include "btc_blufi_prf.h"
-#include "btc_task.h"
-#include "btc_manage.h"
+#include "btc/btc_task.h"
+#include "btc/btc_manage.h"
#include "blufi_int.h"
#ifndef __BTC_BLUFI_PRF_H__
#define __BTC_BLUFI_PRF_H__
-#include "bt_target.h"
-#include "btc_task.h"
+#include "common/bt_target.h"
+#include "btc/btc_task.h"
#include "esp_blufi_api.h"
typedef enum {
#if (BUT_PROFILE_CFG)
-#include "bt_target.h"
-#include "gatt_api.h"
-#include "gattdefs.h"
+#include "common/bt_target.h"
+#include "stack/gatt_api.h"
+#include "stack/gattdefs.h"
#include "esp_gatt_api.h"
#define KEY_SUCCESS GATT_SUCCESS
#if (WX_AIRSYNC_CFG)
-#include "bt_target.h"
-#include "gatt_api.h"
-#include "gattdefs.h"
+#include "common/bt_target.h"
+#include "stack/gatt_api.h"
+#include "stack/gattdefs.h"
#include "bt_app_api.h"
#include <stdbool.h>
#include <stdio.h>
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "gatt_api.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "stack/gatt_api.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
#include "bta_gatts_int.h"
*
******************************************************************************/
#include "string.h"
-#include "bt_target.h"
-#include "a2d_api.h"
-#include "a2d_sbc.h"
-#include "bta_sys.h"
-#include "bta_av_api.h"
-#include "bta_av_co.h"
-#include "bta_av_ci.h"
-#include "bta_av_sbc.h"
+#include "common/bt_target.h"
+#include "stack/a2d_api.h"
+#include "stack/a2d_sbc.h"
+#include "bta/bta_sys.h"
+#include "bta/bta_av_api.h"
+#include "bta/bta_av_co.h"
+#include "bta/bta_av_ci.h"
+#include "bta/bta_av_sbc.h"
#include "btc_a2dp.h"
#include "btc_a2dp_source.h"
#include "btc_av_co.h"
-#include "btc_util.h"
-#include "mutex.h"
+#include "btc/btc_util.h"
+#include "osi/mutex.h"
#if BTC_AV_INCLUDED
* Filename: btc_a2dp.c
*
*****************************************************************************/
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "bta_api.h"
-#include "bta_av_api.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "bta/bta_api.h"
+#include "bta/bta_av_api.h"
#include "btc_av.h"
#include "btc_av_co.h"
#include "btc_a2dp.h"
* Filename: btc_a2dp_control.c
*
*****************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "bt_trace.h"
-#include "bta_api.h"
-#include "bta_av_api.h"
-#include "btc_manage.h"
+#include "common/bt_trace.h"
+#include "bta/bta_api.h"
+#include "bta/bta_av_api.h"
+#include "btc/btc_manage.h"
#include "btc_av.h"
#include "btc_a2dp.h"
#include "btc_a2dp_control.h"
** Name: btc_a2dp_sink.c
**
******************************************************************************/
-#include "bt_target.h"
-#include "bt_trace.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
#include <string.h>
#include <stdint.h>
-#include "bt_defs.h"
-#include "allocator.h"
-#include "mutex.h"
-#include "thread.h"
-#include "fixed_queue.h"
-#include "a2d_api.h"
-#include "a2d_sbc.h"
-#include "bta_av_api.h"
-#include "bta_av_ci.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
+#include "osi/thread.h"
+#include "osi/fixed_queue.h"
+#include "stack/a2d_api.h"
+#include "stack/a2d_sbc.h"
+#include "bta/bta_av_api.h"
+#include "bta/bta_av_ci.h"
#include "btc_av_co.h"
#include "btc_a2dp.h"
#include "btc_a2dp_control.h"
#include "btc_a2dp_sink.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "btc_av.h"
-#include "btc_util.h"
+#include "btc/btc_util.h"
#include "esp_a2dp_api.h"
#include "oi_codec_sbc.h"
#include "oi_status.h"
-#include "future.h"
+#include "osi/future.h"
#include <assert.h>
#if (BTC_AV_SINK_INCLUDED == TRUE)
** Name: btc_a2dp_source.c
**
******************************************************************************/
-#include "bt_target.h"
-#include "bt_trace.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
-#include "allocator.h"
-#include "alarm.h"
-#include "thread.h"
-#include "mutex.h"
-#include "fixed_queue.h"
-#include "a2d_api.h"
-#include "a2d_sbc.h"
-#include "bta_av_api.h"
-#include "bta_av_sbc.h"
-#include "bta_av_ci.h"
-#include "btc_manage.h"
-#include "btc_common.h"
+#include "osi/allocator.h"
+#include "osi/alarm.h"
+#include "osi/thread.h"
+#include "osi/mutex.h"
+#include "osi/fixed_queue.h"
+#include "stack/a2d_api.h"
+#include "stack/a2d_sbc.h"
+#include "bta/bta_av_api.h"
+#include "bta/bta_av_sbc.h"
+#include "bta/bta_av_ci.h"
+#include "btc/btc_manage.h"
+#include "btc/btc_common.h"
#include "btc_av_co.h"
#include "btc_a2dp.h"
#include "btc_a2dp_control.h"
#include "btc_a2dp_source.h"
#include "btc_av.h"
-#include "btc_util.h"
+#include "btc/btc_util.h"
#include "esp_a2dp_api.h"
#include "sbc_encoder.h"
-#include "future.h"
+#include "osi/future.h"
#include <assert.h>
#if BTC_AV_SRC_INCLUDED
* Description: AV implementation
*
*****************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "bt_trace.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "btu.h"
-#include "bta_av_api.h"
-#include "btc_dm.h"
-#include "btc_common.h"
-#include "btc_manage.h"
+#include "common/bt_trace.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "stack/btu.h"
+#include "bta/bta_av_api.h"
+#include "btc/btc_dm.h"
+#include "btc/btc_common.h"
+#include "btc/btc_manage.h"
#include "btc_av.h"
#include "btc_avrc.h"
-#include "btc_util.h"
-#include "btc_profile_queue.h"
+#include "btc/btc_util.h"
+#include "btc/btc_profile_queue.h"
#include "btc_a2dp.h"
#include "btc_a2dp_control.h"
#include "btc_a2dp_sink.h"
* Description: Bluetooth AVRC implementation
*
*****************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "bta_api.h"
-#include "bta_av_api.h"
-#include "avrc_defs.h"
-#include "btc_common.h"
-#include "btc_util.h"
+#include "bta/bta_api.h"
+#include "bta/bta_av_api.h"
+#include "stack/avrc_defs.h"
+#include "btc/btc_common.h"
+#include "btc/btc_util.h"
#include "btc_av.h"
#include "btc_avrc.h"
-#include "btc_manage.h"
+#include "btc/btc_manage.h"
#include "esp_avrc_api.h"
-#include "mutex.h"
-#include "allocator.h"
+#include "osi/mutex.h"
+#include "osi/allocator.h"
#if BTC_AV_INCLUDED
#include <stdio.h>
//#include "bluedroid_test.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
-#include "controller.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
+#include "device/controller.h"
#include "gatt_int.h"
-#include "bt_trace.h"
-#include "btm_api.h"
-#include "bt_types.h"
+#include "common/bt_trace.h"
+#include "stack/btm_api.h"
+#include "stack/bt_types.h"
#include "dis_api.h"
#if BLE_INCLUDED == true
#ifndef SRVC_BATTERY_INT_H
#define SRVC_BATTERY_INT_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "srvc_api.h"
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#ifndef BA_MAX_INT_NUM
#define BA_MAX_INT_NUM 4
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
-//#include "gatt_api.h"
+//#include "stack/gatt_api.h"
#define LOG_TAG "bt_srvc"
//#include "osi/include/log.h"
#include "stdint.h"
#include "string.h"
-#include "bta_api.h"
-#include "bta_gatt_api.h"
-#include "controller.h"
+#include "bta/bta_api.h"
+#include "bta/bta_gatt_api.h"
+#include "device/controller.h"
#include "gatt_int.h"
-#include "bt_trace.h"
-#include "btm_api.h"
-#include "bt_types.h"
+#include "common/bt_trace.h"
+#include "stack/btm_api.h"
+#include "stack/bt_types.h"
#include "dis_api.h"
#if BLE_INCLUDED == TRUE
#ifndef SRVC_DIS_INT_H
#define SRVC_DIS_INT_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "srvc_api.h"
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#define DIS_MAX_CHAR_NUM 9
#include <string.h>
-#include "allocator.h"
-#include "bt_types.h"
-#include "bt_defs.h"
-#include "bta_api.h"
-#include "bta_dm_co.h"
-#include "btc_task.h"
-#include "btc_manage.h"
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "common/bt_defs.h"
+#include "bta/bta_api.h"
+#include "bta/bta_dm_co.h"
+#include "btc/btc_task.h"
+#include "btc/btc_manage.h"
#include "btc_gap_ble.h"
#include "btc_gatt_util.h"
#include "esp_bt_defs.h"
#include "esp_gap_ble_api.h"
-#include "btc_ble_storage.h"
-#include "btc_dm.h"
+#include "btc/btc_ble_storage.h"
+#include "btc/btc_dm.h"
static tBTA_BLE_ADV_DATA gl_bta_adv_data;
static tBTA_BLE_ADV_DATA gl_bta_scan_rsp_data;
#include "esp_bt_defs.h"
#include "esp_gap_bt_api.h"
#include "btc_gap_bt.h"
-#include "bta_api.h"
-#include "bt_trace.h"
-#include "bt_target.h"
-#include "btc_manage.h"
-#include "btc_util.h"
-#include "allocator.h"
+#include "bta/bta_api.h"
+#include "common/bt_trace.h"
+#include "common/bt_target.h"
+#include "btc/btc_manage.h"
+#include "btc/btc_util.h"
+#include "osi/allocator.h"
#if (BTC_GAP_BT_INCLUDED == TRUE)
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "btc_task.h"
-#include "btc_main.h"
-#include "btc_dm.h"
-#include "future.h"
+#include "btc/btc_task.h"
+#include "btc/btc_main.h"
+#include "btc/btc_dm.h"
+#include "osi/future.h"
#include "esp_err.h"
-#include "btc_config.h"
-#include "alarm.h"
-#include "btc_ble_storage.h"
+#include "btc/btc_config.h"
+#include "osi/alarm.h"
+#include "btc/btc_ble_storage.h"
#include "btc_gatt_common.h"
-#include "bta_gatt_common.h"
+#include "bta/bta_gatt_common.h"
static void btc_set_local_mtu(uint16_t mtu)
#include <string.h>
-#include "btm_ble_api.h"
+#include "stack/btm_ble_api.h"
#include "btc_gattc.h"
#include "btc_gatt_util.h"
-#include "btc_manage.h"
-#include "bta_gatt_api.h"
-#include "bt_trace.h"
-#include "allocator.h"
+#include "btc/btc_manage.h"
+#include "bta/bta_gatt_api.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
#include "esp_gattc_api.h"
#if (GATTC_INCLUDED == TRUE)
#include <string.h>
-#include "bta_gatt_api.h"
+#include "bta/bta_gatt_api.h"
-#include "btc_task.h"
-#include "btc_manage.h"
+#include "btc/btc_task.h"
+#include "btc/btc_manage.h"
#include "btc_gatts.h"
#include "btc_gatt_util.h"
-#include "future.h"
-#include "allocator.h"
-#include "btc_main.h"
+#include "osi/future.h"
+#include "osi/allocator.h"
+#include "btc/btc_main.h"
#include "esp_gatts_api.h"
#if (GATTS_INCLUDED == TRUE)
#ifndef HIDH_INT_H
#define HIDH_INT_H
-#include "hidh_api.h"
+#include "stack/hidh_api.h"
#include "hid_conn.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#if (HID_HOST_INCLUDED == TRUE)
#include <stdint.h>
// #include "bluetooth.h"
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#define SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH 15
#define __BTC_A2DP_H__
#include <stdbool.h>
-#include "bt_target.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
#include "btc_av_api.h"
#include "esp_a2dp_api.h"
#define __BTC_A2DP_CONTROL_H__
#include <stdbool.h>
-#include "bt_target.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
#include "btc_av_api.h"
#include "esp_a2dp_api.h"
#define __BTC_A2DP_SINK_H__
#include <stdbool.h>
-#include "bt_target.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
#include "btc_av_api.h"
#include "esp_a2dp_api.h"
#define __BTC_A2DP_SOURCE_H__
#include <stdbool.h>
-#include "bt_target.h"
-#include "bta_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_api.h"
#include "btc_av_api.h"
#include "esp_a2dp_api.h"
#ifndef __BTC_AV_H__
#define __BTC_AV_H__
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "esp_a2dp_api.h"
-#include "btc_task.h"
-#include "btc_common.h"
-#include "btc_sm.h"
-#include "bta_av_api.h"
+#include "btc/btc_task.h"
+#include "btc/btc_common.h"
+#include "btc/btc_sm.h"
+#include "bta/bta_av_api.h"
#if (BTC_AV_INCLUDED == TRUE)
/*******************************************************************************
#ifndef __BTC_AV_API_H__
#define __BTC_AV_API_H__
-#include "bt_target.h"
-#include "bta_av_api.h"
-#include "a2d_api.h"
-#include "a2d_sbc.h"
+#include "common/bt_target.h"
+#include "bta/bta_av_api.h"
+#include "stack/a2d_api.h"
+#include "stack/a2d_sbc.h"
#if (BTC_AV_INCLUDED == TRUE)
/*****************************************************************************
#include <stdint.h>
#include <stdbool.h>
-#include "bt_defs.h"
-#include "bt_types.h"
-#include "bta_av_api.h"
+#include "common/bt_defs.h"
+#include "stack/bt_types.h"
+#include "bta/bta_av_api.h"
#if (BTC_AV_INCLUDED == TRUE)
#ifndef BTC_AVRC_TGT_INCLUDED
#ifndef __BTC_GAP_BT_H__
#define __BTC_GAP_BT_H__
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "esp_bt_defs.h"
#include "esp_gap_bt_api.h"
-#include "btc_task.h"
-#include "utl.h"
+#include "btc/btc_task.h"
+#include "bta/utl.h"
#if (BTC_GAP_BT_INCLUDED == TRUE)
#ifndef __BTC_GATT_COMMON_H__
#define __BTC_GATT_COMMON_H__
-#include "future.h"
-#include "bt_types.h"
-#include "bta_api.h"
-#include "btc_main.h"
-#include "btc_task.h"
+#include "osi/future.h"
+#include "stack/bt_types.h"
+#include "bta/bta_api.h"
+#include "btc/btc_main.h"
+#include "btc/btc_task.h"
typedef enum {
BTC_GATT_ACT_SET_LOCAL_MTU = 0,
#ifndef __BTC_GATT_UTIL_H__
#define __BTC_GATT_UTIL_H__
-#include "bt_types.h"
-#include "bta_gatt_api.h"
+#include "stack/bt_types.h"
+#include "bta/bta_gatt_api.h"
#include "esp_bt_defs.h"
#include "esp_gatt_defs.h"
#include "esp_gattc_api.h"
#ifndef __BTC_GATTC_H__
#define __BTC_GATTC_H__
-#include "btc_task.h"
+#include "btc/btc_task.h"
#include "esp_bt_defs.h"
#include "esp_gatt_defs.h"
#include "esp_gattc_api.h"
#ifndef __BTC_GATTS_H__
#define __BTC_GATTS_H__
-#include "btc_task.h"
+#include "btc/btc_task.h"
#include "esp_bt_defs.h"
#include "esp_gatt_defs.h"
#include "esp_gatts_api.h"
#ifndef __BTC_SPP_H__
#define __BTC_SPP_H__
-#include "btc_task.h"
+#include "btc/btc_task.h"
#include "esp_bt_defs.h"
#include "esp_spp_api.h"
-#include "bt_target.h"
-#include "bta_jv_api.h"
+#include "common/bt_target.h"
+#include "bta/bta_jv_api.h"
#if (defined BTC_SPP_INCLUDED && BTC_SPP_INCLUDED == TRUE)
#ifndef SRVC_DIS_API_H
#define SRVC_DIS_API_H
-#include "bt_target.h"
-#include "gatt_api.h"
-#include "gattdefs.h"
+#include "common/bt_target.h"
+#include "stack/gatt_api.h"
+#include "stack/gattdefs.h"
#include "esp_gatts_api.h"
#define DIS_SUCCESS GATT_SUCCESS
#if (HIDD_LE_PROFILE_CFG)
#include "bta_gatts_int.h"
-#include "bt_types.h"
-#include "bta_api.h"
-#include "gatt_api.h"
+#include "stack/bt_types.h"
+#include "bta/bta_api.h"
+#include "stack/gatt_api.h"
#include "bt_app_api.h"
/// Maximal number of HIDS that can be added in the DB
#ifndef SRVC_DIS_API_H
#define SRVC_DIS_API_H
-#include "bt_target.h"
-#include "gatt_api.h"
-#include "gattdefs.h"
+#include "common/bt_target.h"
+#include "stack/gatt_api.h"
+#include "stack/gattdefs.h"
#define DIS_SUCCESS GATT_SUCCESS
#define DIS_ILLEGAL_PARAM GATT_ILLEGAL_PARAMETER
#ifndef __ESP_SEC_API_H__
#define __ESP_SEC_API_H__
-#include "bt_types.h"
+#include "stack/bt_types.h"
#define APP_SEC_IRK_FLAG (0)
#define RAND_NB_LEN 0x08
#include <string.h>
#include "btc_spp.h"
-#include "btc_manage.h"
-#include "btc_task.h"
-#include "bta_jv_api.h"
-#include "bt_trace.h"
-#include "allocator.h"
+#include "btc/btc_manage.h"
+#include "btc/btc_task.h"
+#include "bta/bta_jv_api.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
#include "esp_spp_api.h"
-#include "list.h"
+#include "osi/list.h"
-#include "mutex.h"
+#include "osi/mutex.h"
#include <sys/errno.h>
#include <sys/lock.h>
#include <sys/fcntl.h>
#ifndef _BT_COMMON_TYPES_H_
#define _BT_COMMON_TYPES_H_
-#include "bt_defs.h"
-#include "thread.h"
+#include "common/bt_defs.h"
+#include "osi/thread.h"
typedef void (* bluedroid_init_done_cb_t)(void);
// limitations under the License.
/**
- * bt_defs.h Defines useful API for whole Bluedroid
+ * common/bt_defs.h Defines useful API for whole Bluedroid
*
*/
#ifndef _BT_DEFS_H_
#include <stdlib.h>
#include <stdint.h>
-#include "bt_trace.h"
-#include "bt_target.h"
+#include "common/bt_trace.h"
+#include "common/bt_target.h"
#define UNUSED(x) (void)(x)
#endif
#include "sdkconfig.h"
-#include "bt_types.h" /* This must be defined AFTER buildcfg.h */
+#include "stack/bt_types.h" /* This must be defined AFTER buildcfg.h */
-#include "dyn_mem.h" /* defines static and/or dynamic memory for components */
+#include "stack/dyn_mem.h" /* defines static and/or dynamic memory for components */
/******************************************************************************
**
#define BTSNOOP_MEM FALSE//TRUE
#endif
-#include "bt_trace.h"
+#include "common/bt_trace.h"
#endif /* BT_TARGET_H */
#include "sdkconfig.h"
#include <stdio.h>
-#include "bt_types.h"
+#include "stack/bt_types.h"
#include "esp_log.h"
#ifndef BTE_H
#define BTE_H
-//#include <semaphore.h>
+//#include <osi/semaphore.h>
//#include <signal.h>
//#include <pthread.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
/* by default on shutdown, baudrate is reset 115kbits. this should NOT be need for platforms
* that kill BTE driver and remove/reset BT chip
#include <stdio.h>
#include <string.h>
-#include "bt_trace.h"
-#include "bdaddr.h"
+#include "common/bt_trace.h"
+#include "device/bdaddr.h"
static inline bool ets_isxdigit(char c)
{
*
******************************************************************************/
#include <stdbool.h>
-#include "bt_trace.h"
-#include "bdaddr.h"
-#include "bt_types.h"
-#include "controller.h"
-#include "event_mask.h"
-#include "hcimsgs.h"
-#include "hci_layer.h"
-#include "hci_packet_factory.h"
-#include "hci_packet_parser.h"
-#include "btm_ble_api.h"
-#include "version.h"
-#include "future.h"
+#include "common/bt_trace.h"
+#include "device/bdaddr.h"
+#include "stack/bt_types.h"
+#include "device/controller.h"
+#include "device/event_mask.h"
+#include "stack/hcimsgs.h"
+#include "hci/hci_layer.h"
+#include "hci/hci_packet_factory.h"
+#include "hci/hci_packet_parser.h"
+#include "stack/btm_ble_api.h"
+#include "device/version.h"
+#include "osi/future.h"
const bt_event_mask_t BLE_EVENT_MASK = { "\x00\x00\x00\x00\x00\x00\x06\x7f" };
#include <stdbool.h>
#include <stddef.h>
-#include "bt_defs.h"
-#include "hash_map.h"
+#include "common/bt_defs.h"
+#include "osi/hash_map.h"
// Note: the string representation of a bdaddr is expected to have the format
// xx:xx:xx:xx:xx:xx
#include <stdbool.h>
#include <stdint.h>
-#include "bt_target.h"
-#include "bdaddr.h"
-#include "device_features.h"
-#include "hci_layer.h"
-#include "hci_packet_factory.h"
-#include "hci_packet_parser.h"
+#include "common/bt_target.h"
+#include "device/bdaddr.h"
+#include "device/device_features.h"
+#include "hci/hci_layer.h"
+#include "hci/hci_packet_factory.h"
+#include "hci/hci_packet_parser.h"
typedef struct controller_t {
void (*start_up)(void);
#define _INTEROP_H_
#include <stdbool.h>
-#include "bt_defs.h"
-#include "bt_target.h"
+#include "common/bt_defs.h"
+#include "common/bt_target.h"
typedef enum {
// Disable secure connections
#ifndef _INTEROP_DATABASE_H_
#define _INTEROP_DATABASE_H_
-#include "interop.h"
+#include "device/interop.h"
typedef struct {
bt_bdaddr_t addr;
#define LOG_TAG "bt_device_interop"
*/
#include <string.h> // For memcmp
-#include "bt_trace.h"
-#include "bdaddr.h"
-#include "interop.h"
-#include "interop_database.h"
+#include "common/bt_trace.h"
+#include "device/bdaddr.h"
+#include "device/interop.h"
+#include "device/interop_database.h"
#define CASE_RETURN_STR(const) case const: return #const;
* limitations under the License.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <stdlib.h>
#include <oi_codec_sbc_private.h>
/**@addgroup codec_internal*/
/**@{*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <oi_codec_sbc_private.h>
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_utils.h"
#include <oi_codec_sbc_private.h>
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_stddefs.h"
#include "oi_bitstream.h"
#include "oi_assert.h"
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <oi_codec_sbc_private.h>
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#include "oi_bitstream.h"
#include <stdio.h>
/**@addtogroup codec_internal */
/**@{*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#include "oi_bitstream.h"
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <oi_codec_sbc_private.h>
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
/**@addgroup codec_internal*/
/**@{*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#include "oi_assert.h"
/**********************************************************************************
$Revision: #1 $
***********************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_stddefs.h"
#include "oi_codec_sbc_private.h"
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <oi_codec_sbc_private.h>
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
* factorization. The scaling factors are folded into the windowing
* constants. 29 adds and 5 16x32 multiplies per 8 samples.
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
@addtogroup codec_internal
@{
*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "oi_codec_sbc_private.h"
#if (defined(SBC_DEC_INCLUDED) && SBC_DEC_INCLUDED == TRUE)
#define ENCODER_VERSION "0025"
#ifdef BUILDCFG
-#include "bt_target.h"
+#include "common/bt_target.h"
#endif
/*DEFINES*/
#include <stdint.h>
#ifdef BUILDCFG
-#include "bt_target.h"
+#include "common/bt_target.h"
#endif
-#include "bt_types.h"
+#include "stack/bt_types.h"
typedef short SINT16;
typedef long SINT32;
* stream.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
* source file for fast dct operations
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
#include "sbc_dct.h"
* analysis.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#if (defined(SBC_ENC_INCLUDED) && SBC_ENC_INCLUDED == TRUE)
******************************************************************************/
/*Includes*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
******************************************************************************/
/*Includes*/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
* This file contains the Windowing coeffs for synthesis filter
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#if (defined(SBC_ENC_INCLUDED) && SBC_ENC_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
* This file contains code for packing the Encoded data into bit streams.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "sbc_encoder.h"
#include "sbc_enc_func_declare.h"
* limitations under the License.
*
******************************************************************************/
-#include "buffer_allocator.h"
-#include "allocator.h"
+#include "hci/buffer_allocator.h"
+#include "osi/allocator.h"
// TODO(zachoverflow): move the assertion into osi_malloc in the future
static void *buffer_alloc(size_t size)
*
******************************************************************************/
#include <string.h>
-#include "bt_defs.h"
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "buffer_allocator.h"
-#include "fixed_queue.h"
-#include "hci_hal.h"
-#include "hci_internals.h"
-#include "hci_layer.h"
-#include "thread.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "hci/buffer_allocator.h"
+#include "osi/fixed_queue.h"
+#include "hci/hci_hal.h"
+#include "hci/hci_internals.h"
+#include "hci/hci_layer.h"
+#include "osi/thread.h"
#include "esp_bt.h"
#define HCI_HAL_SERIAL_BUFFER_SIZE 1026
******************************************************************************/
#include <string.h>
#include "esp_bt.h"
-#include "bt_defs.h"
-#include "bt_trace.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "bt_vendor_lib.h"
-#include "hci_internals.h"
-#include "hci_hal.h"
-#include "hci_layer.h"
-#include "allocator.h"
-#include "packet_fragmenter.h"
-#include "buffer_allocator.h"
-#include "list.h"
-#include "alarm.h"
-#include "thread.h"
-#include "mutex.h"
-#include "fixed_queue.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "common/bt_vendor_lib.h"
+#include "hci/hci_internals.h"
+#include "hci/hci_hal.h"
+#include "hci/hci_layer.h"
+#include "osi/allocator.h"
+#include "hci/packet_fragmenter.h"
+#include "hci/buffer_allocator.h"
+#include "osi/list.h"
+#include "osi/alarm.h"
+#include "osi/thread.h"
+#include "osi/mutex.h"
+#include "osi/fixed_queue.h"
typedef struct {
uint16_t opcode;
*
******************************************************************************/
-#include "bt_defs.h"
-
-#include "allocator.h"
-#include "bt_types.h"
-#include "buffer_allocator.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "hci_internals.h"
-#include "hci_layer.h"
-#include "hci_packet_factory.h"
+#include "common/bt_defs.h"
+
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "hci/buffer_allocator.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "hci/hci_internals.h"
+#include "hci/hci_layer.h"
+#include "hci/hci_packet_factory.h"
static const allocator_t *buffer_allocator;
*
******************************************************************************/
-#include "bt_defs.h"
+#include "common/bt_defs.h"
-#include "buffer_allocator.h"
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "hci_layer.h"
-#include "hci_packet_parser.h"
+#include "hci/buffer_allocator.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "hci/hci_layer.h"
+#include "hci/hci_packet_parser.h"
static const command_opcode_t NO_OPCODE_CHECKING = 0;
#ifndef _BUFFER_ALLOCATOR_H_
-#include "allocator.h"
+#include "osi/allocator.h"
const allocator_t *buffer_allocator_get_interface();
#include <stdbool.h>
#include <stdint.h>
-#include "bt_types.h"
+#include "stack/bt_types.h"
typedef enum {
DATA_TYPE_COMMAND = 1,
#ifndef _HCI_LAYER_H_
#define _HCI_LAYER_H_
-#include "bt_types.h"
-#include "allocator.h"
-#include "osi.h"
-#include "future.h"
+#include "stack/bt_types.h"
+#include "osi/allocator.h"
+#include "osi/osi.h"
+#include "osi/future.h"
///// LEGACY DEFINITIONS /////
/* Message event mask across Host/Controller lib and stack */
#ifndef _HCI_PACKET_FACTORY_H_
#define _HCI_PACKET_FACTORY_H_
-#include "bt_types.h"
-#include "event_mask.h"
+#include "stack/bt_types.h"
+#include "device/event_mask.h"
typedef struct {
BT_HDR *(*make_reset)(void);
#include <stdint.h>
-#include "allocator.h"
-#include "bdaddr.h"
-#include "bt_types.h"
-#include "device_features.h"
+#include "osi/allocator.h"
+#include "device/bdaddr.h"
+#include "stack/bt_types.h"
+#include "device/device_features.h"
//#include "features.h"
-#include "version.h"
+#include "device/version.h"
typedef struct {
void (*parse_generic_command_complete)(BT_HDR *response);
#ifndef _PACKET_FRAGMENTER_H_
#define _PACKET_FRAGMENTER_H_
-#include "allocator.h"
-#include "bt_types.h"
-#include "hci_layer.h"
+#include "osi/allocator.h"
+#include "stack/bt_types.h"
+#include "hci/hci_layer.h"
typedef void (*transmit_finished_cb)(BT_HDR *packet, bool all_fragments_sent);
typedef void (*packet_reassembled_cb)(BT_HDR *packet);
*
******************************************************************************/
#include <string.h>
-#include "bt_trace.h"
-#include "bt_defs.h"
-#include "controller.h"
-#include "buffer_allocator.h"
-#include "hci_internals.h"
-#include "hci_layer.h"
-#include "packet_fragmenter.h"
-
-#include "hash_map.h"
-#include "hash_functions.h"
-#include "bt_trace.h"
+#include "common/bt_trace.h"
+#include "common/bt_defs.h"
+#include "device/controller.h"
+#include "hci/buffer_allocator.h"
+#include "hci/hci_internals.h"
+#include "hci/hci_layer.h"
+#include "hci/packet_fragmenter.h"
+
+#include "osi/hash_map.h"
+#include "osi/hash_functions.h"
+#include "common/bt_trace.h"
#define APPLY_CONTINUATION_FLAG(handle) (((handle) & 0xCFFF) | 0x1000)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#if (defined(RFCOMM_INCLUDED) && RFCOMM_INCLUDED == TRUE)
// Include initialization functions definitions
-#include "port_api.h"
+#include "stack/port_api.h"
#endif
#if (defined(BNEP_INCLUDED) && BNEP_INCLUDED == TRUE)
#endif
#if (defined(GAP_INCLUDED) && GAP_INCLUDED == TRUE)
-#include "gap_api.h"
+#include "stack/gap_api.h"
#endif
#if (defined(PAN_INCLUDED) && PAN_INCLUDED == TRUE)
#endif
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
-#include "avrc_api.h"
+#include "stack/avrc_api.h"
#endif
#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
-#include "a2d_api.h"
+#include "stack/a2d_api.h"
#endif
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
#endif
#if (defined(HID_HOST_INCLUDED) && HID_HOST_INCLUDED == TRUE)
-#include "hidh_api.h"
+#include "stack/hidh_api.h"
#endif
#if (defined(MCA_INCLUDED) && MCA_INCLUDED == TRUE)
#endif
#if (defined(BLE_INCLUDED) && BLE_INCLUDED == TRUE)
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#if (defined(SMP_INCLUDED) && SMP_INCLUDED == TRUE)
-#include "smp_api.h"
+#include "stack/smp_api.h"
#endif
#endif
//BTA Modules
#if BTA_INCLUDED == TRUE && BTA_DYNAMIC_MEMORY == TRUE
-#include "bta_api.h"
-#include "bta_sys.h"
-#include "allocator.h"
+#include "bta/bta_api.h"
+#include "bta/bta_sys.h"
+#include "osi/allocator.h"
//#include "bta_ag_int.h"
******************************************************************************/
-#include "bt_defs.h"
-#include "bt_common_types.h"
-#include "bte.h"
-#include "btu.h"
-#include "bt_trace.h"
-#include "osi.h"
-#include "alarm.h"
-#include "hash_map.h"
-#include "hash_functions.h"
-#include "controller.h"
-#include "hci_layer.h"
-#include "bta_api.h"
+#include "common/bt_defs.h"
+#include "common/bt_common_types.h"
+#include "common/bte.h"
+#include "stack/btu.h"
+#include "common/bt_trace.h"
+#include "osi/osi.h"
+#include "osi/alarm.h"
+#include "osi/hash_map.h"
+#include "osi/hash_functions.h"
+#include "device/controller.h"
+#include "hci/hci_layer.h"
+#include "bta/bta_api.h"
/*******************************************************************************
** Constants & Macros
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
-#include "bt_defs.h"
-#include "bt_trace.h"
-#include "alarm.h"
-#include "allocator.h"
-#include "list.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
+#include "osi/alarm.h"
+#include "osi/allocator.h"
+#include "osi/list.h"
#include "esp_timer.h"
-#include "btc_task.h"
-#include "btc_alarm.h"
-#include "mutex.h"
+#include "btc/btc_task.h"
+#include "btc/btc_alarm.h"
+#include "osi/mutex.h"
typedef struct alarm_t {
/* timer id point to here */
#include <stdlib.h>
#include <string.h>
-#include "bt_defs.h"
-#include "allocator.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
extern void *pvPortZalloc(size_t size);
extern void vPortFree(void *pv);
*
******************************************************************************/
#include <stdint.h>
-#include "bt_trace.h"
-#include "allocator.h"
-#include "buffer.h"
-#include "bt_defs.h"
-#include "bt_trace.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
+#include "osi/buffer.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
struct buffer_t {
buffer_t *root;
#include <stdlib.h>
#include <string.h>
-#include "allocator.h"
-#include "config.h"
-#include "list.h"
-#include "bt_trace.h"
+#include "osi/allocator.h"
+#include "osi/config.h"
+#include "osi/list.h"
+#include "common/bt_trace.h"
#define CONFIG_FILE_MAX_SIZE (1536)//1.5k
#define CONFIG_FILE_DEFAULE_LENGTH (2048)
*
******************************************************************************/
-#include "bt_defs.h"
-#include "allocator.h"
-#include "fixed_queue.h"
-#include "list.h"
-#include "osi.h"
-#include "bt_trace.h"
-#include "mutex.h"
-#include "semaphore.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "osi/fixed_queue.h"
+#include "osi/list.h"
+#include "osi/osi.h"
+#include "common/bt_trace.h"
+#include "osi/mutex.h"
+#include "osi/semaphore.h"
typedef struct fixed_queue_t {
*
******************************************************************************/
-#include "bt_trace.h"
+#include "common/bt_trace.h"
-#include "allocator.h"
-#include "future.h"
-#include "osi.h"
+#include "osi/allocator.h"
+#include "osi/future.h"
+#include "osi/osi.h"
void future_free(future_t *future);
#include <string.h>
-#include "hash_functions.h"
+#include "osi/hash_functions.h"
hash_index_t hash_function_naive(const void *key)
{
*
******************************************************************************/
-#include "bt_defs.h"
-#include "bt_trace.h"
-#include "list.h"
-#include "hash_map.h"
-#include "allocator.h"
+#include "common/bt_defs.h"
+#include "common/bt_trace.h"
+#include "osi/list.h"
+#include "osi/hash_map.h"
+#include "osi/allocator.h"
struct hash_map_t;
#define _FIXED_QUEUE_H_
#include <stdbool.h>
-#include "list.h"
+#include "osi/list.h"
struct fixed_queue_t;
#ifndef __FUTURE_H__
#define __FUTURE_H__
-#include "semaphore.h"
+#include "osi/semaphore.h"
struct future {
bool ready_can_be_called;
#ifndef _HASH_FUNCTIONS_H_
#define _HASH_FUNCTIONS_H_
-#include "hash_map.h"
+#include "osi/hash_map.h"
hash_index_t hash_function_naive(const void *key);
#include "freertos/queue.h"
#include "freertos/task.h"
#include "esp_task.h"
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#define portBASE_TYPE int
-#include "bt_defs.h"
+#include "common/bt_defs.h"
-#include "allocator.h"
-#include "list.h"
-#include "osi.h"
+#include "osi/allocator.h"
+#include "osi/list.h"
+#include "osi/osi.h"
struct list_node_t {
struct list_node_t *next;
*
******************************************************************************/
-#include "mutex.h"
+#include "osi/mutex.h"
/* static section */
// limitations under the License.
-#include "osi.h"
-#include "mutex.h"
+#include "osi/osi.h"
+#include "osi/mutex.h"
int osi_init(void)
{
******************************************************************************/
-#include "semaphore.h"
+#include "osi/semaphore.h"
/*-----------------------------------------------------------------------------------*/
// Creates and returns a new semaphore. The "init_count" argument specifies
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "sdpdefs.h"
-#include "a2d_api.h"
+#include "common/bt_target.h"
+#include "stack/sdpdefs.h"
+#include "stack/a2d_api.h"
#include "a2d_int.h"
-#include "avdt_api.h"
-#include "allocator.h"
+#include "stack/avdt_api.h"
+#include "osi/allocator.h"
#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "a2d_api.h"
+#include "stack/a2d_api.h"
#include "a2d_int.h"
-#include "a2d_sbc.h"
-#include "bt_defs.h"
+#include "stack/a2d_sbc.h"
+#include "common/bt_defs.h"
#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
#ifndef A2D_INT_H
#define A2D_INT_H
-#include "a2d_api.h"
+#include "stack/a2d_api.h"
#if (A2D_INCLUDED == TRUE)
/*****************************************************************************
** Constants
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "btm_api.h"
-#include "avct_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "stack/btm_api.h"
+#include "stack/avct_api.h"
#include "avct_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "avct_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "stack/avct_api.h"
#include "avct_int.h"
#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avct_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avct_api.h"
#include "avct_int.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "allocator.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "osi/allocator.h"
#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avct_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avct_api.h"
#include "avct_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avct_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avct_api.h"
#include "avct_int.h"
-#include "btm_api.h"
-#include "allocator.h"
+#include "stack/btm_api.h"
+#include "osi/allocator.h"
#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
#ifndef AVCT_INT_H
#define AVCT_INT_H
-#include "avct_api.h"
+#include "stack/avct_api.h"
#include "avct_defs.h"
-#include "l2c_api.h"
-#include "fixed_queue.h"
+#include "stack/l2c_api.h"
+#include "osi/fixed_queue.h"
/*****************************************************************************
** constants
******************************************************************************/
// #include <assert.h>
-#include "bt_trace.h"
+#include "common/bt_trace.h"
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "allocator.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/*******************************************************************************
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "l2c_api.h"
-#include "btm_api.h"
-#include "btu.h"
-#include "allocator.h"
+#include "stack/l2c_api.h"
+#include "stack/btm_api.h"
+#include "stack/btu.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "btu.h"
+#include "stack/btu.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "btu.h"
-#include "btm_api.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "btm_api.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "btu.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/*****************************************************************************
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "btu.h"
-#include "allocator.h"
-#include "fixed_queue.h"
+#include "stack/btu.h"
+#include "osi/allocator.h"
+#include "osi/fixed_queue.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_int.h"
-#include "btu.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "osi/allocator.h"
#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
******************************************************************************/
#ifndef AVDT_DEFS_H
#define AVDT_DEFS_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (AVDT_INCLUDED == TRUE)
#ifndef AVDT_INT_H
#define AVDT_INT_H
-#include "avdt_api.h"
-#include "avdtc_api.h"
+#include "stack/avdt_api.h"
+#include "stack/avdtc_api.h"
#include "avdt_defs.h"
-#include "l2c_api.h"
-#include "btm_api.h"
-#include "fixed_queue.h"
+#include "stack/l2c_api.h"
+#include "stack/btm_api.h"
+#include "osi/fixed_queue.h"
#if (AVRC_INCLUDED == TRUE)
*
******************************************************************************/
// #include <assert.h>
-#include "bt_trace.h"
+#include "common/bt_trace.h"
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
#include "avrc_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
-#include "avrc_defs.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
+#include "stack/avrc_defs.h"
#include "avrc_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
-#include "avrc_defs.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
+#include "stack/avrc_defs.h"
#include "avrc_int.h"
-#include "bt_defs.h"
-#include "allocator.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
// #include <assert.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
-#include "avrc_api.h"
+#include "stack/avrc_api.h"
#include "avrc_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
-#include "avrc_defs.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
+#include "stack/avrc_defs.h"
#include "avrc_int.h"
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
-#include "avrc_defs.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
+#include "stack/avrc_defs.h"
#include "avrc_int.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
#include "avrc_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "avrc_api.h"
+#include "common/bt_target.h"
+#include "stack/avrc_api.h"
#include "avrc_int.h"
#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
#define AVRC_INT_H
#include "avct_defs.h"
-#include "avrc_api.h"
+#include "stack/avrc_api.h"
#if (AVRC_INCLUDED == TRUE)
/* DEBUG FLAGS
#define AVRC_VENDOR_UNIQUE_MASK 0x70 /* vendor unique id */
-/* Company ID is 24-bit integer We can not use the macros in bt_types.h */
+/* Company ID is 24-bit integer We can not use the macros in stack/bt_types.h */
#define AVRC_CO_ID_TO_BE_STREAM(p, u32) {*(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)(u32); }
#define AVRC_BE_STREAM_TO_CO_ID(u32, p) {u32 = (((UINT32)(*((p) + 2))) + (((UINT32)(*((p) + 1))) << 8) + (((UINT32)(*(p))) << 16)); (p) += 3;}
//#include <stdio.h>
#include <stddef.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "controller.h"
-#include "hcimsgs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
#include "l2c_int.h"
-#include "hcidefs.h"
+#include "stack/hcidefs.h"
//#include "bt_utils.h"
static void btm_read_remote_features (UINT16 handle);
* security functions.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if BLE_INCLUDED == TRUE
#include <string.h>
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
-#include "btm_ble_api.h"
-#include "smp_api.h"
+#include "stack/btm_ble_api.h"
+#include "stack/smp_api.h"
#include "l2c_int.h"
-#include "gap_api.h"
+#include "stack/gap_api.h"
//#include "bt_utils.h"
-#include "controller.h"
+#include "device/controller.h"
//#define LOG_TAG "bt_btm_ble"
//#include "osi/include/log.h"
p_rec->ble.keys.key_size = p_keys->lenc_key.key_size;
p_rec->ble.key_type |= BTM_LE_KEY_LENC;
- /* Set that link key is known since this shares field with BTM_SEC_FLAG_LKEY_KNOWN flag in btm_api.h*/
+ /* Set that link key is known since this shares field with BTM_SEC_FLAG_LKEY_KNOWN flag in stack/btm_api.h*/
p_rec->sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN;
if ( p_keys->pcsrk_key.sec_level == SMP_SEC_AUTHENTICATED) {
p_rec->sec_flags |= BTM_SEC_LE_LINK_KEY_AUTHED;
#include <string.h>
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
-#include "gap_api.h"
-#include "controller.h"
+#include "stack/gap_api.h"
+#include "device/controller.h"
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE)
#include "btm_ble_int.h"
-#include "smp_api.h"
+#include "stack/smp_api.h"
/*******************************************************************************
//#define LOG_TAG "bt_btm_ble"
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (BLE_INCLUDED == TRUE)
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
-#include "allocator.h"
-#include "hcidefs.h"
-#include "btm_ble_api.h"
-#include "controller.h"
+#include "osi/allocator.h"
+#include "stack/hcidefs.h"
+#include "stack/btm_ble_api.h"
+#include "device/controller.h"
#define BTM_BLE_ADV_FILT_META_HDR_LENGTH 3
#define BTM_BLE_ADV_FILT_FEAT_SELN_LEN 13
#include <string.h>
//#include <stdio.h>
#include <stddef.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
-#include "btm_ble_api.h"
-#include "bt_types.h"
+#include "stack/btm_ble_api.h"
+#include "stack/bt_types.h"
//#include "bt_utils.h"
-#include "btu.h"
+#include "stack/btu.h"
#include "btm_int.h"
-#include "controller.h"
-#include "hcimsgs.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
#if (BLE_INCLUDED == TRUE)
******************************************************************************/
#include <string.h>
-#include "bt_trace.h"
-#include "controller.h"
-#include "allocator.h"
-#include "hash_map.h"
-#include "bt_types.h"
-#include "btu.h"
+#include "common/bt_trace.h"
+#include "device/controller.h"
+#include "osi/allocator.h"
+#include "osi/hash_map.h"
+#include "stack/bt_types.h"
+#include "stack/btu.h"
#include "btm_int.h"
#include "l2c_int.h"
-#include "hcimsgs.h"
+#include "stack/hcimsgs.h"
//#include "bt_utils.h"
#ifndef BTM_BLE_SCAN_PARAM_TOUT
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (BLE_INCLUDED == TRUE)
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
//#include "bt_utils.h"
-#include "hcidefs.h"
-#include "btm_ble_api.h"
+#include "stack/hcidefs.h"
+#include "stack/btm_ble_api.h"
tBTM_BLE_ENERGY_INFO_CB ble_energy_info_cb;
//#include <stdio.h>
#include <stddef.h>
-#include "bt_types.h"
+#include "stack/bt_types.h"
//#include "bt_utils.h"
#include "btm_int.h"
-#include "btm_ble_api.h"
-#include "btu.h"
-#include "controller.h"
-#include "hcimsgs.h"
-#include "gap_api.h"
+#include "stack/btm_ble_api.h"
+#include "stack/btu.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
+#include "stack/gap_api.h"
#if BLE_INCLUDED == TRUE
#include "l2c_int.h"
-#include "gattdefs.h"
+#include "stack/gattdefs.h"
#include "gatt_int.h"
#include "btm_ble_int.h"
#include <string.h>
-#include "bt_target.h"
-#include "controller.h"
+#include "common/bt_target.h"
+#include "device/controller.h"
#if (BLE_INCLUDED == TRUE)
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
//#include "bt_utils.h"
-#include "hcidefs.h"
-#include "btm_ble_api.h"
+#include "stack/hcidefs.h"
+#include "stack/btm_ble_api.h"
/************************************************************************************
** Constants & Macros
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (BLE_INCLUDED == TRUE && BLE_PRIVACY_SPT == TRUE)
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
//#include "vendor_hcidefs.h"
#include "btm_int.h"
-#include "controller.h"
-#include "hcidefs.h"
+#include "device/controller.h"
+#include "stack/hcidefs.h"
#define HCI_VENDOR_BLE_RPA_VSC (0x0155 | HCI_GRP_VENDOR_SPECIFIC)
//#include <stdio.h>
#include <stddef.h>
-#include "bt_types.h"
-#include "controller.h"
-#include "hcimsgs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/bt_types.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "hcidefs.h"
-#include "l2c_api.h"
+#include "stack/hcidefs.h"
+#include "stack/l2c_api.h"
static tBTM_SEC_DEV_REC *btm_find_oldest_dev (void);
#include <string.h>
//#include <stdio.h>
#include <stddef.h>
-#include "bt_trace.h"
-#include "bt_types.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
//#include "bt_utils.h"
#include "btm_int.h"
-#include "btu.h"
-#include "controller.h"
-#include "hci_layer.h"
-#include "hcimsgs.h"
+#include "stack/btu.h"
+#include "device/controller.h"
+#include "hci/hci_layer.h"
+#include "stack/hcimsgs.h"
#include "l2c_int.h"
//#include "btcore/include/module.h"
-//#include "osi/include/thread.h"
+//#include "osi/include/osi/thread.h"
#if BLE_INCLUDED == TRUE
#include "gatt_int.h"
** Function BTM_WriteVoiceSettings
**
** Description Send HCI Write Voice Settings command.
-** See hcidefs.h for settings bitmask values.
+** See stack/hcidefs.h for settings bitmask values.
**
** Returns
** BTM_SUCCESS Command sent.
#include <stdio.h>
#include <stddef.h>
-#include "alarm.h"
-#include "bt_types.h"
-#include "controller.h"
-#include "hcimsgs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "osi/alarm.h"
+#include "stack/bt_types.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "hcidefs.h"
+#include "stack/hcidefs.h"
#if (defined(SDP_INCLUDED) && SDP_INCLUDED == TRUE)
-#include "sdpdefs.h"
+#include "stack/sdpdefs.h"
#endif
#define BTM_INQ_REPLY_TIMEOUT 3 /* 3 second timeout waiting for responses */
*
******************************************************************************/
-#include "bt_types.h"
-#include "bt_target.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
#include <string.h>
#include "btm_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/* Global BTM control block structure
*/
//#include <stdio.h>
#include <stddef.h>
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
#include "l2c_int.h"
-#include "hcidefs.h"
+#include "stack/hcidefs.h"
//#include "bt_utils.h"
//#include "osi/include/log.h"
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "bt_target.h"
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "hcidefs.h"
+#include "stack/hcidefs.h"
//#include "bt_utils.h"
#if BTM_SCO_INCLUDED == TRUE
#include <stdarg.h>
#include <string.h>
-#include "bt_types.h"
-#include "controller.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "device/controller.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "btm_int.h"
#include "l2c_int.h"
-#include "fixed_queue.h"
-#include "alarm.h"
+#include "osi/fixed_queue.h"
+#include "osi/alarm.h"
#if (BT_USE_TRACES == TRUE && BT_TRACE_VERBOSE == FALSE)
/* needed for sprintf() */
#ifndef BTM_BLE_INT_H
#define BTM_BLE_INT_H
-#include "bt_target.h"
-#include "fixed_queue.h"
-#include "hcidefs.h"
-#include "btm_ble_api.h"
+#include "common/bt_target.h"
+#include "osi/fixed_queue.h"
+#include "stack/hcidefs.h"
+#include "stack/btm_ble_api.h"
#include "btm_int.h"
#if BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE
-#include "smp_api.h"
+#include "stack/smp_api.h"
#endif
#ifndef BTM_INT_H
#define BTM_INT_H
-#include "bt_defs.h"
-#include "bt_target.h"
-#include "hcidefs.h"
+#include "common/bt_defs.h"
+#include "common/bt_target.h"
+#include "stack/hcidefs.h"
-#include "rfcdefs.h"
+#include "stack/rfcdefs.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#if (BLE_INCLUDED == TRUE)
#include "btm_ble_int.h"
#if (SMP_INCLUDED == TRUE)
-#include "smp_api.h"
+#include "stack/smp_api.h"
#endif
#endif
//#include <stdlib.h>
#include <string.h>
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "btu.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/btu.h"
#include "l2c_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
//#include "bt_utils.h"
-#include "controller.h"
-#include "osi.h"
-#include "hci_layer.h"
-#include "bt_trace.h"
+#include "device/controller.h"
+#include "osi/osi.h"
+#include "hci/hci_layer.h"
+#include "common/bt_trace.h"
-#include "thread.h"
+#include "osi/thread.h"
// TODO(zachoverflow): remove this horrible hack
-#include "btu.h"
+#include "stack/btu.h"
extern void btm_process_cancel_complete(UINT8 status, UINT8 mode);
extern void btm_ble_test_command_complete(UINT8 *p);
******************************************************************************/
#include <string.h>
-#include "bt_defs.h"
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "controller.h"
-#include "alarm.h"
-#include "hash_map.h"
-#include "hash_functions.h"
-#include "thread.h"
-#include "mutex.h"
+#include "common/bt_defs.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "device/controller.h"
+#include "osi/alarm.h"
+#include "osi/hash_map.h"
+#include "osi/hash_functions.h"
+#include "osi/thread.h"
+#include "osi/mutex.h"
#include "l2c_int.h"
-#include "dyn_mem.h"
-#include "btu.h"
+#include "stack/dyn_mem.h"
+#include "stack/btu.h"
#include "btm_int.h"
#if SDP_INCLUDED == TRUE
#endif
#if (BLE_INCLUDED == TRUE)
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#include "gatt_int.h"
#if SMP_INCLUDED == TRUE
#include "smp_int.h"
#include <string.h>
-#include "alarm.h"
-#include "thread.h"
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "allocator.h"
-#include "mutex.h"
-#include "btm_api.h"
+#include "osi/alarm.h"
+#include "osi/thread.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "btu.h"
-#include "hash_map.h"
-#include "hcimsgs.h"
+#include "stack/btu.h"
+#include "osi/hash_map.h"
+#include "stack/hcimsgs.h"
#include "l2c_int.h"
-#include "osi.h"
+#include "osi/osi.h"
#if (defined(SDP_INCLUDED) && SDP_INCLUDED == TRUE)
#include "sdpint.h"
#endif
#if (defined(RFCOMM_INCLUDED) && RFCOMM_INCLUDED == TRUE)
-#include "port_api.h"
-#include "port_ext.h"
+#include "stack/port_api.h"
+#include "stack/port_ext.h"
#endif
#if (defined(GAP_INCLUDED) && GAP_INCLUDED == TRUE)
#endif
#if (defined(BTA_INCLUDED) && BTA_INCLUDED == TRUE)
-#include "bta_sys.h"
+#include "bta/bta_sys.h"
#endif
#if (BLE_INCLUDED == TRUE)
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
#include "gap_int.h"
* limitations under the License.
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE && GATTS_INCLUDED == TRUE)
-#include "bt_defs.h"
-#include "allocator.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
#include <string.h>
#include "gap_int.h"
-#include "gap_api.h"
-#include "gattdefs.h"
-#include "gatt_api.h"
+#include "stack/gap_api.h"
+#include "stack/gattdefs.h"
+#include "stack/gatt_api.h"
#include "gatt_int.h"
#include "btm_int.h"
-#include "hcimsgs.h"
-#include "sdpdefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/sdpdefs.h"
#define GAP_CHAR_ICON_SIZE 2
#define GAP_CHAR_DEV_NAME_SIZE 248
******************************************************************************/
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "btu.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/btu.h"
#include "gap_int.h"
-#include "l2cdefs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
#include <string.h>
-#include "mutex.h"
-#include "allocator.h"
+#include "osi/mutex.h"
+#include "osi/allocator.h"
#if GAP_CONN_INCLUDED == TRUE
#include "btm_int.h"
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
#include "gap_int.h"
#ifndef GAP_INT_H
#define GAP_INT_H
-#include "bt_target.h"
-#include "fixed_queue.h"
-#include "gap_api.h"
-#include "gatt_api.h"
+#include "common/bt_target.h"
+#include "osi/fixed_queue.h"
+#include "stack/gap_api.h"
+#include "stack/gatt_api.h"
#define GAP_MAX_BLOCKS 2 /* Concurrent GAP commands pending at a time*/
/* Define the Generic Access Profile control structure */
typedef struct {
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if BLE_INCLUDED == TRUE
#include "gatt_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#define GATT_HDR_FIND_TYPE_VALUE_LEN 21
#define GATT_OP_CODE_SIZE 1
* this file contains GATT interface functions
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if defined(BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE)
-#include "allocator.h"
+#include "osi/allocator.h"
#include <string.h>
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#include "gatt_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "btm_int.h"
-#include "sdpdefs.h"
-#include "sdp_api.h"
+#include "stack/sdpdefs.h"
+#include "stack/sdp_api.h"
/*******************************************************************************
**
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#include "gatt_int.h"
-#include "sdpdefs.h"
+#include "stack/sdpdefs.h"
#if (BLE_INCLUDED == TRUE && GATTS_INCLUDED == TRUE)
* this file contains GATT authentication handling functions
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if BLE_INCLUDED == TRUE
#include <string.h>
#include "gatt_int.h"
-#include "gatt_api.h"
+#include "stack/gatt_api.h"
#include "btm_int.h"
/*******************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if BLE_INCLUDED == TRUE && GATTC_INCLUDED == TRUE
#include <string.h>
-#include "allocator.h"
+#include "osi/allocator.h"
#include "gatt_int.h"
#include "l2c_int.h"
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if BLE_INCLUDED == TRUE && GATTS_INCLUDED == TRUE
-#include "bt_trace.h"
-#include "allocator.h"
+#include "common/bt_trace.h"
+#include "osi/allocator.h"
//#include <stdio.h>
#include <string.h>
#include "gatt_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "btm_int.h"
/********************************************************************************
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if BLE_INCLUDED == TRUE
#include "gatt_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "btm_int.h"
#include "btm_ble_int.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/* Configuration flags. */
#define GATT_L2C_CFG_IND_DONE (1<<0)
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if BLE_INCLUDED == TRUE && GATTS_INCLUDED == TRUE
#include <string.h>
#include "gatt_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "l2c_int.h"
#define GATT_MTU_REQ_MIN_LEN 2
* this file contains GATT utility functions
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if BLE_INCLUDED == TRUE
#include <string.h>
#include <stdio.h>
-#include "l2cdefs.h"
+#include "stack/l2cdefs.h"
#include "gatt_int.h"
-#include "gatt_api.h"
-#include "gattdefs.h"
-#include "sdp_api.h"
+#include "stack/gatt_api.h"
+#include "stack/gattdefs.h"
+#include "stack/sdp_api.h"
#include "btm_int.h"
/* check if [x, y] and [a, b] have overlapping range */
#define GATT_VALIDATE_HANDLE_RANGE(x, y, a, b) (y >= a && x <= b)
#ifndef GATT_INT_H
#define GATT_INT_H
-#include "bt_target.h"
-#include "bt_trace.h"
-#include "gatt_api.h"
-#include "btm_ble_api.h"
-#include "btu.h"
-#include "fixed_queue.h"
+#include "common/bt_target.h"
+#include "common/bt_trace.h"
+#include "stack/gatt_api.h"
+#include "stack/btm_ble_api.h"
+#include "stack/btu.h"
+#include "osi/fixed_queue.h"
#include <string.h>
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "hcidefs.h"
-#include "btu.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/hcidefs.h"
+#include "stack/btu.h"
#include <stddef.h>
#include <string.h>
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "hcidefs.h"
-#include "btu.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/hcidefs.h"
+#include "stack/btu.h"
#include <stddef.h>
#include <string.h>
******************************************************************************/
#ifndef A2D_API_H
#define A2D_API_H
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#if (A2D_INCLUDED == TRUE)
/*****************************************************************************
** constants
#ifndef AVCT_API_H
#define AVCT_API_H
-#include "bt_types.h"
-#include "bt_target.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
/*****************************************************************************
** Constants
#ifndef AVDT_API_H
#define AVDT_API_H
-#include "bt_types.h"
-#include "bt_target.h"
+#include "stack/bt_types.h"
+#include "common/bt_target.h"
/*****************************************************************************
** Constants
#ifndef AVDT_CAPI_H
#define AVDT_CAPI_H
-#include "avdt_api.h"
+#include "stack/avdt_api.h"
/* start AVDTC events here to distinguish from AVDT events */
#define AVDTC_EVT_BEGIN 0x80
******************************************************************************/
#ifndef AVRC_API_H
#define AVRC_API_H
-#include "bt_target.h"
-#include "avct_api.h"
-#include "sdp_api.h"
-#include "avrc_defs.h"
+#include "common/bt_target.h"
+#include "stack/avct_api.h"
+#include "stack/sdp_api.h"
+#include "stack/avrc_defs.h"
#if (AVRC_INCLUDED == TRUE)
/*****************************************************************************
** constants
******************************************************************************/
#ifndef _AVRC_DEFS_H
#define _AVRC_DEFS_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (AVRC_INCLUDED == TRUE)
/*****************************************************************************
#define AVRC_IS_VALID_GROUP(a) ((a <= AVRC_PDU_PREV_GROUP) ? TRUE : FALSE)
-/* Company ID is 24-bit integer We can not use the macros in bt_types.h */
+/* Company ID is 24-bit integer We can not use the macros in stack/bt_types.h */
#define AVRC_CO_ID_TO_BE_STREAM(p, u32) {*(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)(u32); }
#define AVRC_BE_STREAM_TO_CO_ID(u32, p) {u32 = (((UINT32)(*((p) + 2))) + (((UINT32)(*((p) + 1))) << 8) + (((UINT32)(*(p))) << 16)); (p) += 3;}
#ifndef BTM_API_H
#define BTM_API_H
-#include "bt_defs.h"
-#include "bt_target.h"
-#include "hcidefs.h"
+#include "common/bt_defs.h"
+#include "common/bt_target.h"
+#include "stack/hcidefs.h"
#if SDP_INCLUDED == TRUE
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#endif
#if SMP_INCLUDED == TRUE
-#include "smp_api.h"
+#include "stack/smp_api.h"
#endif
/*****************************************************************************
** DEVICE CONTROL and COMMON
** Function BTM_WriteVoiceSettings
**
** Description Send HCI Write Voice Settings command.
-** See hcidefs.h for settings bitmask values.
+** See stack/hcidefs.h for settings bitmask values.
**
** Returns
** BTM_SUCCESS Command sent.
#ifndef BTM_BLE_API_H
#define BTM_BLE_API_H
-#include "bt_defs.h"
-#include "btm_api.h"
-#include "bt_common_types.h"
+#include "common/bt_defs.h"
+#include "stack/btm_api.h"
+#include "common/bt_common_types.h"
#define CHANNEL_MAP_LEN 5
typedef UINT8 tBTM_BLE_CHNL_MAP[CHANNEL_MAP_LEN];
#ifndef BTU_H
#define BTU_H
-#include "bt_target.h"
-#include "bt_defs.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
// HACK(zachoverflow): temporary dark magic
#define BTU_POST_TO_TASK_NO_GOOD_HORRIBLE_HACK 0x1700 // didn't look used in bt_types...here goes nothing
#ifndef GAP_API_H
#define GAP_API_H
-#include "sdpdefs.h"
-#include "profiles_api.h"
-#include "btm_api.h"
-#include "l2c_api.h"
+#include "stack/sdpdefs.h"
+#include "stack/profiles_api.h"
+#include "stack/btm_api.h"
+#include "stack/l2c_api.h"
/*****************************************************************************
** Constants
#ifndef GATT_API_H
#define GATT_API_H
-#include "bt_target.h"
-#include "gattdefs.h"
-#include "btm_ble_api.h"
+#include "common/bt_target.h"
+#include "stack/gattdefs.h"
+#include "stack/btm_ble_api.h"
/*****************************************************************************
** Constants
#ifndef HCIDEFS_H
#define HCIDEFS_H
-#include "bt_target.h"
+#include "common/bt_target.h"
-#include "bt_types.h"
+#include "stack/bt_types.h"
#define HCI_PROTO_VERSION 0x01 /* Version for BT spec 1.1 */
#define HCI_PROTO_VERSION_1_2 0x02 /* Version for BT spec 1.2 */
#ifndef HCIMSGS_H
#define HCIMSGS_H
-#include "bt_target.h"
-#include "hcidefs.h"
-#include "bt_types.h"
+#include "common/bt_target.h"
+#include "stack/hcidefs.h"
+#include "stack/bt_types.h"
void bte_main_hci_send(BT_HDR *p_msg, UINT16 event);
void bte_main_lpm_allow_bt_device_sleep(void);
#ifndef HIDDEFS_H
#define HIDDEFS_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#if (HID_HOST_INCLUDED == TRUE)
#if (SDP_INCLUDED == TRUE)
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#endif ///SDP_INCLUDED == TRUE
/*
** tHID_STATUS: HID result codes, returned by HID and device and host functions.
#ifndef HIDH_API_H
#define HIDH_API_H
-#include "hiddefs.h"
-#include "sdp_api.h"
+#include "stack/hiddefs.h"
+#include "stack/sdp_api.h"
#if (HID_HOST_INCLUDED == TRUE)
/*****************************************************************************
#include <stdbool.h>
-#include "bt_target.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
+#include "common/bt_target.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
/*****************************************************************************
** Constants
#ifndef PORT_API_H
#define PORT_API_H
-#include "bt_target.h"
+#include "common/bt_target.h"
/*****************************************************************************
** Constants and Types
#ifndef PROFILES_API_H
#define PROFILES_API_H
-#include "bt_target.h"
-#include "btm_api.h"
+#include "common/bt_target.h"
+#include "stack/btm_api.h"
/*****************************************************************************
** Constants
#ifndef SDP_API_H
#define SDP_API_H
-#include "bt_target.h"
-#include "sdpdefs.h"
+#include "common/bt_target.h"
+#include "stack/sdpdefs.h"
#if (SDP_INCLUDED == TRUE)
/*****************************************************************************
** Constants
#ifndef SMP_API_H
#define SMP_API_H
-#include "bt_target.h"
+#include "common/bt_target.h"
#define SMP_PIN_CODE_LEN_MAX PIN_CODE_LEN
#define SMP_PIN_CODE_LEN_MIN 6
#include <stdbool.h>
-#include "btm_api.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
-#include "list.h"
-#include "fixed_queue.h"
+#include "stack/btm_api.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
+#include "osi/list.h"
+#include "osi/fixed_queue.h"
#define L2CAP_MIN_MTU 48 /* Minimum acceptable MTU is 48 bytes */
//#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "l2cdefs.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
-#include "btu.h"
-#include "btm_api.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
+#include "osi/allocator.h"
#if (CLASSIC_BT_INCLUDED == TRUE)
/*******************************************************************************
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
-#include "l2cdefs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
-#include "btu.h"
+#include "stack/btu.h"
#include "btm_int.h"
-#include "hcimsgs.h"
-#include "controller.h"
+#include "stack/hcimsgs.h"
+#include "device/controller.h"
#if (BLE_INCLUDED == TRUE)
static BOOLEAN l2cble_start_conn_update (tL2C_LCB *p_lcb);
#include <string.h>
#include <stdio.h>
-#include "bt_target.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "l2cdefs.h"
+#include "common/bt_target.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
#include "btm_int.h"
-#include "btu.h"
-#include "hcimsgs.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "stack/hcimsgs.h"
+#include "osi/allocator.h"
#if (CLASSIC_BT_INCLUDED == TRUE)
/********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "bt_trace.h"
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "l2c_api.h"
+#include "common/bt_trace.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2c_api.h"
#include "l2c_int.h"
-#include "l2cdefs.h"
-#include "btm_api.h"
+#include "stack/l2cdefs.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "btu.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "osi/allocator.h"
#if (CLASSIC_BT_INCLUDED == TRUE)
#include <string.h>
//#include <stdio.h>
-#include "controller.h"
+#include "device/controller.h"
//#include "btcore/include/counter.h"
-#include "bt_types.h"
+#include "stack/bt_types.h"
//#include "bt_utils.h"
-#include "hcimsgs.h"
-#include "l2cdefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
-#include "l2c_api.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/l2c_api.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf);
#include <string.h>
//#include <stdio.h>
-#include "controller.h"
+#include "device/controller.h"
//#include "btcore/include/counter.h"
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "btm_int.h"
-#include "btu.h"
-#include "hcimsgs.h"
-#include "l2c_api.h"
+#include "stack/btu.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2c_api.h"
#include "l2c_int.h"
-#include "l2cdefs.h"
+#include "stack/l2cdefs.h"
//#include "osi/include/log.h"
/********************************************************************************/
#include <string.h>
//#include <stdio.h>
-#include "bt_types.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "l2cdefs.h"
+#include "stack/bt_types.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
#if (L2CAP_UCD_INCLUDED == TRUE)
#include <stdlib.h>
#include <string.h>
-#include "allocator.h"
-#include "controller.h"
-#include "bt_types.h"
-#include "hcimsgs.h"
-#include "l2cdefs.h"
+#include "osi/allocator.h"
+#include "device/controller.h"
+#include "stack/bt_types.h"
+#include "stack/hcimsgs.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
-#include "hcidefs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/hcidefs.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "hcidefs.h"
-#include "allocator.h"
+#include "stack/hcidefs.h"
+#include "osi/allocator.h"
/*******************************************************************************
**
******************************************************************************/
#if (defined(L2CAP_CLIENT_INCLUDED) && L2CAP_CLIENT_INCLUDED == TRUE)
#include <string.h>
-#include "bt_trace.h"
-#include "bt_defs.h"
-#include "bdaddr.h"
-#include "allocator.h"
-#include "buffer.h"
-#include "list.h"
-#include "osi.h"
-#include "l2cap_client.h"
-#include "l2c_api.h"
+#include "common/bt_trace.h"
+#include "common/bt_defs.h"
+#include "device/bdaddr.h"
+#include "osi/allocator.h"
+#include "osi/buffer.h"
+#include "osi/list.h"
+#include "osi/osi.h"
+#include "stack/l2cap_client.h"
+#include "stack/l2c_api.h"
struct l2cap_client_t {
l2cap_client_callbacks_t callbacks;
#ifndef PORT_INT_H
#define PORT_INT_H
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
-#include "fixed_queue.h"
-#include "bt_defs.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
+#include "osi/fixed_queue.h"
+#include "common/bt_defs.h"
/* Local events passed when application event is sent from the api to PORT */
/* ???*/
#ifndef RFC_INT_H
#define RFC_INT_H
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "port_int.h"
/*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
#include "port_int.h"
#include "btm_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "rfc_int.h"
-#include "l2c_api.h"
-#include "sdp_api.h"
-#include "allocator.h"
-#include "mutex.h"
+#include "stack/l2c_api.h"
+#include "stack/sdp_api.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
/* duration of break in 200ms units */
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
#include "btm_int.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "bt_defs.h"
-#include "mutex.h"
-#include "allocator.h"
+#include "common/bt_defs.h"
+#include "osi/mutex.h"
+#include "osi/allocator.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
/*
** Local function definitions
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "l2cdefs.h"
+#include "stack/l2cdefs.h"
#include "btm_int.h"
-#include "btu.h"
-#include "mutex.h"
-#include "allocator.h"
+#include "stack/btu.h"
+#include "osi/mutex.h"
+#include "osi/allocator.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
static const tPORT_STATE default_port_pars = {
******************************************************************************/
#include <stddef.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
#include "port_int.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
#include "rfc_int.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "mutex.h"
-#include "alarm.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
+#include "osi/alarm.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
/*
** Define Callback functions to be called by L2CAP
*
******************************************************************************/
#include <string.h>
-#include "bt_types.h"
-#include "rfcdefs.h"
-#include "l2cdefs.h"
-#include "port_api.h"
+#include "stack/bt_types.h"
+#include "stack/rfcdefs.h"
+#include "stack/l2cdefs.h"
+#include "stack/port_api.h"
#include "port_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "rfc_int.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "mutex.h"
-#include "bt_target.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
+#include "common/bt_target.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
#define L2CAP_SUCCESS 0
*
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "btm_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "port_api.h"
+#include "stack/port_api.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "bt_defs.h"
-#include "allocator.h"
-#include "mutex.h"
+#include "common/bt_defs.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
/********************************************************************************/
*****************************************************************************/
#include <string.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
-#include "l2c_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
+#include "stack/l2c_api.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "bt_defs.h"
+#include "common/bt_defs.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
******************************************************************************/
#include <stddef.h>
-#include "bt_target.h"
-#include "rfcdefs.h"
-#include "port_api.h"
-#include "l2c_api.h"
+#include "common/bt_target.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
+#include "stack/l2c_api.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "mutex.h"
-#include "allocator.h"
+#include "osi/mutex.h"
+#include "osi/allocator.h"
#if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)
/*******************************************************************************
*
*****************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
-#include "btm_api.h"
+#include "stack/btm_api.h"
#include "btm_int.h"
-#include "rfcdefs.h"
-#include "port_api.h"
-#include "port_ext.h"
+#include "stack/rfcdefs.h"
+#include "stack/port_api.h"
+#include "stack/port_ext.h"
#include "port_int.h"
#include "rfc_int.h"
-#include "btu.h"
-#include "bt_defs.h"
+#include "stack/btu.h"
+#include "common/bt_defs.h"
-#include "allocator.h"
-#include "mutex.h"
+#include "osi/allocator.h"
+#include "osi/mutex.h"
#include <string.h>
#ifndef SDP_INT_H
#define SDP_INT_H
-#include "bt_target.h"
-#include "bt_defs.h"
-#include "sdp_api.h"
-#include "l2c_api.h"
+#include "common/bt_target.h"
+#include "common/bt_defs.h"
+#include "stack/sdp_api.h"
+#include "stack/l2c_api.h"
#if (SDP_INCLUDED == TRUE)
/* Continuation length - we use a 2-byte offset */
#include <string.h>
//#include <stdio.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "bt_defs.h"
-#include "sdp_api.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "common/bt_defs.h"
+#include "stack/sdp_api.h"
#include "sdpint.h"
-#include "btu.h"
+#include "stack/btu.h"
#if (SDP_INCLUDED == TRUE)
/**********************************************************************
#include <string.h>
#include <stdio.h>
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#include "sdpint.h"
#if (SDP_INCLUDED == TRUE)
#include <string.h>
#include <stdio.h>
-#include "bt_target.h"
-#include "allocator.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-#include "sdp_api.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+#include "stack/sdp_api.h"
#include "sdpint.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
#ifndef SDP_DEBUG_RAW
#include <string.h>
//#include <stdio.h>
-#include "bt_target.h"
-#include "allocator.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
-#include "l2c_api.h"
-#include "l2cdefs.h"
+#include "stack/l2c_api.h"
+#include "stack/l2cdefs.h"
-#include "btu.h"
-#include "btm_api.h"
+#include "stack/btu.h"
+#include "stack/btm_api.h"
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#include "sdpint.h"
#if (SDP_INCLUDED == TRUE)
#include <string.h>
//#include <stdio.h>
-#include "bt_types.h"
-#include "allocator.h"
-#include "btu.h"
-#include "bt_defs.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
-
-#include "sdp_api.h"
+#include "stack/bt_types.h"
+#include "osi/allocator.h"
+#include "stack/btu.h"
+#include "common/bt_defs.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
+
+#include "stack/sdp_api.h"
#include "sdpint.h"
#include <stdlib.h>
#include <string.h>
-#include "allocator.h"
+#include "osi/allocator.h"
-#include "bt_defs.h"
+#include "common/bt_defs.h"
-#include "bt_types.h"
+#include "stack/bt_types.h"
-#include "l2cdefs.h"
-#include "hcidefs.h"
-#include "hcimsgs.h"
+#include "stack/l2cdefs.h"
+#include "stack/hcidefs.h"
+#include "stack/hcimsgs.h"
-#include "sdp_api.h"
+#include "stack/sdp_api.h"
#include "sdpint.h"
-#include "btu.h"
+#include "stack/btu.h"
#if (SDP_INCLUDED == TRUE)
static const UINT8 sdp_base_uuid[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
#include <stdlib.h>
/* add the target configuration to allow using internal data types and compilation options */
-#include "bt_target.h"
+#include "common/bt_target.h"
/* define if you have fast 32-bit types on your system */
#if 1
******************************************************************************/
#pragma once
-#include "bt_types.h"
+#include "stack/bt_types.h"
/* Type definitions */
typedef unsigned long DWORD;
#if (BLE_INCLUDED == TRUE && SMP_INCLUDED == TRUE)
-#include "btu.h"
-#include "btm_ble_api.h"
-#include "btm_api.h"
-#include "smp_api.h"
+#include "stack/btu.h"
+#include "stack/btm_ble_api.h"
+#include "stack/btm_api.h"
+#include "stack/smp_api.h"
#define SMP_MODEL_ENCRYPTION_ONLY 0 /* Legacy mode, Just Works model */
#define SMP_MODEL_PASSKEY 1 /* Legacy mode, Passkey Entry model, this side inputs the key */
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
#include "p_256_ecc_pp.h"
#include "p_256_multprecision.h"
******************************************************************************/
#include <string.h>
-#include "interop.h"
-#include "bt_target.h"
+#include "device/interop.h"
+#include "common/bt_target.h"
#include "btm_int.h"
-#include "l2c_api.h"
+#include "stack/l2c_api.h"
#include "smp_int.h"
//#include "utils/include/bt_utils.h"
******************************************************************************/
#include <string.h>
-#include "bt_target.h"
+#include "common/bt_target.h"
//#include "bt_utils.h"
#if SMP_INCLUDED == TRUE
#include "smp_int.h"
-#include "smp_api.h"
-#include "l2cdefs.h"
+#include "stack/smp_api.h"
+#include "stack/l2cdefs.h"
#include "l2c_int.h"
#include "btm_int.h"
-#include "hcimsgs.h"
+#include "stack/hcimsgs.h"
-#include "btu.h"
+#include "stack/btu.h"
#include "p_256_ecc_pp.h"
-#include "allocator.h"
+#include "osi/allocator.h"
/*******************************************************************************
**
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#include <string.h>
#include "smp_int.h"
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if SMP_INCLUDED == TRUE
// #include <stdio.h>
#include <string.h>
-#include "btm_ble_api.h"
+#include "stack/btm_ble_api.h"
#include "smp_int.h"
-#include "hcimsgs.h"
+#include "stack/hcimsgs.h"
typedef struct {
UINT8 *text;
* This file contains security manager protocol utility functions
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if SMP_INCLUDED == TRUE
#if SMP_DEBUG == TRUE
#endif
#include <string.h>
//#include "bt_utils.h"
-#include "btm_ble_api.h"
+#include "stack/btm_ble_api.h"
#include "smp_int.h"
#include "btm_int.h"
#include "btm_ble_int.h"
-#include "hcimsgs.h"
+#include "stack/hcimsgs.h"
#include "aes.h"
#include "p_256_ecc_pp.h"
-#include "controller.h"
+#include "device/controller.h"
#ifndef SMP_MAX_ENC_REPEAT
#define SMP_MAX_ENC_REPEAT 3
*
******************************************************************************/
-#include "bt_target.h"
-#include "allocator.h"
+#include "common/bt_target.h"
+#include "osi/allocator.h"
#if SMP_INCLUDED == TRUE
#include <string.h>
-#include "btm_ble_api.h"
-#include "l2c_api.h"
+#include "stack/btm_ble_api.h"
+#include "stack/l2c_api.h"
#include "smp_int.h"
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if SMP_INCLUDED == TRUE
* This file contains functions for the SMP L2CAP utility functions
*
******************************************************************************/
-#include "bt_target.h"
+#include "common/bt_target.h"
#if SMP_INCLUDED == TRUE
-#include "bt_types.h"
+#include "stack/bt_types.h"
//#include "bt_utils.h"
#include <string.h>
//#include <ctype.h>
-#include "hcidefs.h"
-#include "btm_ble_api.h"
-#include "l2c_api.h"
+#include "stack/hcidefs.h"
+#include "stack/btm_ble_api.h"
+#include "stack/l2c_api.h"
#include "l2c_int.h"
#include "smp_int.h"
-#include "controller.h"
+#include "device/controller.h"
#include "btm_int.h"
#define SMP_PAIRING_REQ_SIZE 7
ifdef CONFIG_BLUEDROID_ENABLED
-COMPONENT_ADD_INCLUDEDIRS += bluedroid/bta/include \
- bluedroid/bta/sys/include \
- bluedroid/btcore/include \
- bluedroid/device/include \
- bluedroid/gki/include \
- bluedroid/hci/include \
- bluedroid/osi/include \
- bluedroid/utils/include \
- bluedroid/external/sbc/decoder/include \
- bluedroid/external/sbc/encoder/include \
- bluedroid/btc/core/include \
- bluedroid/btc/profile/esp/blufi/include \
- bluedroid/btc/profile/esp/include \
- bluedroid/btc/profile/std/gatt/include \
- bluedroid/btc/profile/std/gap/include \
- bluedroid/btc/profile/std/a2dp/include \
- bluedroid/btc/profile/std/include \
- bluedroid/btc/include \
- bluedroid/btif/include \
- bluedroid/stack/btm/include \
- bluedroid/stack/btu/include \
- bluedroid/stack/gap/include \
- bluedroid/stack/gatt/include \
- bluedroid/stack/hcic/include \
- bluedroid/stack/l2cap/include \
- bluedroid/stack/sdp/include \
- bluedroid/stack/smp/include \
- bluedroid/stack/avct/include \
- bluedroid/stack/avrc/include \
- bluedroid/stack/avdt/include \
- bluedroid/stack/a2dp/include \
- bluedroid/stack/rfcomm/include \
- bluedroid/stack/include \
- bluedroid/utils/include \
- bluedroid/api/include \
- bluedroid/include \
+COMPONENT_PRIV_INCLUDEDIRS += bluedroid/bta/include \
+ bluedroid/bta/ar/include \
+ bluedroid/bta/av/include \
+ bluedroid/bta/dm/include \
+ bluedroid/bta/gatt/include \
+ bluedroid/bta/hh/include \
+ bluedroid/bta/jv/include \
+ bluedroid/bta/sdp/include \
+ bluedroid/bta/sys/include \
+ bluedroid/btcore/include \
+ bluedroid/device/include \
+ bluedroid/gki/include \
+ bluedroid/hci/include \
+ bluedroid/osi/include \
+ bluedroid/utils/include \
+ bluedroid/external/sbc/decoder/include \
+ bluedroid/external/sbc/encoder/include \
+ bluedroid/btc/core/include \
+ bluedroid/btc/profile/esp/blufi/include \
+ bluedroid/btc/profile/esp/include \
+ bluedroid/btc/profile/std/gatt/include \
+ bluedroid/btc/profile/std/gap/include \
+ bluedroid/btc/profile/std/a2dp/include \
+ bluedroid/btc/profile/std/include \
+ bluedroid/btc/include \
+ bluedroid/btif/include \
+ bluedroid/stack/btm/include \
+ bluedroid/stack/btu/include \
+ bluedroid/stack/gap/include \
+ bluedroid/stack/gatt/include \
+ bluedroid/stack/hcic/include \
+ bluedroid/stack/l2cap/include \
+ bluedroid/stack/sdp/include \
+ bluedroid/stack/smp/include \
+ bluedroid/stack/avct/include \
+ bluedroid/stack/avrc/include \
+ bluedroid/stack/avdt/include \
+ bluedroid/stack/a2dp/include \
+ bluedroid/stack/rfcomm/include \
+ bluedroid/stack/include \
+ bluedroid/utils/include \
+ bluedroid/common/include
-COMPONENT_SRCDIRS += bluedroid/bta/dm \
- bluedroid/bta/gatt \
- bluedroid/bta/hh \
- bluedroid/bta/sdp \
- bluedroid/bta/av \
- bluedroid/bta/ar \
- bluedroid/bta/sys \
- bluedroid/bta/jv \
- bluedroid/bta \
- bluedroid/btcore \
- bluedroid/btif \
- bluedroid/device \
- bluedroid/gki \
- bluedroid/hci \
- bluedroid/main \
- bluedroid/osi \
- bluedroid/external/sbc/decoder/srce \
- bluedroid/external/sbc/encoder/srce \
- bluedroid/btc/core \
- bluedroid/btc/profile/esp/blufi \
- bluedroid/btc/profile/std/gap \
- bluedroid/btc/profile/std/gatt \
- bluedroid/btc/profile/std/a2dp \
- bluedroid/btc/profile/std/avrc \
- bluedroid/btc/profile/std/spp \
- bluedroid/btc/profile \
- bluedroid/stack/btm \
- bluedroid/stack/btu \
- bluedroid/stack/gap \
- bluedroid/stack/gatt \
- bluedroid/stack/hcic \
- bluedroid/stack/include \
- bluedroid/stack/l2cap \
- bluedroid/stack/sdp \
- bluedroid/stack/smp \
- bluedroid/stack/avct \
- bluedroid/stack/avrc \
- bluedroid/stack/avdt \
- bluedroid/stack/a2dp \
- bluedroid/stack/rfcomm \
- bluedroid/stack \
- bluedroid/utils \
- bluedroid/api \
- bluedroid \
+COMPONENT_ADD_INCLUDEDIRS += bluedroid/api/include/api
+
+COMPONENT_SRCDIRS += bluedroid/bta/dm \
+ bluedroid/bta/gatt \
+ bluedroid/bta/hh \
+ bluedroid/bta/sdp \
+ bluedroid/bta/av \
+ bluedroid/bta/ar \
+ bluedroid/bta/sys \
+ bluedroid/bta/jv \
+ bluedroid/bta \
+ bluedroid/btcore \
+ bluedroid/btif \
+ bluedroid/device \
+ bluedroid/gki \
+ bluedroid/hci \
+ bluedroid/main \
+ bluedroid/osi \
+ bluedroid/external/sbc/decoder/srce \
+ bluedroid/external/sbc/encoder/srce \
+ bluedroid/btc/core \
+ bluedroid/btc/profile/esp/blufi \
+ bluedroid/btc/profile/std/gap \
+ bluedroid/btc/profile/std/gatt \
+ bluedroid/btc/profile/std/a2dp \
+ bluedroid/btc/profile/std/avrc \
+ bluedroid/btc/profile/std/spp \
+ bluedroid/btc/profile \
+ bluedroid/stack/btm \
+ bluedroid/stack/btu \
+ bluedroid/stack/gap \
+ bluedroid/stack/gatt \
+ bluedroid/stack/hcic \
+ bluedroid/stack/include \
+ bluedroid/stack/l2cap \
+ bluedroid/stack/sdp \
+ bluedroid/stack/smp \
+ bluedroid/stack/avct \
+ bluedroid/stack/avrc \
+ bluedroid/stack/avdt \
+ bluedroid/stack/a2dp \
+ bluedroid/stack/rfcomm \
+ bluedroid/stack \
+ bluedroid/utils \
+ bluedroid/api \
+ bluedroid
endif
../../components/esp32/include/esp_mesh.h \
## Bluetooth - API Reference
## Controller && VHCI
- ../../components/bt/include/bt.h \
+ ../../components/bt/include/esp_bt.h \
## Bluetooth COMMON
## Issue with __attribute__
- ../../components/bt/bluedroid/api/include/esp_bt_defs.h \
- ../../components/bt/bluedroid/api/include/esp_bt_main.h \
- ../../components/bt/bluedroid/api/include/esp_bt_device.h \
+ ../../components/bt/bluedroid/api/include/api/esp_bt_defs.h \
+ ../../components/bt/bluedroid/api/include/api/esp_bt_main.h \
+ ../../components/bt/bluedroid/api/include/api/esp_bt_device.h \
## Bluetooth LE
- ../../components/bt/bluedroid/api/include/esp_gap_ble_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_gap_ble_api.h \
## Issue with __attribute__
- ../../components/bt/bluedroid/api/include/esp_gatt_defs.h \
- ../../components/bt/bluedroid/api/include/esp_gatts_api.h \
- ../../components/bt/bluedroid/api/include/esp_gattc_api.h \
- ../../components/bt/bluedroid/api/include/esp_blufi_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_gatt_defs.h \
+ ../../components/bt/bluedroid/api/include/api/esp_gatts_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_gattc_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_blufi_api.h \
## Bluetooth Classic
- ../../components/bt/bluedroid/api/include/esp_gap_bt_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_gap_bt_api.h \
## Issue with __attribute__
- ../../components/bt/bluedroid/api/include/esp_a2dp_api.h \
- ../../components/bt/bluedroid/api/include/esp_avrc_api.h \
- ../../components/bt/bluedroid/api/include/esp_spp_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_a2dp_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_avrc_api.h \
+ ../../components/bt/bluedroid/api/include/api/esp_spp_api.h \
##
## Ethernet - API Reference
##
API Reference
-------------
-.. include:: /_build/inc/bt.inc
+.. include:: /_build/inc/esp_bt.inc
.measured_power = 0xC5
};
-BOOLEAN esp_ble_is_ibeacon_packet (uint8_t *adv_data, uint8_t adv_data_len){
- BOOLEAN result = FALSE;
+bool esp_ble_is_ibeacon_packet (uint8_t *adv_data, uint8_t adv_data_len){
+ bool result = false;
if ((adv_data != NULL) && (adv_data_len == 0x1E)){
if (!memcmp(adv_data, (uint8_t*)&ibeacon_common_head, sizeof(ibeacon_common_head))){
- result = TRUE;
+ result = true;
}
}
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
-#include "controller.h"
#include "esp_gap_ble_api.h"
#include "esp_gattc_api.h"
/* Constant part of iBeacon data */
extern esp_ble_ibeacon_head_t ibeacon_common_head;
-BOOLEAN esp_ble_is_ibeacon_packet (uint8_t *adv_data, uint8_t adv_data_len);
+bool esp_ble_is_ibeacon_packet (uint8_t *adv_data, uint8_t adv_data_len);
esp_err_t esp_ble_config_ibeacon_data (esp_ble_ibeacon_vendor_t *vendor_config, esp_ble_ibeacon_t *ibeacon_adv_data);
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
-#include "controller.h"
#include "nvs_flash.h"
#include "esp_bt.h"
#include "esp_gattc_api.h"
#include "esp_gatt_defs.h"
#include "esp_bt_main.h"
+#include "esp_bt_defs.h"
#include "esp_ibeacon_api.h"
-
+#include "esp_log.h"
+#include "freertos/FreeRTOS.h"
static const char* DEMO_TAG = "IBEACON_DEMO";
extern esp_ble_ibeacon_vendor_t vendor_config;
if (esp_ble_is_ibeacon_packet(scan_result->scan_rst.ble_adv, scan_result->scan_rst.adv_data_len)){
esp_ble_ibeacon_t *ibeacon_data = (esp_ble_ibeacon_t*)(scan_result->scan_rst.ble_adv);
ESP_LOGI(DEMO_TAG, "----------iBeacon Found----------");
- esp_log_buffer_hex("IBEACON_DEMO: Device address:", scan_result->scan_rst.bda, BD_ADDR_LEN );
+ esp_log_buffer_hex("IBEACON_DEMO: Device address:", scan_result->scan_rst.bda, ESP_BD_ADDR_LEN );
esp_log_buffer_hex("IBEACON_DEMO: Proximity UUID:", ibeacon_data->ibeacon_vendor.proximity_uuid, ESP_UUID_LEN_128);
uint16_t major = ENDIAN_CHANGE_U16(ibeacon_data->ibeacon_vendor.major);
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
-#include "controller.h"
#include "driver/uart.h"
#include "esp_bt.h"
#include "esp_gatt_defs.h"
#include "esp_bt_main.h"
#include "esp_system.h"
-#include "btc_main.h"
#include "esp_gatt_common_api.h"
+#include "esp_log.h"
+#include "freertos/FreeRTOS.h"
#define GATTC_TAG "GATTC_SPP_DEMO"
#define PROFILE_NUM 1
#include <stdio.h>
#include "nvs.h"
#include "nvs_flash.h"
-#include "controller.h"
#include "esp_bt.h"
#include "esp_gap_ble_api.h"
#include "esp_gatt_defs.h"
#include "esp_bt_main.h"
#include "esp_gatt_common_api.h"
+#include "esp_log.h"
+#include "freertos/FreeRTOS.h"
#define GATTC_TAG "GATTC_DEMO"
#define REMOTE_SERVICE_UUID 0x00FF
#include <stdio.h>
#include "nvs.h"
#include "nvs_flash.h"
-#include "controller.h"
#include "esp_bt.h"
#include "esp_gap_ble_api.h"
#include "esp_gatt_defs.h"
#include "esp_bt_main.h"
#include "esp_gatt_common_api.h"
+#include "esp_log.h"
+#include "freertos/FreeRTOS.h"
#define GATTC_TAG "SEC_GATTC_DEMO"
#define REMOTE_SERVICE_UUID 0x1809
#include <stdio.h>
#include "nvs.h"
#include "nvs_flash.h"
-#include "controller.h"
#include "esp_bt.h"
#include "esp_gap_ble_api.h"
#include "esp_gatt_defs.h"
#include "esp_bt_main.h"
#include "esp_gatt_common_api.h"
+#include "esp_log.h"
+#include "freertos/FreeRTOS.h"
#define GATTC_TAG "GATTC_MULTIPLE_DEMO"
#define REMOTE_SERVICE_UUID 0x00FF