main.c (df71a9a47903b1296e74a64d69d458c999b3c98c) | main.c (f8da99a8ad1730675f2726b8c080178292aa3a24) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 198 unchanged lines hidden (view full) --- 207 strcat(log_path, ".pklg"); 208 printf("Packet Log: %s\n", log_path); 209 hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER); 210 211 // init HCI 212 const hci_transport_t * transport; 213 if (config.device_name){ 214 // PTY | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 198 unchanged lines hidden (view full) --- 207 strcat(log_path, ".pklg"); 208 printf("Packet Log: %s\n", log_path); 209 hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER); 210 211 // init HCI 212 const hci_transport_t * transport; 213 if (config.device_name){ 214 // PTY |
215 const btstack_uart_block_t * uart_driver = btstack_uart_block_posix_instance(); 216 transport = hci_transport_h4_instance(uart_driver); | 215 const btstack_uart_t * uart_driver = btstack_uart_posix_instance(); 216 transport = hci_transport_h4_instance_for_uart(uart_driver); |
217 } else { 218 // libusb 219 if (usb_path_len){ 220 hci_transport_usb_set_path(usb_path_len, usb_path); 221 } 222 transport = hci_transport_usb_instance(); 223 } 224 hci_init(transport, (void*) &config); --- 16 unchanged lines hidden --- | 217 } else { 218 // libusb 219 if (usb_path_len){ 220 hci_transport_usb_set_path(usb_path_len, usb_path); 221 } 222 transport = hci_transport_usb_instance(); 223 } 224 hci_init(transport, (void*) &config); --- 16 unchanged lines hidden --- |