if (hci_hal_env.rx_q)
fixed_queue_register_dequeue(hci_hal_env.rx_q, event_uart_has_bytes);
else
- LOG_ERROR("%s unable to create rx queue.", __func__);
+ LOG_ERROR("%s unable to create rx queue.\n", __func__);
return;
}
hci_hal_env_init(HCI_HAL_SERIAL_BUFFER_SIZE, SIZE_MAX);
- xHciH4Queue = xQueueCreate(3, sizeof(void *));
+ xHciH4Queue = xQueueCreate(60, sizeof(void *));
xTaskCreate(hci_hal_h4_rx_handler, "HciH4T", 4096+2048, NULL, configMAX_PRIORITIES - 3, &xHciH4TaskHandle);
//register vhci host cb
if (hci_layer_init_env())
goto error;
- xHciHostQueue = xQueueCreate(3, sizeof(void *));
+ xHciHostQueue = xQueueCreate(60, sizeof(void *));
xTaskCreate(hci_host_thread_handler, "HciHostT", (4096+2048), NULL, configMAX_PRIORITIES - 3, &xHciHostTaskHandle);
packet_fragmenter->init(&packet_fragmenter_callbacks);
fixed_queue_register_dequeue(bt_profile_msg_queue, bt_profile_msg_ready);\r
}\r
\r
-void btu_task_shut_down(void) \r
+void bt_prf_task_shut_down(void) \r
{\r
fixed_queue_unregister_dequeue(bt_profile_msg_queue);\r
\r
void bt_prf_ShutDown(void)\r
{\r
\r
- btu_task_shut_down();\r
+ bt_prf_task_shut_down();\r
\r
//thread_free(bt_workqueue_thread);\r
vTaskDelete(xProfileTaskHandle);\r
\r
bt_profile_msg_queue = NULL;\r
\r
- // bt_workqueue_thread = NULL;\r
+ // bt_workqueue_thread = NULL;\r
xProfileTaskHandle = NULL;\r
xProfileQueue = 0;\r
}\r
tBTA_GATTS_IF server_if ;
tBT_UUID uuid = {LEN_UUID_16, {ATT_SVC_HID}};
//the number of the hid device attributes in the hid service.
- UINT16 num_handle = HIDD_LE_IDX_NB;
+ UINT16 num_handle = HIDD_LE_IDX_NB+5;
UINT8 inst = 0x00;
server_if = hidd_le_env.gatt_if;
hidd_le_env.inst_id = inst;
DIS_SrInit(dis_attr_mask);
*/
/*instantiate a battery service*/
- bas_register();
+ //bas_register();
/*instantiate the driver for button profile*/
//app_button_init();
#if (BUT_PROFILE_CFG)