mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
change(bt/bluedroid): Refactored HCI ACL datapath
This commit is contained in:
@@ -206,6 +206,8 @@ typedef struct {
|
||||
#define BTU_MAX_REG_TIMER (2) /* max # timer callbacks which may register */
|
||||
#define BTU_MAX_REG_EVENT (6) /* max # event callbacks which may register */
|
||||
#define BTU_DEFAULT_DATA_SIZE (0x2a0)
|
||||
#define BTU_ACL_QUEUE_BATCH_SIZE (12)
|
||||
#define BTU_ACL_QUEUE_HIGH_WATERMARK (100)
|
||||
|
||||
#if (BLE_INCLUDED == TRUE)
|
||||
#define BTU_DEFAULT_BLE_DATA_SIZE (27)
|
||||
@@ -234,6 +236,9 @@ typedef struct {
|
||||
typedef struct {
|
||||
tBTU_TIMER_REG timer_reg[BTU_MAX_REG_TIMER];
|
||||
tBTU_EVENT_REG event_reg[BTU_MAX_REG_EVENT];
|
||||
struct pkt_queue *acl_pkt_queue;
|
||||
struct osi_event *acl_data_ready;
|
||||
BOOLEAN acl_closing;
|
||||
|
||||
BOOLEAN reset_complete; /* TRUE after first ack from device received */
|
||||
UINT8 trace_level; /* Trace level for HCI layer */
|
||||
@@ -303,6 +308,10 @@ void btu_task_shut_down(void);
|
||||
UINT16 BTU_BleAclPktSize(void);
|
||||
|
||||
bool btu_task_post(uint32_t sig, void *param, uint32_t timeout);
|
||||
bool btu_acl_queue_init(void);
|
||||
void btu_acl_queue_close(void);
|
||||
void btu_acl_queue_deinit(void);
|
||||
bool btu_hci_acl_data_post(BT_HDR *packet);
|
||||
|
||||
int get_btu_work_queue_size(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user