File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
nimble/porting/npl/freertos/include/nimble Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -422,6 +422,9 @@ static inline bool ble_npl_hw_is_in_critical(void)
422
422
#include "freertos/semphr.h"
423
423
#include "freertos/task.h"
424
424
#include "freertos/timers.h"
425
+ #ifdef CONFIG_BT_NIMBLE_USE_ESP_TIMER
426
+ #include "esp_timer.h"
427
+ #endif
425
428
426
429
#ifdef __cplusplus
427
430
extern "C" {
Original file line number Diff line number Diff line change 165
165
*/
166
166
// #define CONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE 1
167
167
168
+ /**
169
+ * @brief Un-comment to use mbedtls instead of tinycrypt.
170
+ * @details This could save approximately 8k of flash if already using mbedtls for other functionality.
171
+ */
172
+ // #define CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS 1
173
+
168
174
/**********************************
169
175
End Arduino user-config
170
176
**********************************/
291
297
#define CONFIG_BT_CONTROLLER_ENABLED 1
292
298
#endif
293
299
300
+ #ifndef CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS
301
+ #define CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS 0
302
+ #endif
303
+
304
+ #ifndef MYNEWT_VAL_BLE_CRYPTO_STACK_MBEDTLS
305
+ #define MYNEWT_VAL_BLE_CRYPTO_STACK_MBEDTLS (CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS)
306
+ #endif
307
+
294
308
#ifdef ESP_PLATFORM
295
309
#ifndef CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY
296
310
#define CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY
325
339
# error Extended advertising is not supported on ESP32.
326
340
# endif
327
341
#endif
342
+
343
+ #ifndef CONFIG_BT_NIMBLE_USE_ESP_TIMER
344
+ #define CONFIG_BT_NIMBLE_USE_ESP_TIMER 1
345
+ #endif
346
+
328
347
#endif // ESP_PLATFORM
329
348
330
349
#if CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV && !CONFIG_BT_NIMBLE_EXT_ADV
You can’t perform that action at this time.
0 commit comments