Bluetooth: host: Add BT_BUF_SIZE to include HCI reserve for buf size
Add helper define BT_BUF_SIZE which considers the BT_BUF_RESERVE when declaring Bluetooth HCI buffers. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
cc8290f588
commit
87812c9633
1 changed files with 3 additions and 1 deletions
|
@ -43,8 +43,10 @@ enum bt_buf_type {
|
|||
#define BT_BUF_RESERVE CONFIG_BT_HCI_RESERVE
|
||||
#endif
|
||||
|
||||
#define BT_BUF_SIZE(size) (BT_BUF_RESERVE + (size))
|
||||
|
||||
/** Data size neeed for HCI RX buffers */
|
||||
#define BT_BUF_RX_SIZE (BT_BUF_RESERVE + CONFIG_BT_RX_BUF_LEN)
|
||||
#define BT_BUF_RX_SIZE (BT_BUF_SIZE(CONFIG_BT_RX_BUF_LEN))
|
||||
|
||||
/** Allocate a buffer for incoming data
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue