#define BTU_STARTUP_DELAY 0
#endif
-/* Whether BTA is included in BTU task. */
-#ifndef BTU_BTA_INCLUDED
-#define BTU_BTA_INCLUDED TRUE
-#endif
-
/* Default class of device
* {SERVICE_CLASS, MAJOR_CLASS, MINOR_CLASS}
*
#include "bip_api.h"
#endif
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
#if (defined(BTA_BI_INCLUDED) && BTA_BI_INCLUDED == TRUE)
#include "bta_bi_api.h"
#endif
-#endif
#if (defined(HFP_INCLUDED) && HFP_INCLUDED == TRUE)
#include "hfp_api.h"
OBX_Init();
#if (defined(BIP_INCLUDED) && BIP_INCLUDED == TRUE)
BIP_Init();
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
#if (defined(BTA_BI_INCLUDED) && BTA_BI_INCLUDED == TRUE)
BTA_BicInit();
#endif /* BTA BI */
-#endif
#endif /* BIP */
#if (defined(GOEP_INCLUDED) && GOEP_INCLUDED == TRUE)
#include "mca_int.h"
#endif
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
#include "bta_sys.h"
-#endif
#if (BLE_INCLUDED == TRUE)
#include "gatt_int.h"
/* Initialize any optional stack components */
BTE_InitStack();
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
bta_sys_init();
-#endif
/* Initialise platform trace levels at this point as BTE_InitStack() and bta_sys_init()
* reset the control blocks and preset the trace level with XXX_INITIAL_TRACE_LEVEL
}
#endif // QUICK_TIMER
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
// BTA message queue.
while (!fixed_queue_is_empty(btu_bta_msg_queue)) {
p_msg = (BT_HDR *)fixed_queue_dequeue(btu_bta_msg_queue);
p_tle = (TIMER_LIST_ENT *)fixed_queue_dequeue(btu_bta_alarm_queue);
btu_bta_alarm_process(p_tle);
}
-#endif // BTU_BTA_INCLUDED
while (!fixed_queue_is_empty(btu_oneshot_alarm_queue)) {
p_tle = (TIMER_LIST_ENT *)fixed_queue_dequeue(btu_oneshot_alarm_queue);
break;
}
-#if (defined(BTU_BTA_INCLUDED) && BTU_BTA_INCLUDED == TRUE)
bta_sys_free();
-#endif
btu_free_core();