mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
hci: depend on ENABLE_LE_ISOCHRONOUS_STREAMS
This commit is contained in:
parent
396595f587
commit
0a8cccd5b3
@ -977,7 +977,7 @@ uint8_t hci_send_sco_packet_buffer(int size){
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||
uint8_t hci_send_iso_packet_buffer(uint16_t size){
|
||||
btstack_assert(hci_stack->hci_packet_buffer_reserved);
|
||||
|
||||
@ -3739,7 +3739,7 @@ static void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
||||
sco_handler(packet, size);
|
||||
break;
|
||||
#endif
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||
case HCI_ISO_DATA_PACKET:
|
||||
if (hci_stack->iso_packet_handler != NULL){
|
||||
(hci_stack->iso_packet_handler)(HCI_ISO_DATA_PACKET, 0, packet, size);
|
||||
@ -3779,7 +3779,7 @@ void hci_register_sco_packet_handler(btstack_packet_handler_t handler){
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||
void hci_register_iso_packet_handler(btstack_packet_handler_t handler){
|
||||
hci_stack->iso_packet_handler = handler;
|
||||
}
|
||||
|
@ -898,7 +898,7 @@ typedef struct {
|
||||
int (*gap_classic_accept_callback)(bd_addr_t addr, hci_link_type_t link_type);
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||
/* callback for ISO data */
|
||||
btstack_packet_handler_t iso_packet_handler;
|
||||
#endif
|
||||
|
@ -244,10 +244,12 @@ static void hci_transport_h4_block_read(void){
|
||||
bytes_to_read = HCI_SCO_HEADER_SIZE;
|
||||
h4_state = H4_W4_SCO_HEADER;
|
||||
break;
|
||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||
case HCI_ISO_DATA_PACKET:
|
||||
bytes_to_read = HCI_ISO_HEADER_SIZE;
|
||||
h4_state = H4_W4_SCO_HEADER;
|
||||
break;
|
||||
#endif
|
||||
#ifdef ENABLE_EHCILL
|
||||
case EHCILL_GO_TO_SLEEP_IND:
|
||||
case EHCILL_GO_TO_SLEEP_ACK:
|
||||
|
Loading…
x
Reference in New Issue
Block a user