Add esp_timer_is_active function for Nimble stack to use esp_timer instead of FreeRTOS timer

This commit is contained in:
Rahul Tank
2021-06-30 10:06:40 +05:30
parent 2f8debdde1
commit 3159ba1d5a
5 changed files with 32 additions and 1 deletions
+6
View File
@@ -500,3 +500,9 @@ config BT_NIMBLE_BLUFI_ENABLE
default n
help
Set this option to enable blufi functionality.
config BT_NIMBLE_USE_ESP_TIMER
bool "Enable Esp Timer for Nimble"
default y
help
Set this option to use Esp Timer which has higher priority timer instead of FreeRTOS timer
@@ -1374,4 +1374,12 @@
#define MYNEWT_VAL_NEWT_FEATURE_LOGCFG (1)
#endif
#ifndef MYNEWT_VAL_BLE_USE_ESP_TIMER
#ifdef CONFIG_BT_NIMBLE_USE_ESP_TIMER
#define MYNEWT_VAL_BLE_USE_ESP_TIMER (1)
#else
#define MYNEWT_VAL_BLE_USE_ESP_TIMER (0)
#endif
#endif
#endif