Skip to content

Commit 7f02055

Browse files
committed
[ESP32-C5] build with Core 3.3.0-RC1
1 parent 20030cc commit 7f02055

7 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
fi
207207
if [[ "$BOARD" =~ "esp32:esp32:esp32c5" ]]; then
208208
arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" --save-prefs ;
209-
arduino --install-boards esp32:esp32:3.3.0-alpha1 ;
209+
arduino --install-boards esp32:esp32:3.3.0-RC1 ;
210210
arduino --board $BOARD --save-prefs ;
211211
arduino --pref "custom_CPUFreq=esp32c5_80" --save-prefs ;
212212
arduino --pref "custom_DebugLevel=esp32c5_none" --save-prefs ;

software/firmware/source/SkyView/BluetoothHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#include "SkyView.h"
3535

36-
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
36+
#if !defined(CONFIG_BT_ENABLED)
3737
#error Bluetooth is not enabled!
3838
#endif
3939

software/firmware/source/SkyView/Platform_ESP32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
#define SOC_GPIO_PIN_USB_DP 19 /* D1 */
251251
#define SOC_GPIO_PIN_USB_DN 18 /* D2 */
252252

253-
#if defined(CONFIG_IDF_TARGET_ESP32C5) || defined(CONFIG_IDF_TARGET_ESP32C6)
253+
#if defined(CONFIG_IDF_TARGET_ESP32C6)
254254
#define USE_NIMBLE
255255
#endif
256256
#define EXCLUDE_AUDIO

software/firmware/source/SkyWatch/BluetoothHelper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#if !defined(USE_ARDUINOBLE)
3030

31-
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
31+
#if !defined(CONFIG_BT_ENABLED)
3232
#error Bluetooth is not enabled!
3333
#endif
3434

@@ -49,7 +49,9 @@
4949
#include <BLE2902.h>
5050
#endif /* USE_NIMBLE */
5151

52+
#if !defined(CONFIG_IDF_TARGET_ESP32C5)
5253
#include "esp_gap_bt_api.h"
54+
#endif /* CONFIG_IDF_TARGET_ESP32C5 */
5355

5456
#include "EEPROMHelper.h"
5557
#include "BluetoothHelper.h"

software/firmware/source/SkyWatch/Platform_ESP32.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ extern PCF8563_Class *rtc;
251251
#define SOC_GPIO_PIN_GNSS_RX SOC_GPIO_PIN_TULTIMA_ESP_HS
252252
#define SOC_GPIO_PIN_GNSS_TX SOC_GPIO_PIN_TULTIMA_ESP_DR
253253

254+
#if defined(CONFIG_IDF_TARGET_ESP32C6)
254255
#define USE_NIMBLE
256+
#endif
257+
255258
//#define USE_ARDUINOBLE
256259
#if defined(USE_ARDUINOBLE)
257260
extern IODev_ops_t ArdBLE_Bluetooth_ops;

software/firmware/source/SoftRF/src/platform/ESP32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ extern const USB_Device_List_t supported_USB_devices[];
533533
#undef ENABLE_PROL
534534
#if defined(CONFIG_IDF_TARGET_ESP32C5)
535535
//#define EXCLUDE_BLUETOOTH
536-
#define USE_NIMBLE
536+
//#define USE_NIMBLE
537537
#define USE_SOFTSPI
538538
#elif defined(CONFIG_IDF_TARGET_ESP32C6)
539539
#define USE_NIMBLE

software/firmware/source/SoftRF/src/platform/bluetooth/Bluedroid.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "../../system/SoC.h"
2323

24-
#if defined(CONFIG_BLUEDROID_ENABLED) && !defined(USE_NIMBLE) && !defined(USE_ARDUINOBLE)
24+
#if !defined(EXCLUDE_BLUETOOTH) && !defined(USE_NIMBLE) && !defined(USE_ARDUINOBLE)
2525
/*
2626
* BLE code is based on Neil Kolban example for IDF:
2727
* https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp
@@ -32,7 +32,9 @@
3232
#include <BLEServer.h>
3333
#include <BLE2902.h>
3434

35+
#if !defined(CONFIG_IDF_TARGET_ESP32C5)
3536
#include "esp_gap_bt_api.h"
37+
#endif /* CONFIG_IDF_TARGET_ESP32C5 */
3638

3739
#include "../../driver/EEPROM.h"
3840
#include "../../driver/Bluetooth.h"

0 commit comments

Comments
 (0)