File tree 5 files changed +10
-12
lines changed
5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#include "sdkconfig.h"
16
16
#include "soc/soc_caps.h"
17
- #if defined(CONFIG_BT_ENABLED ) && defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BLE_SUPPORTED
17
+ #if defined(CONFIG_BT_ENABLED ) && defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
18
18
19
19
#include "esp_bt.h"
20
20
#include "esp_bt_main.h"
@@ -102,4 +102,4 @@ bool btStop() {
102
102
return true;
103
103
}
104
104
105
- #endif
105
+ #endif /* CONFIG_BT_ENABLED CONFIG_BLUEDROID_ENABLED SOC_BT_SUPPORTED */
Original file line number Diff line number Diff line change 16
16
#define _ESP32_ESP32_HAL_BT_H_
17
17
18
18
#include "soc/soc_caps.h"
19
- #if SOC_BLE_SUPPORTED
19
+ #if SOC_BT_SUPPORTED
20
20
21
21
#include "esp32-hal.h"
22
22
@@ -40,6 +40,6 @@ bool btStop();
40
40
}
41
41
#endif
42
42
43
- #endif /* SOC_BLE_SUPPORTED */
43
+ #endif /* SOC_BT_SUPPORTED */
44
44
45
45
#endif /* _ESP32_ESP32_HAL_BT_H_ */
Original file line number Diff line number Diff line change 26
26
#include "esp_ota_ops.h"
27
27
#endif //CONFIG_APP_ROLLBACK_ENABLE
28
28
#include "esp_private/startup_internal.h"
29
- #if defined(CONFIG_BT_ENABLED ) && defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BLE_SUPPORTED
29
+ #if defined(CONFIG_BT_ENABLED ) && defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
30
30
#include "esp_bt.h"
31
31
#if CONFIG_IDF_TARGET_ESP32
32
32
bool btInUse () __attribute__((weak ));
@@ -304,7 +304,7 @@ void initArduino() {
304
304
if (err ) {
305
305
log_e ("Failed to initialize NVS! Error: %u" , err );
306
306
}
307
- #if defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BLE_SUPPORTED
307
+ #if defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
308
308
if (!btInUse ()) {
309
309
esp_bt_controller_mem_release (ESP_BT_MODE_BTDM );
310
310
}
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include " sdkconfig.h"
16
-
17
- #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
18
-
19
15
#include " SimpleBLE.h"
16
+ #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED) && SOC_BT_SUPPORTED
17
+
20
18
#include " esp32-hal-log.h"
21
19
22
20
#include " esp_bt.h"
Original file line number Diff line number Diff line change 16
16
#define _SIMPLE_BLE_H_
17
17
18
18
#include " sdkconfig.h"
19
-
20
- #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
19
+ # include " soc/soc_caps.h "
20
+ #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED) && SOC_BT_SUPPORTED
21
21
22
22
#include < cstdint>
23
23
#include < cstdio>
You can’t perform that action at this time.
0 commit comments