mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-18 07:58:13 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
284
mico-os/libraries/bluetooth/dual_mode/buildcfg.h
Normal file
284
mico-os/libraries/bluetooth/dual_mode/buildcfg.h
Normal file
@@ -0,0 +1,284 @@
|
||||
/**
|
||||
* UNPUBLISHED PROPRIETARY SOURCE CODE
|
||||
* Copyright (c) 2016 MXCHIP Inc.
|
||||
*
|
||||
* The contents of this file may not be disclosed to third parties, copied or
|
||||
* duplicated in any form, in whole or in part, without the prior written
|
||||
* permission of MXCHIP Corporation.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "data_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define BTEWICED TRUE
|
||||
|
||||
#if 1
|
||||
//oscar++
|
||||
#define BTM_DEFAULT_AUTH_REQ BTM_AUTH_SPGB_NO //oscar
|
||||
//#define HCI_DEFAULT_INACT_TOUT 11200 //7sec (11200*0.625) for minray
|
||||
//oscar--
|
||||
#endif
|
||||
|
||||
#define BTM_INCLUDED TRUE # Makefile only
|
||||
#define BTM_CMD_POOL_ID GKI_POOL_ID_1
|
||||
#define BTM_CLB_INCLUDED FALSE
|
||||
#define BTM_CLB_RX_INCLUDED FALSE
|
||||
#define BTM_TBFC_INCLUDED FALSE
|
||||
#define BTM_SCO_INCLUDED FALSE
|
||||
#define BTM_SCO_HCI_INCLUDED FALSE
|
||||
#define BTM_INQ_DB_INCLUDED FALSE
|
||||
#define BTM_BUSY_LEVEL_CHANGE_INCLUDED FALSE
|
||||
#define BTM_ALLOW_CONN_IF_NONDISCOVER TRUE
|
||||
#define BTM_MAX_REM_BD_NAME_LEN 10
|
||||
#define BTM_DUMO_ADDR_CENTRAL_ENABLED FALSE
|
||||
#define BTM_APP_DEV_INIT bte_post_reset
|
||||
#define BTM_INTERNAL_LINKKEY_STORAGE_INCLUDED TRUE
|
||||
#define BTM_BLE_PRIVACY_SPT TRUE
|
||||
#define BTM_USE_CONTROLLER_PRIVATE_ADDRESS FALSE
|
||||
#define BTM_BLE_HOST_ADDR_RESOLUTION FALSE
|
||||
#define BTM_PCM2_INCLUDED FALSE
|
||||
#define BTM_COEX_INCLUDED FALSE
|
||||
#define BTM_N2BT_INCLUDED FALSE
|
||||
|
||||
#define BTU_INCLUDED TRUE # Makefile only
|
||||
#define BTUTHIN_INCLUDED FALSE # Makefile only
|
||||
#define BTU_BTC_SNK_INCLUDED FALSE
|
||||
#define BTU_STACK_LITE_ENABLED FALSE
|
||||
#define BTU_DYNAMIC_CB_INCLUDED TRUE
|
||||
#define BTU_MUTEX_INCLUDED TRUE
|
||||
|
||||
#define L2CAP_INCLUDED TRUE
|
||||
#define L2CAP_CMD_POOL_ID GKI_POOL_ID_1
|
||||
#define L2CAP_FCR_INCLUDED FALSE
|
||||
#define L2CAP_UCD_INCLUDED FALSE
|
||||
#define L2CAP_WAKE_PARKED_LINK FALSE
|
||||
#define L2CAP_NON_FLUSHABLE_PB_INCLUDED FALSE
|
||||
#define L2CAP_ROUND_ROBIN_CHANNEL_SERVICE FALSE
|
||||
#define L2CAP_MTU_SIZE ((UINT16)(HCI_ACL_POOL_BUF_SIZE - BT_HDR_SIZE - 8)) /* ACL bufsize minus BT_HDR, and l2cap/hci packet headers */
|
||||
#define L2CAP_LE_COC_INCLUDED TRUE
|
||||
|
||||
#define RFCOMM_INCLUDED TRUE
|
||||
#define RFCOMM_USE_EXTERNAL_SCN TRUE
|
||||
#define RFCOMM_CMD_POOL_ID GKI_POOL_ID_1
|
||||
#define RFCOMM_DATA_POOL_ID GKI_POOL_ID_2
|
||||
#define MAX_RFC_PORTS (p_btm_cfg_settings->rfcomm_cfg.max_ports)
|
||||
#define MAX_BD_CONNECTIONS (p_btm_cfg_settings->rfcomm_cfg.max_links)
|
||||
#define PORT_RX_CRITICAL_WM ((UINT32)(L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)*PORT_RX_BUF_CRITICAL_WM)
|
||||
#define PORT_RX_LOW_WM ((UINT32)(L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)*PORT_RX_BUF_LOW_WM)
|
||||
#define PORT_RX_HIGH_WM ((UINT32)(L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)*PORT_RX_BUF_HIGH_WM)
|
||||
#define PORT_RX_BUF_LOW_WM 2
|
||||
#define PORT_RX_BUF_HIGH_WM 3
|
||||
#define PORT_RX_BUF_CRITICAL_WM 5
|
||||
#define PORT_TX_HIGH_WM ((UINT32)(L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)*PORT_TX_BUF_HIGH_WM)
|
||||
#define PORT_TX_CRITICAL_WM ((UINT32)(L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)*PORT_TX_BUF_CRITICAL_WM)
|
||||
#define PORT_TX_BUF_HIGH_WM 3
|
||||
#define PORT_TX_BUF_CRITICAL_WM 5
|
||||
#define PORT_CREDIT_RX_LOW 2
|
||||
#define PORT_CREDIT_RX_MAX 3
|
||||
|
||||
/* HID definitions */
|
||||
#define HID_DEV_INCLUDED FALSE
|
||||
#define HID_DEV_MAX_DESCRIPTOR_SIZE 200
|
||||
#define HID_DEV_SET_CONN_MODE FALSE
|
||||
|
||||
/* AVDT/A2DP/AVRC definitions */
|
||||
#define A2D_INCLUDED FALSE
|
||||
#define A2D_SBC_INCLUDED FALSE
|
||||
#define A2D_M12_INCLUDED FALSE
|
||||
#define A2D_M24_INCLUDED FALSE
|
||||
#define AVDT_INCLUDED FALSE
|
||||
#define AVDT_REPORTING FALSE
|
||||
#define AVDT_MULTIPLEXING FALSE
|
||||
#define AVDT_NUM_LINKS (p_btm_cfg_settings->avdt_cfg.max_links)
|
||||
#define AVDT_CMD_POOL_ID GKI_POOL_ID_1
|
||||
#define AVDT_DATA_POOL_ID GKI_POOL_ID_3
|
||||
#define AVDT_DATA_POOL_SIZE GKI_BUF3_SIZE
|
||||
|
||||
#define AVRC_INCLUDED FALSE
|
||||
#define AVCT_INCLUDED FALSE
|
||||
#define AVCT_NUM_LINKS (p_btm_cfg_settings->avrc_cfg.max_links)
|
||||
#define AVCT_NUM_CONN (avct_cb.num_conn)
|
||||
#define AVRC_SEC_MASK (p_btm_cfg_settings->security_requirement_mask)
|
||||
#define AVRC_CONTROL_MTU (L2CAP_MTU_SIZE)
|
||||
#define AVRC_BROWSE_MTU (L2CAP_MTU_SIZE)
|
||||
|
||||
#define GATT_FIXED_DB TRUE
|
||||
#define GATTS_APPU_USE_GATT_TRACE FALSE
|
||||
#define GATT_MAX_APPS 4
|
||||
#define GATT_MAX_SR_PROFILES 3
|
||||
#define GATT_MAX_PHY_CHANNEL (GATT_CL_MAX_LCB + GATT_MAX_SCCB)
|
||||
#define GATT_MAX_ATTR_LEN (p_btm_cfg_settings->gatt_cfg.max_attr_len)
|
||||
#define GATT_MAX_MTU_SIZE 517
|
||||
#define GATT_CL_MAX_LCB (p_btm_cfg_settings->gatt_cfg.client_max_links)
|
||||
#define GATT_MAX_SCCB (p_btm_cfg_settings->gatt_cfg.server_max_links)
|
||||
#define GATTP_TRANSPORT_SUPPORTED GATT_TRANSPORT_LE //GATT_TRANSPORT_LE_BR_EDR
|
||||
#define GATTC_NOTIF_TIMEOUT 3
|
||||
#define GATT_OVER_BREDR_INCLUDED FALSE
|
||||
|
||||
#define SIM_ACCESS_INCLUDED FALSE
|
||||
#define SAP_SERVER_INCLUDED FALSE
|
||||
#define SAP_CLIENT_INCLUDED FALSE
|
||||
|
||||
|
||||
|
||||
#define BLE_INCLUDED TRUE
|
||||
|
||||
#define SMP_INCLUDED TRUE
|
||||
#define GAP_INCLUDED TRUE
|
||||
#define SMP_HOST_ENCRYPT_INCLUDED TRUE
|
||||
#define SMP_LE_SC_INCLUDED TRUE
|
||||
#define SMP_LE_SC_OOB_INCLUDED FALSE
|
||||
#define ATT_DEBUG FALSE
|
||||
#define SMP_DEBUG FALSE
|
||||
#define BLE_BRCM_INCLUDED TRUE
|
||||
#define BLE_BRCM_MULTI_ADV_INCLUDED FALSE
|
||||
#define BLE_DATA_LEN_EXT_INCLUDED TRUE
|
||||
#define BLE_LLT_INCLUDED TRUE
|
||||
#define SMP_CONFORMANCE_TESTING FALSE
|
||||
|
||||
#define AMP_INCLUDED FALSE
|
||||
#define GPS_INCLUDED FALSE
|
||||
|
||||
#define GKI_NUM_FIXED_BUF_POOLS MICO_BT_CFG_NUM_BUF_POOLS
|
||||
#define GKI_NUM_TOTAL_BUF_POOLS MICO_BT_CFG_NUM_BUF_POOLS
|
||||
#define GKI_BUF0_SIZE (p_btm_cfg_buf_pools[GKI_POOL_ID_0].buf_size)
|
||||
#define GKI_BUF0_MAX (p_btm_cfg_buf_pools[GKI_POOL_ID_0].buf_count)
|
||||
#define GKI_BUF1_SIZE (p_btm_cfg_buf_pools[GKI_POOL_ID_1].buf_size)
|
||||
#define GKI_BUF1_MAX (p_btm_cfg_buf_pools[GKI_POOL_ID_1].buf_count)
|
||||
#define GKI_BUF2_SIZE (p_btm_cfg_buf_pools[GKI_POOL_ID_2].buf_size)
|
||||
#define GKI_BUF2_MAX (p_btm_cfg_buf_pools[GKI_POOL_ID_2].buf_count)
|
||||
#define GKI_BUF3_SIZE (p_btm_cfg_buf_pools[GKI_POOL_ID_3].buf_size)
|
||||
#define GKI_BUF3_MAX (p_btm_cfg_buf_pools[GKI_POOL_ID_3].buf_count)
|
||||
#define GKI_DYNAMIC_POOL_CFG TRUE
|
||||
#define GKI_DYNAMIC_MEMORY FALSE
|
||||
#define GKI_USE_DYNAMIC_BUFFERS TRUE
|
||||
|
||||
|
||||
|
||||
#define HCIC_INCLUDED TRUE
|
||||
#define HCI_CMD_POOL_ID GKI_POOL_ID_1
|
||||
#define HCI_CMD_POOL_BUF_SIZE (p_btm_cfg_buf_pools[HCI_CMD_POOL_ID].buf_size)
|
||||
#define HCI_ACL_POOL_ID GKI_POOL_ID_2
|
||||
#define HCI_ACL_POOL_BUF_SIZE (p_btm_cfg_buf_pools[HCI_ACL_POOL_ID].buf_size)
|
||||
#define HCI_SCO_POOL_ID GKI_POOL_ID_2
|
||||
#define HCI_USE_VARIABLE_SIZE_CMD_BUF TRUE
|
||||
|
||||
#define HCISU_H4_INCLUDED TRUE
|
||||
#define HCILP_INCLUDED TRUE
|
||||
#define HCILP_SLEEP_MODE 0
|
||||
#define H4IBSS_INCLUDED FALSE
|
||||
#define H4IBSS_DEBUG FALSE
|
||||
|
||||
#define SLIP_INCLUDED FALSE
|
||||
#define SLIP_STATIS_INCLUDED FALSE
|
||||
#define SLIP_SW_FLOW_CTRL TRUE //FALSE
|
||||
#define BT_TRACE_SLIP FALSE
|
||||
#define SLIP_SLEEP_TO 5000
|
||||
#define SLIP_HOST_SLIDING_WINDOW_SIZE 7
|
||||
|
||||
#define BTM_INQ_DB_SIZE 1
|
||||
#define BTM_SEC_MAX_DEVICE_RECORDS (p_btm_cfg_settings->max_simultaneous_links)
|
||||
#if !defined(BTM_USE_CONTROLLER_PRIVATE_ADDRESS) || (BTM_USE_CONTROLLER_PRIVATE_ADDRESS == FALSE)
|
||||
#define BTM_SEC_HOST_PRIVACY_ADDR_RESOLUTION_TABLE_SIZE (p_btm_cfg_settings->addr_resolution_db_size) //william, 50 oscar
|
||||
#endif
|
||||
#define BTM_SEC_MAX_SERVICE_RECORDS 4
|
||||
#define BTM_SEC_SERVICE_NAME_LEN 0
|
||||
#define BTM_MAX_LOC_BD_NAME_LEN 0
|
||||
#define BTM_MAX_PM_RECORDS 1
|
||||
#define BTM_MAX_VSE_CALLBACKS 1
|
||||
#define BTM_BLE_MAX_BG_CONN_DEV_NUM 2
|
||||
#define BTM_OOB_INCLUDED FALSE
|
||||
#define BTM_BR_SC_INCLUDED FALSE
|
||||
#define BTM_CROSS_TRANSP_KEY_DERIVATION FALSE
|
||||
#define BTM_PWR_MGR_INCLUDED FALSE
|
||||
#define BT_BRCM_VS_INCLUDED TRUE
|
||||
|
||||
#define BTTRC_INCLUDED FALSE
|
||||
#define BTTRC_PARSER_INCLUDED FALSE
|
||||
#define MAX_TRACE_RAM_SIZE 10
|
||||
|
||||
#define SDP_INCLUDED TRUE
|
||||
#define SDP_CLIENT_ENABLED TRUE
|
||||
#define SDP_SERVER_ENABLED TRUE
|
||||
#define SDP_POOL_ID GKI_POOL_ID_2
|
||||
#define SDP_MAX_CONNECTIONS 1
|
||||
#define SDP_MAX_RECORDS 3
|
||||
#define SDP_MAX_REC_ATTR 8
|
||||
#define SDP_MAX_UUID_FILTERS 3
|
||||
#define SDP_MAX_ATTR_FILTERS 12
|
||||
#define SDP_MAX_PROTOCOL_PARAMS 2
|
||||
#define SDP_RAW_DATA_SERVER FALSE
|
||||
|
||||
#if (defined(BTU_DYNAMIC_CB_INCLUDED) && (BTU_DYNAMIC_CB_INCLUDED == TRUE))
|
||||
#define MAX_L2CAP_CLIENTS (btu_cb.l2c_cfg_max_clients)
|
||||
#define MAX_L2CAP_LINKS (btu_cb.l2c_cfg_max_links)
|
||||
#define MAX_L2CAP_CHANNELS (btu_cb.l2c_cfg_max_channels)
|
||||
#define BTM_INIT_CLASS_OF_DEVICE (p_btm_cfg_settings->device_class)
|
||||
|
||||
/* Connection Oriented Channel configuration */
|
||||
#define MAX_L2CAP_BLE_CLIENTS (p_btm_cfg_settings->l2cap_application.max_le_psm)
|
||||
#define MAX_L2CAP_BLE_CHANNELS (p_btm_cfg_settings->l2cap_application.max_le_channels)
|
||||
|
||||
#else /* BTU_DYNAMIC_CB_INCLUDED */
|
||||
#define MAX_L2CAP_CLIENTS 3
|
||||
#define MAX_L2CAP_LINKS 1
|
||||
#define MAX_L2CAP_CHANNELS 4
|
||||
#endif /* BTU_DYNAMIC_CB_INCLUDED */
|
||||
|
||||
#define GAP_CONN_INCLUDED FALSE
|
||||
|
||||
|
||||
#define HCISU_TASK 0
|
||||
#define BTU_TASK 1
|
||||
#define BTE_APPL_TASK 2
|
||||
#define GKI_MAX_TASKS 3
|
||||
|
||||
#define BTE_IDLE_TASK_INCLUDED FALSE
|
||||
#define BTE_IDLE_TASK_SIZE 0xA0
|
||||
#define BTE_HCI_TASK_SIZE 0x100
|
||||
#define BTE_BTU_TASK_SIZE 0x400
|
||||
|
||||
/* Miscellaneous application configuration */
|
||||
#define _MAX_PATH 16
|
||||
#define TICKS_PER_SEC 1000
|
||||
#define USERIAL_HCI_PORT USERIAL_PORT_1
|
||||
#define GKI_SHUTDOWN_EVT APPL_EVT_7
|
||||
#define THREAD_EVT_QUEUE_MSG_SIZE 4
|
||||
#define THREAD_EVT_QUEUE_NUM_MSG 10
|
||||
|
||||
#ifndef BT_TRACE_PROTOCOL
|
||||
#define BT_TRACE_PROTOCOL FALSE
|
||||
#endif
|
||||
|
||||
#ifndef BT_USE_TRACES
|
||||
#define BT_USE_TRACES FALSE
|
||||
#endif
|
||||
|
||||
#ifndef BT_TRACE_VERBOSE
|
||||
#define BT_TRACE_VERBOSE FALSE
|
||||
#endif
|
||||
|
||||
#define USE_EXTERNAL_HCD 1
|
||||
|
||||
#define GPIO_BT_WAKE 40 // 0
|
||||
#define GPIO_HOST_WAKE 41 // 1
|
||||
#define GPIO_BT_REG 42 // 21
|
||||
|
||||
|
||||
//*************
|
||||
#define BTM_EIR_CLIENT_INCLUDED FALSE
|
||||
#define BTM_EIR_SERVER_INCLUDED FALSE
|
||||
#define BTM_EIR_DEFAULT_FEC_REQUIRED FALSE
|
||||
#define BTM_SSR_INCLUDED FALSE
|
||||
//***************
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C" */
|
||||
#endif
|
||||
36
mico-os/libraries/bluetooth/dual_mode/dual_mode.mk
Normal file
36
mico-os/libraries/bluetooth/dual_mode/dual_mode.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
#
|
||||
# Copyright 2016, MXCHIP Corporation
|
||||
# All Rights Reserved.
|
||||
#
|
||||
|
||||
NAME := Lib_Bluetooth_Embedded_Dual_mode_Stack_for_$(BT_CHIP)$(BT_CHIP_REVISION)
|
||||
|
||||
BTE_PLATFORM_DIR := ../BTE_platform
|
||||
|
||||
GLOBAL_INCLUDES += . \
|
||||
../include
|
||||
|
||||
# Include BTE stack as component
|
||||
#$(NAME)_COMPONENTS := libraries/bluetooth/BTE
|
||||
|
||||
BLUETOOTH_LIB_TYPE := dual_mode
|
||||
|
||||
ifneq ($(wildcard $(CURDIR)BTE_$(BLUETOOTH_LIB_TYPE).$(HOST_ARCH).$(TOOLCHAIN_NAME).release.a),)
|
||||
$(NAME)_PREBUILT_LIBRARY := BTE_$(BLUETOOTH_LIB_TYPE).$(HOST_ARCH).$(TOOLCHAIN_NAME).release.a
|
||||
else
|
||||
# Build from source (MXCHIP internal)
|
||||
include $(CURDIR)$(BLUETOOTH_LIB_TYPE)_src.mk
|
||||
endif
|
||||
|
||||
|
||||
# Include appropriate firmware as component
|
||||
$(NAME)_COMPONENTS += libraries/bluetooth/firmware
|
||||
|
||||
$(NAME)_SOURCES += $(BTE_PLATFORM_DIR)/mico_bt_bus.c \
|
||||
$(BTE_PLATFORM_DIR)/mico_bt_hcd.c \
|
||||
$(BTE_PLATFORM_DIR)/mico_bt_logmsg.c \
|
||||
$(BTE_PLATFORM_DIR)/mico_bt_nvram_access.c \
|
||||
$(BTE_PLATFORM_DIR)/mico_upio.c
|
||||
|
||||
VALID_PLATFORMS := MK3238 MK3239
|
||||
|
||||
242
mico-os/libraries/bluetooth/dual_mode/dual_mode_src.mk
Normal file
242
mico-os/libraries/bluetooth/dual_mode/dual_mode_src.mk
Normal file
@@ -0,0 +1,242 @@
|
||||
#
|
||||
# UNPUBLISHED PROPRIETARY SOURCE CODE
|
||||
# Copyright (c) 2016 MXCHIP Inc.
|
||||
#
|
||||
# The contents of this file may not be disclosed to third parties, copied or
|
||||
# duplicated in any form, in whole or in part, without the prior written
|
||||
# permission of MXCHIP Corporation.
|
||||
#
|
||||
|
||||
BLUETOOTH_LIB_TYPE ?= dual_mode
|
||||
|
||||
NAME := BTE_$(BLUETOOTH_LIB_TYPE)
|
||||
|
||||
################################################################################
|
||||
# Supported variants #
|
||||
################################################################################
|
||||
|
||||
SUPPORTED_BT_CHIPS := 43438A0 43438A1
|
||||
|
||||
################################################################################
|
||||
# Default settings #
|
||||
################################################################################
|
||||
|
||||
#COMPLETE_BT_CHIP_NAME := BCM$(BT_CHIP)$(BT_CHIP_REVISION)
|
||||
|
||||
BTEDIR := ../BTE
|
||||
PROTO_DISP_DIR := ../BTE/proto_disp
|
||||
|
||||
BTESOURCES := \
|
||||
$(BTEDIR)/Components/hcis/hcill_proto.c \
|
||||
$(BTEDIR)/Components/hcis/hcilp.c \
|
||||
$(BTEDIR)/Components/hcis/hcisu_h4.c \
|
||||
$(BTEDIR)/Components/hcis/hciutil.c \
|
||||
$(BTEDIR)/Components/stack/brcm/brcm_ble.c \
|
||||
$(BTEDIR)/Components/stack/brcm/brcm_prm.c \
|
||||
$(BTEDIR)/Components/stack/brcm/brcm_tbfc.c \
|
||||
$(BTEDIR)/Components/stack/brcm/bte_brcm.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_acl.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_cfg.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_dev.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_devctl.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_inq.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_main.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_pm.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_sco.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_sec.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_sec_nvram.c \
|
||||
$(BTEDIR)/Components/stack/btu/btu_hcif.c \
|
||||
$(BTEDIR)/Components/stack/btu/btu_init.c \
|
||||
$(BTEDIR)/Components/stack/btu/btu_task.c \
|
||||
$(BTEDIR)/Components/stack/hcic/hcicmds.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_api.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_csm.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_fcr.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_fcr_patch.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_link.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_main.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_utils.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_api.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_db.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_discovery.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_main.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_server.c \
|
||||
$(BTEDIR)/Components/stack/sdp/sdp_utils.c \
|
||||
$(BTEDIR)/Components/stack/wbt/wbt_ext.c \
|
||||
$(BTEDIR)/Projects/bte/main/bte_hcisu.c \
|
||||
$(BTEDIR)/Projects/bte/main/bte_init.c \
|
||||
$(BTEDIR)/Projects/bte/main/bte_load.c \
|
||||
$(BTEDIR)/Projects/bte/main/bte_version.c
|
||||
|
||||
BTE_RFCOMM_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/rfcomm/port_api.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/port_rfc.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/port_utils.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_l2cap_if.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_mx_fsm.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_port_fsm.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_port_if.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_ts_frames.c \
|
||||
$(BTEDIR)/Components/stack/rfcomm/rfc_utils.c
|
||||
|
||||
|
||||
#####ifndef MINDRAY ####oscar for mindray
|
||||
|
||||
BTE_AVRC_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_api.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_sdp.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_opt.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_bld_ct.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_bld_tg.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_pars_ct.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_pars_tg.c \
|
||||
$(BTEDIR)/Components/stack/avrc/avrc_utils.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_avrc_wrapper.c
|
||||
|
||||
BTE_AVCT_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/avct/avct_api.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_ccb.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_l2c.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_l2c_br.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_lcb.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_bcb_act.c \
|
||||
$(BTEDIR)/Components/stack/avct/avct_lcb_act.c
|
||||
|
||||
BTE_A2DP_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/a2dp/a2d_api.c \
|
||||
$(BTEDIR)/Components/stack/a2dp/a2d_sbc.c \
|
||||
$(BTEDIR)/Components/stack/a2dp/a2d_m12.c \
|
||||
$(BTEDIR)/Components/stack/a2dp/a2d_m24.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_a2d_wrapper.c
|
||||
|
||||
BTE_AVDT_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_ad.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_api.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_ccb.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_l2c.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_scb.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_scb_act.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_msg.c \
|
||||
$(BTEDIR)/Components/stack/avdt/avdt_ccb_act.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_avdt_wrapper.c
|
||||
|
||||
#####endif
|
||||
|
||||
|
||||
BTE_GATT_SMP_SOURCES := \
|
||||
$(BTEDIR)/Components/stack/gatt/att_protocol.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_attr.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_cl.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_sr.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_api.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_auth.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_main.c \
|
||||
$(BTEDIR)/Components/stack/gatt/gatt_utils.c \
|
||||
$(BTEDIR)/Components/stack/gatt/legattdb/legattdb.c \
|
||||
$(BTEDIR)/Components/stack/smp/aes.c \
|
||||
$(BTEDIR)/Components/stack/smp/p_256_curvepara.c \
|
||||
$(BTEDIR)/Components/stack/smp/p_256_ecc_pp.c \
|
||||
$(BTEDIR)/Components/stack/smp/p_256_multprecision.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_act.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_api.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_br_main.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_cmac.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_keys.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_l2c.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_main.c \
|
||||
$(BTEDIR)/Components/stack/smp/smp_utils.c \
|
||||
$(BTEDIR)/Components/stack/hcic/hciblecmds.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_ble.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_ble_conn.c \
|
||||
$(BTEDIR)/Components/stack/l2cap/l2c_ble_utils.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_ble.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_ble_addr.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_ble_bgconn.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_ble_gap.c \
|
||||
$(BTEDIR)/Components/stack/btm/btm_ble_privacy.c \
|
||||
$(BTEDIR)/Components/stack/gap/gap_api.c \
|
||||
$(BTEDIR)/Components/stack/gap/gap_ble.c \
|
||||
$(BTEDIR)/Components/stack/gap/gap_conn.c \
|
||||
$(BTEDIR)/Components/stack/gap/gap_utils.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_l2c_le_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_ble_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_dev_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_gatt_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_rfcomm_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_sdp_wrapper.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_gatt.c \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_sdp.c
|
||||
|
||||
|
||||
GKI_SOURCES := \
|
||||
$(BTEDIR)/Components/gki/common/gki_buffer.c \
|
||||
$(BTEDIR)/Components/gki/common/gki_debug.c \
|
||||
$(BTEDIR)/Components/gki/common/gki_time.c \
|
||||
$(BTEDIR)/Components/gki/mico/gki_mico.c
|
||||
|
||||
UDRV_SOURCES := \
|
||||
$(BTEDIR)/Components/udrv/mico/userial_mico.c
|
||||
|
||||
PROTODISP_SOURCES := \
|
||||
$(PROTO_DISP_DIR)/hcidisp.c \
|
||||
$(PROTO_DISP_DIR)/sdpdisp.c
|
||||
|
||||
PROTODISP_INCLUDES := \
|
||||
$(PROTO_DISP_DIR)
|
||||
|
||||
|
||||
BTEINCLUDES := \
|
||||
$(BTEDIR)/Components/hcis \
|
||||
$(BTEDIR)/Components/hcis/include \
|
||||
$(BTEDIR)/Components/stack/include \
|
||||
$(BTEDIR)/Components/stack/avrc \
|
||||
$(BTEDIR)/Components/stack/avct \
|
||||
$(BTEDIR)/Components/stack/avdt \
|
||||
$(BTEDIR)/Components/stack/a2dp \
|
||||
$(BTEDIR)/Components/stack/btm \
|
||||
$(BTEDIR)/Components/stack/brcm \
|
||||
$(BTEDIR)/Components/stack/l2cap \
|
||||
$(BTEDIR)/Components/stack/sdp \
|
||||
$(BTEDIR)/Components/stack/gap \
|
||||
$(BTEDIR)/Components/stack/gatt \
|
||||
$(BTEDIR)/Components/stack/gatt/legattdb/inc \
|
||||
$(BTEDIR)/Components/stack/smp \
|
||||
$(BTEDIR)/Components/stack/hid \
|
||||
$(BTEDIR)/Components/stack/wbt \
|
||||
$(BTEDIR)/Components/rpc/include \
|
||||
$(BTEDIR)/Components/gki/mico \
|
||||
$(BTEDIR)/Components/gki/common \
|
||||
$(BTEDIR)/Components/udrv/include
|
||||
|
||||
|
||||
$(NAME)_SOURCES := \
|
||||
$(BTEDIR)/mico_bt_api/mico_bt_main.c \
|
||||
$(GKI_SOURCES) \
|
||||
$(BTESOURCES) \
|
||||
$(BTE_GATT_SMP_SOURCES) \
|
||||
$(BTE_RFCOMM_SOURCES) \
|
||||
$(PROTODISP_SOURCES) \
|
||||
$(UDRV_SOURCES)
|
||||
|
||||
|
||||
$(NAME)_SOURCES += $(BTEDIR)/Projects/bte/embedded/mico/lib/mico_post_reset.c \
|
||||
$(BTEDIR)/Projects/bte/embedded/mico/lib/mico_stubs.c
|
||||
|
||||
|
||||
$(NAME)_INCLUDES := $(BTEINCLUDES) \
|
||||
$(PROTODISP_INCLUDES) \
|
||||
$(BTEDIR)/Projects/bte/main \
|
||||
../include \
|
||||
.
|
||||
|
||||
$(NAME)_CFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-unused-value -Wno-unused-label
|
||||
|
||||
$(NAME)_DEFINES := MICO_BTE_LIB
|
||||
|
||||
GLOBAL_DEFINES += BUILDCFG BLUETOOTH_BTE GATT_ENABLE
|
||||
|
||||
#GLOBAL_DEFINES += BUILDCFG BLUETOOTH_BTE \
|
||||
#GATT_ENABLE WBT_EXT_ENABLE SCO_ENABLE A2DP_ENABLE
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user