mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
esp32: enable Controller to Host Flow Control
This commit is contained in:
parent
a681a241a7
commit
b9f3f1a478
@ -39,5 +39,11 @@
|
||||
#define MAX_NR_LE_DEVICE_DB_ENTRIES 0
|
||||
//
|
||||
|
||||
// HCI Controller to Host Flow Control
|
||||
#define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
|
||||
#define HCI_HOST_ACL_PACKET_NUM 10
|
||||
#define HCI_HOST_ACL_PACKET_LEN 1024
|
||||
#define HCI_HOST_SCO_PACKET_NUM 10
|
||||
#define HCI_HOST_SCO_PACKET_LEN 60
|
||||
#endif
|
||||
|
||||
|
@ -71,9 +71,9 @@ uint32_t hal_time_ms(void) {
|
||||
static void (*transport_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size);
|
||||
|
||||
// ring buffer for incoming HCI packets
|
||||
#define MAX_NR_HOST_ACL_PACKETS 10
|
||||
#define MAX_NR_HOST_EVENT_PACKETS 4
|
||||
static uint8_t hci_ringbuffer_storage[MAX_NR_HOST_ACL_PACKETS * (1 + HCI_ACL_HEADER_SIZE + HCI_ACL_3DH5_SIZE) +
|
||||
static uint8_t hci_ringbuffer_storage[HCI_HOST_ACL_PACKET_NUM * (1 + HCI_ACL_HEADER_SIZE + HCI_HOST_ACL_PACKET_LEN) +
|
||||
HCI_HOST_SCO_PACKET_NUM * (1 + HCI_SCO_HEADER_SIZE + HCI_HOST_SCO_PACKET_LEN) +
|
||||
(MAX_NR_HOST_EVENT_PACKETS * HCI_EVENT_BUFFER_SIZE)];
|
||||
|
||||
static btstack_ring_buffer_t hci_ringbuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user