#include "bt_target.h"
#include "bt_types.h"
#include "btm_api.h"
-// #include "uipc_msg.h"
+#include "uipc_msg.h"
+ #include "sdp_api.h"
#if BLE_INCLUDED == TRUE
#include "btm_ble_api.h"
SIG_PRF_WORK = 0xfd,
SIG_BTU_START_UP = 0xfe,
SIG_BTU_WORK = 0xff,
- SIG_BTIF_WORK = 0xff
+ // SIG_BTIF_WORK = 0xff
};
+ #define HCI_HOST_TASK_STACK_SIZE 1024
+ #define HCI_HOST_TASK_PRIO (configMAX_PRIORITIES - 3)
+ #define HCI_HOST_TASK_NAME "hciHostT"
+ #define HCI_HOST_QUEUE_NUM 30
+
+ #define HCI_H4_TASK_STACK_SIZE 1024
+ #define HCI_H4_TASK_PRIO (configMAX_PRIORITIES - 3)
+ #define HCI_H4_TASK_NAME "hciH4T"
+ #define HCI_H4_QUEUE_NUM 30
+
+ #define BTU_TASK_STACK_SIZE 4096
+ #define BTU_TASK_PRIO (configMAX_PRIORITIES - 1)
+ #define BTU_TASK_NAME "btuT"
+ #define BTU_QUEUE_NUM 30
+
+ #define BTC_TASK_QUEUE_NUM 20
+ #define BTC_TASK_STACK_SIZE CONFIG_BTC_TASK_STACK_SIZE //by menuconfig
+ #define BTC_TASK_NAME "btcT"
+ #define BTC_TASK_PRIO (configMAX_PRIORITIES - 5)
+
void btu_task_post(uint32_t sig);
void hci_host_task_post(void);
void hci_hal_h4_task_post(void);
goto error_exit;
}
-- xBtuQueue = xQueueCreate(60, sizeof(BtTaskEvt_t));
- xTaskCreate(btu_task_thread_handler, "BtuT", 2048 + 1024, NULL, configMAX_PRIORITIES - 1, &xBtuTaskHandle);
-
++ xBtuQueue = xQueueCreate(BTU_QUEUE_NUM, sizeof(BtTaskEvt_t));
+ xTaskCreate(btu_task_thread_handler, BTU_TASK_NAME, BTU_TASK_STACK_SIZE, NULL, BTU_TASK_PRIO, &xBtuTaskHandle);
btu_task_post(SIG_BTU_START_UP);
/*
// Continue startup on bt workqueue thread.
bluedroid \
.
--include $(IDF_PATH)/make/component_common.mk
++#include $(IDF_PATH)/make/component_common.mk
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
$(COMPONENT_LIBRARY): $(ALL_LIB_FILES)
--- /dev/null
- include $(IDF_PATH)/make/component_common.mk
+#
+# Main Makefile. This is basically the same as a component makefile.
+#
+# This Makefile should, at the very least, just include $(SDK_PATH)/make/component_common.mk. By default,
+# this will take the sources in the src/ directory, compile them and link them into
+# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
+# please read the ESP-IDF documents if you need to do this.
+#
+
+COMPONENT_ADD_INCLUDEDIRS := \
+ udrv/include \
+ btif/include \
+ audio_a2dp_hw/include \
+ embdrv/sbc/encoder/include \
+ embdrv/sbc/decoder/include \
+ include \
+
+COMPONENT_SRCDIRS := \
+ app_core \
+ app_project \
+ udrv/ulinux \
+ embdrv/sbc/encoder/srce \
+ embdrv/sbc/decoder/srce \
+ btif/co \
+ btif
+
+CFLAGS += -Wno-error=unused-label -Wno-error=return-type -Wno-error=missing-braces -Wno-error=pointer-sign -Wno-error=parentheses -I./include
+
+
++#include $(IDF_PATH)/make/component_common.mk