mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
hci: reduced incoming prebuffer to 0 for LE-only, and outgoing to 0 if HAVE_HOST_CONTROLLER_API defined
This commit is contained in:
parent
d200c10271
commit
c5bccd71ca
14
src/hci.h
14
src/hci.h
@ -108,14 +108,20 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// additional pre- and post-packet buffer for packets to Bluetooth module
|
// additional pre-buffer space for packets to Bluetooth module, for now, used for HCI Transport H4 DMA
|
||||||
// - pre-buffer used for HCI Transport H4 variants
|
#ifdef HAVE_HOST_CONTROLLER_API
|
||||||
#define HCI_OUTGOING_PRE_BUFFER_SIZE 1
|
#define HCI_OUTGOING_PRE_BUFFER_SIZE 0
|
||||||
#define HCI_OUTGOING_POST_BUFFER_SIZE 0
|
#else
|
||||||
|
#define HCI_OUTGOING_PRE_BUFFER_SIZE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
// BNEP may uncompress the IP Header by 16 bytes
|
// BNEP may uncompress the IP Header by 16 bytes
|
||||||
#ifndef HCI_INCOMING_PRE_BUFFER_SIZE
|
#ifndef HCI_INCOMING_PRE_BUFFER_SIZE
|
||||||
|
#ifdef ENABLE_CLASSIC
|
||||||
#define HCI_INCOMING_PRE_BUFFER_SIZE (16 - HCI_ACL_HEADER_SIZE - 4)
|
#define HCI_INCOMING_PRE_BUFFER_SIZE (16 - HCI_ACL_HEADER_SIZE - 4)
|
||||||
|
#else
|
||||||
|
#define HCI_INCOMING_PRE_BUFFER_SIZE 0
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user