File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 27
27
#include "esp_private/startup_internal.h"
28
28
#if defined(CONFIG_BT_ENABLED ) && SOC_BT_SUPPORTED
29
29
#include "esp_bt.h"
30
+ #if CONFIG_IDF_TARGET_ESP32
31
+ bool btInUse () {
32
+ return true;
33
+ }
34
+ #else
35
+ bool btInUse () {
36
+ return false;
37
+ }
38
+ #endif
30
39
#endif //CONFIG_BT_ENABLED
31
40
#include <sys/time.h>
32
41
#include "soc/rtc.h"
@@ -243,19 +252,6 @@ bool verifyRollbackLater() {
243
252
}
244
253
#endif
245
254
246
- #ifdef CONFIG_BT_ENABLED
247
- #if CONFIG_IDF_TARGET_ESP32
248
- //overwritten in esp32-hal-bt.c
249
- bool btInUse () __attribute__((weak ));
250
- bool btInUse () {
251
- return false;
252
- }
253
- #else
254
- //from esp32-hal-bt.c
255
- extern bool btInUse ();
256
- #endif
257
- #endif
258
-
259
255
#if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM
260
256
ESP_SYSTEM_INIT_FN (init_psram_new , CORE , BIT (0 ), 99 ) {
261
257
psramInit ();
You can’t perform that action at this time.
0 commit comments