mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
struct initialization in old style
This commit is contained in:
parent
82db68a572
commit
4eb637e285
@ -102,7 +102,9 @@ static uint16_t tx_len;
|
||||
static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler;
|
||||
|
||||
static data_source_t hci_transport_h4_dma_ds = {
|
||||
.process = h4_process
|
||||
/* .item = */ NULL,
|
||||
/* .fd = */ NULL,
|
||||
/* .process = */ h4_process
|
||||
};
|
||||
|
||||
static hci_transport_h4_t hci_transport_h4_dma = {
|
||||
|
@ -134,19 +134,21 @@ static uint8_t tx_packet_type;
|
||||
|
||||
// data source used in run_loop
|
||||
static data_source_t hci_transport_h4_dma_ds = {
|
||||
.process = h4_process
|
||||
/* .item = */ NULL,
|
||||
/* .fd = */ NULL,
|
||||
/* .process = */ h4_process
|
||||
};
|
||||
|
||||
// hci_transport for use by hci
|
||||
static const hci_transport_h4_t hci_transport_h4_ehcill_dma = {
|
||||
.transport.open = h4_open,
|
||||
.transport.close = h4_close,
|
||||
.transport.send_packet = ehcill_send_packet,
|
||||
.transport.register_packet_handler = h4_register_packet_handler,
|
||||
.transport.get_transport_name = h4_get_transport_name,
|
||||
.transport.set_baudrate = h4_set_baudrate,
|
||||
.transport.can_send_packet_now = h4_can_send_packet_now,
|
||||
.ds = &hci_transport_h4_dma_ds
|
||||
/* .transport.open = */ h4_open,
|
||||
/* .transport.close = */ h4_close,
|
||||
/* .transport.send_packet = */ ehcill_send_packet,
|
||||
/* .transport.register_packet_handler = */ h4_register_packet_handler,
|
||||
/* .transport.get_transport_name = */ h4_get_transport_name,
|
||||
/* .transport.set_baudrate = */ h4_set_baudrate,
|
||||
/* .transport.can_send_packet_now = */ h4_can_send_packet_now,
|
||||
/* .ds = */ &hci_transport_h4_dma_ds
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user