hci_transport_h4.c -> hci_transport_h4_posix.c

This commit is contained in:
Matthias Ringwald 2016-01-07 10:42:11 +01:00
parent 02b5fb40f3
commit ff839116f5
14 changed files with 16 additions and 20 deletions

View File

@ -1957,10 +1957,10 @@ int main (int argc, char * const * argv){
hci_transport_config_uart.baudrate_init = 0;
transport = hci_transport_h4_iphone_instance();
} else {
transport = hci_transport_h4_instance();
transport = hci_transport_h4_posix_instance();
}
#else
transport = hci_transport_h4_instance();
transport = hci_transport_h4_posix_instance();
#endif
config = &hci_transport_config_uart;
#endif

View File

@ -331,7 +331,7 @@ static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
}
// get h4 singleton
hci_transport_t * hci_transport_h4_instance() {
hci_transport_t * hci_transport_h4_posix_instance() {
if (hci_transport_h4 == NULL) {
hci_transport_h4 = (hci_transport_h4_t*)malloc( sizeof(hci_transport_h4_t));
hci_transport_h4->ds = NULL;

View File

@ -38,7 +38,7 @@ libBTstack_SOURCES = \
BTdaemon_SOURCES = \
daemon.c \
hci_transport_h4.c \
hci_transport_h4_posix.c \
$(libBTstack_SOURCES) \
btstack_memory.c \
hci.c \

View File

@ -46,7 +46,7 @@ BTdaemon_FILES = \
sdp_query_rfcomm.c \
sdp_query_util.c \
daemon.c \
hci_transport_h4.c \
hci_transport_h4_posix.c \
bt_control_iphone.m \
hci_transport_h4_iphone.c \
platform_iphone.m \

View File

@ -160,7 +160,7 @@ static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
}
// get h4 singleton
hci_transport_t * hci_transport_h4_instance(void){
hci_transport_t * hci_transport_h4_posix_instance(void){
if (hci_transport_h4 == NULL) {
hci_transport_h4 = (hci_transport_h4_t*)malloc( sizeof(hci_transport_h4_t));
hci_transport_h4->ds = NULL;

View File

@ -4,7 +4,7 @@ POSIX_ROOT= ${BTSTACK_ROOT}/platform/posix
CORE += main.c stdin_support.c bt_control_cc256x.c bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c
COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c
COMMON += hci_transport_h4_posix.c run_loop_posix.c remote_device_db_fs.c
include ${BTSTACK_ROOT}/example/embedded/Makefile.inc

View File

@ -104,7 +104,7 @@ int main(int argc, const char * argv[]){
config.device_name = "/dev/tty.usbserial-AD025KU2";
// init HCI
hci_transport_t * transport = hci_transport_h4_instance();
hci_transport_t * transport = hci_transport_h4_posix_instance();
bt_control_t * control = bt_control_cc256x_instance();
remote_device_db_t * remote_db = (remote_device_db_t *) &remote_device_db_fs;

View File

@ -3,7 +3,7 @@ BTSTACK_ROOT = ../..
CORE += main.c stdin_support.c
COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c
COMMON += hci_transport_h4_posix.c run_loop_posix.c remote_device_db_fs.c
include ${BTSTACK_ROOT}/example/embedded/Makefile.inc

View File

@ -100,7 +100,7 @@ int main(int argc, const char * argv[]){
config.device_name = "/dev/tty.usbmodem1413";
// init HCI
hci_transport_t * transport = hci_transport_h4_instance();
hci_transport_t * transport = hci_transport_h4_posix_instance();
remote_device_db_t * remote_db = (remote_device_db_t *) &remote_device_db_fs;
hci_init(transport, (void*) &config, NULL, remote_db);

View File

@ -4,7 +4,7 @@ POSIX_ROOT= ${BTSTACK_ROOT}/platform/posix
CORE += main.c stdin_support.c bt_control_stlc2500d.c
COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c
COMMON += hci_transport_h4_posix.c run_loop_posix.c remote_device_db_fs.c
include ${BTSTACK_ROOT}/example/embedded/Makefile.inc

View File

@ -102,7 +102,7 @@ int main(int argc, const char * argv[]){
config.device_name = "/dev/tty.usbserial-AD025KU2";
// init HCI
hci_transport_t * transport = hci_transport_h4_instance();
hci_transport_t * transport = hci_transport_h4_posix_instance();
bt_control_t * control = bt_control_stlc2500d_instance();
remote_device_db_t * remote_db = (remote_device_db_t *) &remote_device_db_fs;

View File

@ -4,7 +4,7 @@ POSIX_ROOT= ${BTSTACK_ROOT}/platform/posix
CORE += main.c stdin_support.c bt_control_cc256x.c TIInit_11.8.32.c
COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c
COMMON += hci_transport_h4_posix.c run_loop_posix.c remote_device_db_fs.c
include ${BTSTACK_ROOT}/example/embedded/Makefile.inc

View File

@ -103,7 +103,7 @@ int main(int argc, const char * argv[]){
config.device_name = "/dev/tty.usbserial-AD025KU2";
// init HCI
hci_transport_t * transport = hci_transport_h4_instance();
hci_transport_t * transport = hci_transport_h4_posix_instance();
bt_control_t * control = bt_control_cc256x_instance();
remote_device_db_t * remote_db = (remote_device_db_t *) &remote_device_db_fs;

View File

@ -91,7 +91,7 @@ typedef struct {
/*
* @brief
*/
extern hci_transport_t * hci_transport_h4_instance(void);
extern hci_transport_t * hci_transport_h4_posix_instance(void);
/*
* @brief
@ -106,17 +106,13 @@ extern hci_transport_t * hci_transport_h4_iphone_instance(void);
/*
* @brief
*/
extern hci_transport_t * hci_transport_h5_instance(void);
extern hci_transport_t * hci_transport_h4_wiced_instance();
/*
* @brief
*/
extern hci_transport_t * hci_transport_usb_instance(void);
/*
* @brief
*/
extern hci_transport_t * hci_transport_h4_wiced_instance();
/* API_END */