diff --git a/platforms/arduino/bsp_arduino_em9301.cpp b/platforms/arduino/bsp_arduino_em9301.cpp index 4a4ee31e0..360d51e1d 100644 --- a/platforms/arduino/bsp_arduino_em9301.cpp +++ b/platforms/arduino/bsp_arduino_em9301.cpp @@ -249,3 +249,7 @@ extern "C" void hal_uart_dma_process(){ } } +extern "C" uint32_t hal_time_ms(){ + return millis(); +} + diff --git a/platforms/arduino/btstack-config.h b/platforms/arduino/btstack-config.h index 65f56d183..3b18e060a 100644 --- a/platforms/arduino/btstack-config.h +++ b/platforms/arduino/btstack-config.h @@ -4,7 +4,7 @@ // #define HAVE_EHCILL #define HAVE_BZERO -#define HAVE_TICK +#define HAVE_TIME_MS #define HAVE_BLE