mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 07:21:20 +00:00
removed deprecated hci functions
This commit is contained in:
parent
ccda6e14d0
commit
bdbf1a1bb9
30
src/hci.c
30
src/hci.c
@ -344,36 +344,6 @@ uint8_t hci_number_free_acl_slots_for_handle(hci_con_handle_t con_handle){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// @deprecated
|
||||
int hci_can_send_packet_now(uint8_t packet_type){
|
||||
switch (packet_type) {
|
||||
case HCI_ACL_DATA_PACKET:
|
||||
return hci_can_send_prepared_acl_packet_now(0);
|
||||
case HCI_COMMAND_DATA_PACKET:
|
||||
return hci_can_send_command_packet_now();
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// @deprecated
|
||||
// same as hci_can_send_packet_now, but also checks if packet buffer is free for use
|
||||
int hci_can_send_packet_now_using_packet_buffer(uint8_t packet_type){
|
||||
|
||||
if (hci_stack->hci_packet_buffer_reserved) return 0;
|
||||
|
||||
switch (packet_type) {
|
||||
case HCI_ACL_DATA_PACKET:
|
||||
return hci_can_send_acl_packet_now(0);
|
||||
case HCI_COMMAND_DATA_PACKET:
|
||||
return hci_can_send_command_packet_now();
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// new functions replacing hci_can_send_packet_now[_using_packet_buffer]
|
||||
int hci_can_send_command_packet_now(void){
|
||||
if (hci_stack->hci_packet_buffer_reserved) return 0;
|
||||
|
@ -514,14 +514,6 @@ int hci_can_send_command_packet_now(void);
|
||||
int hci_can_send_acl_packet_now(hci_con_handle_t con_handle);
|
||||
int hci_can_send_prepared_acl_packet_now(hci_con_handle_t con_handle);
|
||||
|
||||
// non-blocking UART driver needs
|
||||
// @deprecated use hci_can_send_X_now instead
|
||||
int hci_can_send_packet_now(uint8_t packet_type);
|
||||
|
||||
// same as hci_can_send_packet_now, but also checks if packet buffer is free for use
|
||||
// @deprecated use hci_can_send_X_now instead
|
||||
int hci_can_send_packet_now_using_packet_buffer(uint8_t packet_type);
|
||||
|
||||
// reserves outgoing packet buffer. @returns 1 if successful
|
||||
int hci_reserve_packet_buffer(void);
|
||||
void hci_release_packet_buffer(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user