removed deprecated hci functions

This commit is contained in:
matthias.ringwald@gmail.com 2015-02-05 15:47:25 +00:00
parent ccda6e14d0
commit bdbf1a1bb9
2 changed files with 0 additions and 38 deletions

View File

@ -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;

View File

@ -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);