mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Update platformio/espressif32 to the latest 6.7.0 (#3899)
* Bump platfomio/espressif32 version to latest 6.7.0 * Fix deprecated constants * Remove pin defs already defined by the framework * ESP_EXT1_WAKEUP_ALL_LOW is deprecated for any target except esp32 * Enable LTO and use newlib nano flavor * Make trunk happy * Respect build_unflags of base env * Recover float printfing * Disable BLE_SM_PAIR_AUTHREQ_SC * Distribute BLE_SM_PAIR_KEY_DIST_ID too --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
parent
a12b9922ed
commit
0c9da9aec7
@ -1,7 +1,7 @@
|
|||||||
; Common settings for ESP targes, mixin with extends = esp32_base
|
; Common settings for ESP targes, mixin with extends = esp32_base
|
||||||
[esp32_base]
|
[esp32_base]
|
||||||
extends = arduino_base
|
extends = arduino_base
|
||||||
platform = platformio/espressif32@6.3.2 # This is a temporary fix to the S3-based devices bluetooth issues until we can determine what within ESP-IDF changed and can develop a suitable patch.
|
platform = platformio/espressif32@6.7.0
|
||||||
|
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2040> -<mesh/eth/> -<mesh/raspihttp>
|
${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2040> -<mesh/eth/> -<mesh/raspihttp>
|
||||||
@ -15,8 +15,10 @@ board_build.filesystem = littlefs
|
|||||||
# Remove -DMYNEWT_VAL_BLE_HS_LOG_LVL=LOG_LEVEL_CRITICAL for low level BLE logging.
|
# Remove -DMYNEWT_VAL_BLE_HS_LOG_LVL=LOG_LEVEL_CRITICAL for low level BLE logging.
|
||||||
# See library directory for BLE logging possible values: .pio/libdeps/tbeam/NimBLE-Arduino/src/log_common/log_common.h
|
# See library directory for BLE logging possible values: .pio/libdeps/tbeam/NimBLE-Arduino/src/log_common/log_common.h
|
||||||
# This overrides the BLE logging default of LOG_LEVEL_INFO (1) from: .pio/libdeps/tbeam/NimBLE-Arduino/src/esp_nimble_cfg.h
|
# This overrides the BLE logging default of LOG_LEVEL_INFO (1) from: .pio/libdeps/tbeam/NimBLE-Arduino/src/esp_nimble_cfg.h
|
||||||
|
build_unflags = -fno-lto
|
||||||
build_flags =
|
build_flags =
|
||||||
${arduino_base.build_flags}
|
${arduino_base.build_flags}
|
||||||
|
-flto
|
||||||
-Wall
|
-Wall
|
||||||
-Wextra
|
-Wextra
|
||||||
-Isrc/platform/esp32
|
-Isrc/platform/esp32
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# trunk-ignore-all(ruff/F821)
|
||||||
|
# trunk-ignore-all(flake8/F821): For SConstruct imports
|
||||||
import sys
|
import sys
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
|
||||||
@ -60,6 +62,7 @@ if platform.name == "espressif32":
|
|||||||
import esptool
|
import esptool
|
||||||
|
|
||||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", esp32_create_combined_bin)
|
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", esp32_create_combined_bin)
|
||||||
|
env.Append(LINKFLAGS=["--specs=nano.specs", "-u", "_printf_float"])
|
||||||
|
|
||||||
Import("projenv")
|
Import("projenv")
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ RTC_NOINIT_ATTR uint64_t RTC_reg_b;
|
|||||||
|
|
||||||
esp_adc_cal_characteristics_t *adc_characs = (esp_adc_cal_characteristics_t *)calloc(1, sizeof(esp_adc_cal_characteristics_t));
|
esp_adc_cal_characteristics_t *adc_characs = (esp_adc_cal_characteristics_t *)calloc(1, sizeof(esp_adc_cal_characteristics_t));
|
||||||
#ifndef ADC_ATTENUATION
|
#ifndef ADC_ATTENUATION
|
||||||
static const adc_atten_t atten = ADC_ATTEN_DB_11;
|
static const adc_atten_t atten = ADC_ATTEN_DB_12;
|
||||||
#else
|
#else
|
||||||
static const adc_atten_t atten = ADC_ATTENUATION;
|
static const adc_atten_t atten = ADC_ATTENUATION;
|
||||||
#endif
|
#endif
|
||||||
|
@ -157,7 +157,9 @@ void NimbleBluetooth::setup()
|
|||||||
NimBLEDevice::setPower(ESP_PWR_LVL_P9);
|
NimBLEDevice::setPower(ESP_PWR_LVL_P9);
|
||||||
|
|
||||||
if (config.bluetooth.mode != meshtastic_Config_BluetoothConfig_PairingMode_NO_PIN) {
|
if (config.bluetooth.mode != meshtastic_Config_BluetoothConfig_PairingMode_NO_PIN) {
|
||||||
NimBLEDevice::setSecurityAuth(true, true, true);
|
NimBLEDevice::setSecurityAuth(BLE_SM_PAIR_AUTHREQ_BOND | BLE_SM_PAIR_AUTHREQ_MITM | BLE_SM_PAIR_AUTHREQ_SC);
|
||||||
|
NimBLEDevice::setSecurityInitKey(BLE_SM_PAIR_KEY_DIST_ENC | BLE_SM_PAIR_KEY_DIST_ID);
|
||||||
|
NimBLEDevice::setSecurityRespKey(BLE_SM_PAIR_KEY_DIST_ENC | BLE_SM_PAIR_KEY_DIST_ID);
|
||||||
NimBLEDevice::setSecurityIOCap(BLE_HS_IO_DISPLAY_ONLY);
|
NimBLEDevice::setSecurityIOCap(BLE_HS_IO_DISPLAY_ONLY);
|
||||||
}
|
}
|
||||||
bleServer = NimBLEDevice::createServer();
|
bleServer = NimBLEDevice::createServer();
|
||||||
|
@ -218,7 +218,12 @@ void cpuDeepSleep(uint32_t msecToWake)
|
|||||||
// just the first) gpio_pullup_en((gpio_num_t)BUTTON_PIN);
|
// just the first) gpio_pullup_en((gpio_num_t)BUTTON_PIN);
|
||||||
|
|
||||||
#if SOC_PM_SUPPORT_EXT_WAKEUP
|
#if SOC_PM_SUPPORT_EXT_WAKEUP
|
||||||
|
#ifdef CONFIG_IDF_TARGET_ESP32
|
||||||
|
// ESP_EXT1_WAKEUP_ALL_LOW has been deprecated since esp-idf v5.4 for any other target.
|
||||||
esp_sleep_enable_ext1_wakeup(gpioMask, ESP_EXT1_WAKEUP_ALL_LOW);
|
esp_sleep_enable_ext1_wakeup(gpioMask, ESP_EXT1_WAKEUP_ALL_LOW);
|
||||||
|
#else
|
||||||
|
esp_sleep_enable_ext1_wakeup(gpioMask, ESP_EXT1_WAKEUP_ANY_LOW);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -11,15 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) \
|
|
||||||
(((p) < 48) ? (p) : -1) // Maybe it should be <= 48 but this is from a trustworthy source so it is likely correct
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// Serial
|
// Serial
|
||||||
static const uint8_t TX = UART_TX;
|
static const uint8_t TX = UART_TX;
|
||||||
static const uint8_t RX = UART_RX;
|
static const uint8_t RX = UART_RX;
|
||||||
|
@ -11,15 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) \
|
|
||||||
(((p) < 48) ? (p) : -1) // Maybe it should be <= 48 but this is from a trustworthy source so it is likely correct
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// Serial
|
// Serial
|
||||||
static const uint8_t TX = UART_TX;
|
static const uint8_t TX = UART_TX;
|
||||||
static const uint8_t RX = UART_RX;
|
static const uint8_t RX = UART_RX;
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// The default Wire will be mapped to PMU and RTC
|
// The default Wire will be mapped to PMU and RTC
|
||||||
static const uint8_t SDA = 15;
|
static const uint8_t SDA = 15;
|
||||||
static const uint8_t SCL = 16;
|
static const uint8_t SCL = 16;
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
|
||||||
#define NUM_DIGITAL_PINS 22
|
|
||||||
#define NUM_ANALOG_INPUTS 6
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < NUM_ANALOG_INPUTS) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < NUM_DIGITAL_PINS) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
|
||||||
|
|
||||||
static const uint8_t TX = 21;
|
static const uint8_t TX = 21;
|
||||||
static const uint8_t RX = 20;
|
static const uint8_t RX = 20;
|
||||||
|
|
||||||
|
@ -7,14 +7,6 @@
|
|||||||
#define DISPLAY_HEIGHT 64
|
#define DISPLAY_HEIGHT 64
|
||||||
#define DISPLAY_WIDTH 128
|
#define DISPLAY_WIDTH 128
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 40
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 35;
|
static const uint8_t LED_BUILTIN = 35;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
@ -7,14 +7,6 @@
|
|||||||
#define DISPLAY_HEIGHT 64
|
#define DISPLAY_HEIGHT 64
|
||||||
#define DISPLAY_WIDTH 128
|
#define DISPLAY_WIDTH 128
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 40
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 35;
|
static const uint8_t LED_BUILTIN = 35;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
@ -11,18 +11,10 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
static const uint8_t LED_BUILTIN = 18;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -11,18 +11,10 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
static const uint8_t LED_BUILTIN = 18;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
|
||||||
#define NUM_DIGITAL_PINS 22
|
|
||||||
#define NUM_ANALOG_INPUTS 6
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < NUM_ANALOG_INPUTS) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < NUM_DIGITAL_PINS) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
|
||||||
|
|
||||||
static const uint8_t TX = -1; // 21;
|
static const uint8_t TX = -1; // 21;
|
||||||
static const uint8_t RX = -1; // 20;
|
static const uint8_t RX = -1; // 20;
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 20
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
static const uint8_t TX = 1;
|
static const uint8_t TX = 1;
|
||||||
static const uint8_t RX = 3;
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 40
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
#define TX2 -1
|
#define TX2 -1
|
||||||
#define RX2 -1
|
#define RX2 -1
|
||||||
|
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// The default Wire will be mapped to PMU and RTC
|
// The default Wire will be mapped to PMU and RTC
|
||||||
static const uint8_t SDA = 18;
|
static const uint8_t SDA = 18;
|
||||||
static const uint8_t SCL = 17;
|
static const uint8_t SCL = 17;
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// The default Wire will be mapped to PMU and RTC
|
// The default Wire will be mapped to PMU and RTC
|
||||||
static const uint8_t SDA = 18;
|
static const uint8_t SDA = 18;
|
||||||
static const uint8_t SCL = 17;
|
static const uint8_t SCL = 17;
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 40
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
#define LED_GREEN 12
|
#define LED_GREEN 12
|
||||||
#define LED_BLUE 2
|
#define LED_BLUE 2
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 40
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
#define LED_GREEN 12
|
#define LED_GREEN 12
|
||||||
#define LED_BLUE 2
|
#define LED_BLUE 2
|
||||||
|
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) <= 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// GPIO48 Reference: https://github.com/espressif/arduino-esp32/pull/8600
|
// GPIO48 Reference: https://github.com/espressif/arduino-esp32/pull/8600
|
||||||
|
|
||||||
// The default Wire will be mapped to Screen and Sensors
|
// The default Wire will be mapped to Screen and Sensors
|
||||||
|
@ -8,7 +8,9 @@ upload_protocol = esptool
|
|||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32s3_base.lib_deps}
|
${esp32s3_base.lib_deps}
|
||||||
build_unflags = -DARDUINO_USB_MODE=1
|
build_unflags =
|
||||||
|
${esp32s3_base.build_unflags}
|
||||||
|
-DARDUINO_USB_MODE=1
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32s3_base.build_flags} -D STATION_G2 -I variants/station-g2
|
${esp32s3_base.build_flags} -D STATION_G2 -I variants/station-g2
|
||||||
-DBOARD_HAS_PSRAM
|
-DBOARD_HAS_PSRAM
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < NUM_ANALOG_INPUTS) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < NUM_DIGITAL_PINS) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
|
||||||
|
|
||||||
// static const uint8_t LED_BUILTIN = -1;
|
// static const uint8_t LED_BUILTIN = -1;
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < NUM_ANALOG_INPUTS) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < NUM_DIGITAL_PINS) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
|
||||||
|
|
||||||
// static const uint8_t LED_BUILTIN = -1;
|
// static const uint8_t LED_BUILTIN = -1;
|
||||||
|
|
||||||
// static const uint8_t TX = 43;
|
// static const uint8_t TX = 43;
|
||||||
|
@ -6,14 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
// The default Wire will be mapped to PMU and RTC
|
// The default Wire will be mapped to PMU and RTC
|
||||||
static const uint8_t SDA = 18;
|
static const uint8_t SDA = 18;
|
||||||
static const uint8_t SCL = 17;
|
static const uint8_t SCL = 17;
|
||||||
|
@ -11,18 +11,10 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
static const uint8_t LED_BUILTIN = 18;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -11,18 +11,10 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
static const uint8_t LED_BUILTIN = 18;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -11,18 +11,10 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
|
||||||
#define NUM_DIGITAL_PINS 48
|
|
||||||
#define NUM_ANALOG_INPUTS 20
|
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
static const uint8_t LED_BUILTIN = 18;
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ monitor_speed = 115200
|
|||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
|
|
||||||
build_unflags =
|
build_unflags =
|
||||||
|
${esp32s3_base.build_unflags}
|
||||||
-D ARDUINO_USB_MODE
|
-D ARDUINO_USB_MODE
|
||||||
|
|
||||||
build_flags = ${esp32_base.build_flags}
|
build_flags = ${esp32_base.build_flags}
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
||||||
#define NUM_DIGITAL_PINS 20
|
|
||||||
#define NUM_ANALOG_INPUTS 16
|
|
||||||
|
|
||||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
|
||||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
|
||||||
|
|
||||||
static const uint8_t TX = 1;
|
static const uint8_t TX = 1;
|
||||||
static const uint8_t RX = 3;
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user