diff --git a/port/wiced/btstack_config.h b/port/wiced/btstack_config.h index 85a15c623..f9c731fe2 100644 --- a/port/wiced/btstack_config.h +++ b/port/wiced/btstack_config.h @@ -12,7 +12,7 @@ // BTstack features that can be enabled #define ENABLE_BLE #define ENABLE_CLASSIC -#define ENABLE_LE_SECURE_CONNECTIONS +// #define ENABLE_LE_SECURE_CONNECTIONS #define ENABLE_LOG_ERROR #define ENABLE_LOG_INFO diff --git a/port/wiced/main.c b/port/wiced/main.c index 2fa4667f2..53e850378 100644 --- a/port/wiced/main.c +++ b/port/wiced/main.c @@ -79,10 +79,10 @@ void application_start(void){ btstack_run_loop_init(btstack_run_loop_wiced_get_instance()); // enable full log output while porting - // hci_dump_open(NULL, HCI_DUMP_STDOUT); + hci_dump_open(NULL, HCI_DUMP_STDOUT); // init HCI - hci_init(hci_transport_h4_instance(btstack_uart_block_embedded_instance()), (void*) &hci_transport_config_uart); + hci_init(hci_transport_h4_instance(NULL), (void*) &hci_transport_config_uart); hci_set_link_key_db(btstack_link_key_db_memory_instance()); hci_set_chipset(btstack_chipset_bcm_instance()); diff --git a/port/wiced/readme.md b/port/wiced/readme.md index 37cd71fb9..00ad89afd 100644 --- a/port/wiced/readme.md +++ b/port/wiced/readme.md @@ -1,6 +1,8 @@ # BTstack port for WICED platform -To integrate BTstack into the WICED SDK, please move the BTstack project into WICED-SDK-X/libraries. +WICED SDK 3.5.2 or higher required. With RedBear Duo, please follow their installation guide for WICED SDK first. + +To integrate BTstack into the WICED SDK, please move the BTstack project into WICED-SDK-3.5.2/libraries. Then create projects for BTstack examples in WICED/apps/btstack by running: ./create_examples.py @@ -21,7 +23,7 @@ The maximal baud rate is limited to 3 mbps. The port uses the generated WIFI address plus 1 as Bluetooth MAC address. -The examples that implement a BLE Peripheral/provide a GATT Server use the GATT DB in the .gatt file. +The examples that implement a BLE Peripheral/provide a GATT Server that uses the GATT DB in the .gatt file. After modifying the .gatt file, please run ./update_gatt_db.sh in the apps/btstack/$(EXAMPLE) folder. diff --git a/port/wiced/wiced.mk b/port/wiced/wiced.mk index 817b56f53..8bcc1e077 100644 --- a/port/wiced/wiced.mk +++ b/port/wiced/wiced.mk @@ -24,6 +24,7 @@ $(NAME)_SOURCES += \ ../../src/classic/sdp_client.c \ ../../src/classic/sdp_client_rfcomm.c \ ../../src/classic/sdp_util.c \ + ../../src/classic/spp_server.c \ ../../src/btstack_linked_list.c \ ../../src/btstack_memory.c \ ../../src/btstack_memory_pool.c \ @@ -39,7 +40,6 @@ $(NAME)_SOURCES += \ $(NAME)_SOURCES += \ main.c \ btstack_run_loop_wiced.c \ - btstack_uart_block_embedded.c \ hci_transport_h4_wiced.c \ ../../chipset/bcm/btstack_chipset_bcm.c \ - ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/bt_firmware_image.c \ + ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/bt_firmware_image.c \