diff --git a/port/stm32-l053r8-em9304/btstack_config.h b/port/stm32-l053r8-em9304/btstack_config.h index 20183e14d..0acc5e481 100644 --- a/port/stm32-l053r8-em9304/btstack_config.h +++ b/port/stm32-l053r8-em9304/btstack_config.h @@ -7,6 +7,7 @@ // Port related features #define HAVE_EMBEDDED_TIME_MS +// #define HAVE_EM9304_PATCH_CONTAINER // BTstack features that can be enabled #define ENABLE_BLE @@ -35,4 +36,4 @@ #define MAX_NR_SERVICE_RECORD_ITEMS 1 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1 -#endif \ No newline at end of file +#endif diff --git a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Makefile b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Makefile index 2276f419d..6c6ead0a3 100644 --- a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Makefile +++ b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Makefile @@ -51,6 +51,7 @@ VPATH += ${BTSTACK_ROOT}/src/classic VPATH += ${BTSTACK_ROOT}/platform/embedded VPATH += ${BTSTACK_ROOT}/example VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc +VPATH += ${BTSTACK_ROOT}/chipset/em9301 ###################################### # source @@ -86,6 +87,7 @@ Src/stm32l0xx_it.c \ att_dispatch.c \ att_server.c \ battery_service_server.c \ + btstack_chipset_em9301.c \ btstack_linked_list.c \ btstack_memory.c \ btstack_memory_pool.c \ @@ -106,6 +108,7 @@ Src/stm32l0xx_it.c \ le_device_db_memory.c \ sm.c \ uECC.c \ + 0000000_META_hci_patches_v5_iram.c \ # ASM sources ASM_SOURCES = \ diff --git a/port/stm32-l053r8-em9304/port.c b/port/stm32-l053r8-em9304/port.c index aabac55fc..a27d0cda8 100644 --- a/port/stm32-l053r8-em9304/port.c +++ b/port/stm32-l053r8-em9304/port.c @@ -478,6 +478,7 @@ void port_main(void){ // init HCI hci_init(hci_transport_h4_instance(btstack_uart_block_embedded_instance()), &config); + hci_set_chipset(btstack_chipset_em9301_instance()); #if 0 // setup Link Key DB @@ -505,4 +506,4 @@ void port_main(void){ // go btstack_run_loop_execute(); -} \ No newline at end of file +}