Skip to content

Commit d5d59d3

Browse files
authored
Merge branch 'master' into feature/network_refactoring
2 parents 29ab925 + f9bb62a commit d5d59d3

File tree

8 files changed

+220
-7
lines changed

8 files changed

+220
-7
lines changed

Diff for: .github/scripts/find_all_boards.sh

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ boards_array=()
55

66
for line in `grep '.tarch=' boards.txt`; do
77
board_name=$(echo "$line" | cut -d '.' -f1 | cut -d '#' -f1)
8+
# skip esp32c2 as we dont build libs for it
9+
if [ "$board_name" == "esp32c2" ]; then
10+
echo "Skipping 'espressif:esp32:$board_name'"
11+
continue
12+
fi
813
boards_array+=("espressif:esp32:$board_name")
914
echo "Added 'espressif:esp32:$board_name' to array"
1015
done

Diff for: boards.txt

+173-1
Original file line numberDiff line numberDiff line change
@@ -35696,6 +35696,178 @@ epulse_feather.menu.EraseFlash.none.upload.erase_cmd=
3569635696
epulse_feather.menu.EraseFlash.all=Enabled
3569735697
epulse_feather.menu.EraseFlash.all.upload.erase_cmd=-e
3569835698

35699+
##############################################################
35700+
# ThingPulse ePulse Feather C6
35701+
35702+
epulse_feather_c6.name=ThingPulse ePulse Feather C6
35703+
epulse_feather_c6.vid.0=0x303a
35704+
epulse_feather_c6.pid.0=0x1001
35705+
35706+
epulse_feather_c6.bootloader.tool=esptool_py
35707+
epulse_feather_c6.bootloader.tool.default=esptool_py
35708+
35709+
epulse_feather_c6.upload.tool=esptool_py
35710+
epulse_feather_c6.upload.tool.default=esptool_py
35711+
epulse_feather_c6.upload.tool.network=esp_ota
35712+
35713+
epulse_feather_c6.upload.maximum_size=1310720
35714+
epulse_feather_c6.upload.maximum_data_size=327680
35715+
epulse_feather_c6.upload.flags=
35716+
epulse_feather_c6.upload.extra_flags=
35717+
epulse_feather_c6.upload.use_1200bps_touch=false
35718+
epulse_feather_c6.upload.wait_for_upload_port=false
35719+
35720+
epulse_feather_c6.serial.disableDTR=false
35721+
epulse_feather_c6.serial.disableRTS=false
35722+
35723+
epulse_feather_c6.build.tarch=riscv32
35724+
epulse_feather_c6.build.target=esp
35725+
epulse_feather_c6.build.mcu=esp32c6
35726+
epulse_feather_c6.build.core=esp32
35727+
epulse_feather_c6.build.variant=thingpulse_epulse_feather_c6
35728+
epulse_feather_c6.build.board=THINGPULSE_EPULSE_FEATHER_C6
35729+
epulse_feather_c6.build.bootloader_addr=0x0
35730+
35731+
epulse_feather_c6.build.cdc_on_boot=0
35732+
epulse_feather_c6.build.f_cpu=160000000L
35733+
epulse_feather_c6.build.flash_size=4MB
35734+
epulse_feather_c6.build.flash_freq=80m
35735+
epulse_feather_c6.build.flash_mode=qio
35736+
epulse_feather_c6.build.boot=qio
35737+
epulse_feather_c6.build.partitions=default
35738+
epulse_feather_c6.build.defines=
35739+
35740+
epulse_feather_c6.menu.JTAGAdapter.default=Disabled
35741+
epulse_feather_c6.menu.JTAGAdapter.default.build.copy_jtag_files=0
35742+
epulse_feather_c6.menu.JTAGAdapter.builtin=Integrated USB JTAG
35743+
epulse_feather_c6.menu.JTAGAdapter.builtin.build.openocdscript=esp32c6-builtin.cfg
35744+
epulse_feather_c6.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
35745+
epulse_feather_c6.menu.JTAGAdapter.external=FTDI Adapter
35746+
epulse_feather_c6.menu.JTAGAdapter.external.build.openocdscript=esp32c6-ftdi.cfg
35747+
epulse_feather_c6.menu.JTAGAdapter.external.build.copy_jtag_files=1
35748+
epulse_feather_c6.menu.JTAGAdapter.bridge=ESP USB Bridge
35749+
epulse_feather_c6.menu.JTAGAdapter.bridge.build.openocdscript=esp32c6-bridge.cfg
35750+
epulse_feather_c6.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
35751+
35752+
epulse_feather_c6.menu.CDCOnBoot.default=Disabled
35753+
epulse_feather_c6.menu.CDCOnBoot.default.build.cdc_on_boot=0
35754+
epulse_feather_c6.menu.CDCOnBoot.cdc=Enabled
35755+
epulse_feather_c6.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
35756+
35757+
epulse_feather_c6.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
35758+
epulse_feather_c6.menu.PartitionScheme.default.build.partitions=default
35759+
epulse_feather_c6.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
35760+
epulse_feather_c6.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
35761+
epulse_feather_c6.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
35762+
epulse_feather_c6.menu.PartitionScheme.minimal.build.partitions=minimal
35763+
epulse_feather_c6.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
35764+
epulse_feather_c6.menu.PartitionScheme.no_ota.build.partitions=no_ota
35765+
epulse_feather_c6.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
35766+
epulse_feather_c6.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
35767+
epulse_feather_c6.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
35768+
epulse_feather_c6.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
35769+
epulse_feather_c6.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
35770+
epulse_feather_c6.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
35771+
epulse_feather_c6.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
35772+
epulse_feather_c6.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
35773+
epulse_feather_c6.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
35774+
epulse_feather_c6.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
35775+
epulse_feather_c6.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
35776+
epulse_feather_c6.menu.PartitionScheme.huge_app.build.partitions=huge_app
35777+
epulse_feather_c6.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
35778+
epulse_feather_c6.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
35779+
epulse_feather_c6.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
35780+
epulse_feather_c6.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
35781+
epulse_feather_c6.menu.PartitionScheme.rainmaker=RainMaker
35782+
epulse_feather_c6.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
35783+
epulse_feather_c6.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
35784+
epulse_feather_c6.menu.PartitionScheme.zigbee=Zigbee 4MB with spiffs
35785+
epulse_feather_c6.menu.PartitionScheme.zigbee.build.partitions=zigbee
35786+
epulse_feather_c6.menu.PartitionScheme.zigbee.upload.maximum_size=1310720
35787+
epulse_feather_c6.menu.PartitionScheme.zigbee_zczr=Zigbee ZCZR 4MB with spiffs
35788+
epulse_feather_c6.menu.PartitionScheme.zigbee_zczr.build.partitions=zigbee_zczr
35789+
epulse_feather_c6.menu.PartitionScheme.zigbee_zczr.upload.maximum_size=1310720
35790+
epulse_feather_c6.menu.PartitionScheme.custom=Custom
35791+
epulse_feather_c6.menu.PartitionScheme.custom.build.partitions=
35792+
epulse_feather_c6.menu.PartitionScheme.custom.upload.maximum_size=16777216
35793+
35794+
epulse_feather_c6.menu.CPUFreq.160=160MHz (WiFi)
35795+
epulse_feather_c6.menu.CPUFreq.160.build.f_cpu=160000000L
35796+
epulse_feather_c6.menu.CPUFreq.120=120MHz (WiFi)
35797+
epulse_feather_c6.menu.CPUFreq.120.build.f_cpu=120000000L
35798+
epulse_feather_c6.menu.CPUFreq.80=80MHz (WiFi)
35799+
epulse_feather_c6.menu.CPUFreq.80.build.f_cpu=80000000L
35800+
epulse_feather_c6.menu.CPUFreq.40=40MHz
35801+
epulse_feather_c6.menu.CPUFreq.40.build.f_cpu=40000000L
35802+
epulse_feather_c6.menu.CPUFreq.20=20MHz
35803+
epulse_feather_c6.menu.CPUFreq.20.build.f_cpu=20000000L
35804+
epulse_feather_c6.menu.CPUFreq.10=10MHz
35805+
epulse_feather_c6.menu.CPUFreq.10.build.f_cpu=10000000L
35806+
35807+
epulse_feather_c6.menu.FlashMode.qio=QIO
35808+
epulse_feather_c6.menu.FlashMode.qio.build.flash_mode=dio
35809+
epulse_feather_c6.menu.FlashMode.qio.build.boot=qio
35810+
epulse_feather_c6.menu.FlashMode.dio=DIO
35811+
epulse_feather_c6.menu.FlashMode.dio.build.flash_mode=dio
35812+
epulse_feather_c6.menu.FlashMode.dio.build.boot=dio
35813+
35814+
epulse_feather_c6.menu.FlashFreq.80=80MHz
35815+
epulse_feather_c6.menu.FlashFreq.80.build.flash_freq=80m
35816+
epulse_feather_c6.menu.FlashFreq.40=40MHz
35817+
epulse_feather_c6.menu.FlashFreq.40.build.flash_freq=40m
35818+
35819+
epulse_feather_c6.menu.FlashSize.4M=4MB (32Mb)
35820+
epulse_feather_c6.menu.FlashSize.4M.build.flash_size=4MB
35821+
epulse_feather_c6.menu.FlashSize.2M=2MB (16Mb)
35822+
epulse_feather_c6.menu.FlashSize.2M.build.flash_size=2MB
35823+
epulse_feather_c6.menu.FlashSize.2M.build.partitions=minimal
35824+
35825+
epulse_feather_c6.menu.UploadSpeed.921600=921600
35826+
epulse_feather_c6.menu.UploadSpeed.921600.upload.speed=921600
35827+
epulse_feather_c6.menu.UploadSpeed.115200=115200
35828+
epulse_feather_c6.menu.UploadSpeed.115200.upload.speed=115200
35829+
epulse_feather_c6.menu.UploadSpeed.256000.windows=256000
35830+
epulse_feather_c6.menu.UploadSpeed.256000.upload.speed=256000
35831+
epulse_feather_c6.menu.UploadSpeed.230400.windows.upload.speed=256000
35832+
epulse_feather_c6.menu.UploadSpeed.230400=230400
35833+
epulse_feather_c6.menu.UploadSpeed.230400.upload.speed=230400
35834+
epulse_feather_c6.menu.UploadSpeed.460800.linux=460800
35835+
epulse_feather_c6.menu.UploadSpeed.460800.macosx=460800
35836+
epulse_feather_c6.menu.UploadSpeed.460800.upload.speed=460800
35837+
epulse_feather_c6.menu.UploadSpeed.512000.windows=512000
35838+
epulse_feather_c6.menu.UploadSpeed.512000.upload.speed=512000
35839+
35840+
epulse_feather_c6.menu.DebugLevel.none=None
35841+
epulse_feather_c6.menu.DebugLevel.none.build.code_debug=0
35842+
epulse_feather_c6.menu.DebugLevel.error=Error
35843+
epulse_feather_c6.menu.DebugLevel.error.build.code_debug=1
35844+
epulse_feather_c6.menu.DebugLevel.warn=Warn
35845+
epulse_feather_c6.menu.DebugLevel.warn.build.code_debug=2
35846+
epulse_feather_c6.menu.DebugLevel.info=Info
35847+
epulse_feather_c6.menu.DebugLevel.info.build.code_debug=3
35848+
epulse_feather_c6.menu.DebugLevel.debug=Debug
35849+
epulse_feather_c6.menu.DebugLevel.debug.build.code_debug=4
35850+
epulse_feather_c6.menu.DebugLevel.verbose=Verbose
35851+
epulse_feather_c6.menu.DebugLevel.verbose.build.code_debug=5
35852+
35853+
epulse_feather_c6.menu.EraseFlash.none=Disabled
35854+
epulse_feather_c6.menu.EraseFlash.none.upload.erase_cmd=
35855+
epulse_feather_c6.menu.EraseFlash.all=Enabled
35856+
epulse_feather_c6.menu.EraseFlash.all.upload.erase_cmd=-e
35857+
35858+
epulse_feather_c6.menu.ZigbeeMode.default=Disabled
35859+
epulse_feather_c6.menu.ZigbeeMode.default.build.zigbee_mode=
35860+
epulse_feather_c6.menu.ZigbeeMode.default.build.zigbee_libs=
35861+
epulse_feather_c6.menu.ZigbeeMode.ed=Zigbee ED (end device)
35862+
epulse_feather_c6.menu.ZigbeeMode.ed.build.zigbee_mode=-DZIGBEE_MODE_ED
35863+
epulse_feather_c6.menu.ZigbeeMode.ed.build.zigbee_libs=-lesp_zb_api_ed -lesp_zb_cli_command -lzboss_stack.ed.trace -lzboss_stack.ed -lzboss_port
35864+
epulse_feather_c6.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator)
35865+
epulse_feather_c6.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
35866+
epulse_feather_c6.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr.trace -lzboss_stack.zczr -lzboss_port
35867+
epulse_feather_c6.menu.ZigbeeMode.rcp=Zigbee RCP (radio co-processor)
35868+
epulse_feather_c6.menu.ZigbeeMode.rcp.build.zigbee_mode=-DZIGBEE_MODE_RCP
35869+
epulse_feather_c6.menu.ZigbeeMode.rcp.build.zigbee_libs=-lesp_zb_api_rcp -lesp_zb_cli_command -lzboss_stack.rcp -lzboss_port
35870+
3569935871
##############################################################
3570035872

3570135873
Geekble_ESP32C3.name=Geekble ESP32-C3
@@ -35828,4 +36000,4 @@ Geekble_ESP32C3.menu.EraseFlash.none.upload.erase_cmd=
3582836000
Geekble_ESP32C3.menu.EraseFlash.all=Enabled
3582936001
Geekble_ESP32C3.menu.EraseFlash.all.upload.erase_cmd=-e
3583036002

35831-
##############################################################
36003+
##############################################################

Diff for: cores/esp32/MacAddress.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ MacAddress::MacAddress(const char *macstr){
2828
fromString(macstr);
2929
}
3030

31+
MacAddress::MacAddress(const String &macstr){
32+
fromString(macstr.c_str());
33+
}
34+
3135
MacAddress::MacAddress(uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4, uint8_t b5, uint8_t b6) {
3236
_type = MAC6;
3337
memset(_mac.bytes, 0, sizeof(_mac.bytes));

Diff for: cores/esp32/MacAddress.h

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MacAddress : public Printable {
5454
MacAddress(const uint8_t *macbytearray) : MacAddress(MAC6, macbytearray) {}
5555

5656
MacAddress(const char *macstr);
57+
MacAddress(const String &macstr);
5758

5859
virtual ~MacAddress() {}
5960

Diff for: cores/esp32/io_pin_remap.h

-4
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ int8_t gpioNumberToDigitalPin(int8_t gpioNumber);
100100
#define spiAttachSCK(spi, sck) spiAttachSCK(spi, digitalPinToGPIONumber(sck))
101101
#define spiAttachMISO(spi, miso) spiAttachMISO(spi, digitalPinToGPIONumber(miso))
102102
#define spiAttachMOSI(spi, mosi) spiAttachMOSI(spi, digitalPinToGPIONumber(mosi))
103-
#define spiDetachSCK(spi, sck) spiDetachSCK(spi, digitalPinToGPIONumber(sck))
104-
#define spiDetachMISO(spi, miso) spiDetachMISO(spi, digitalPinToGPIONumber(miso))
105-
#define spiDetachMOSI(spi, mosi) spiDetachMOSI(spi, digitalPinToGPIONumber(mosi))
106103
#define spiAttachSS(spi, cs_num, ss) spiAttachSS(spi, cs_num, digitalPinToGPIONumber(ss))
107-
#define spiDetachSS(spi, ss) spiDetachSS(spi, digitalPinToGPIONumber(ss))
108104

109105
// cores/esp32/esp32-hal-touch.h
110106
#define touchInterruptGetLastStatus(pin) touchInterruptGetLastStatus(digitalPinToGPIONumber(pin))

Diff for: libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* source: https://gist.github.com/ukBaz/217875c83c2535d22a16ba38fc8f2a91
99
*
1010
* Tested with Raspberry Pi onboard Wifi/BT, USB BT 4.0 dongles, USB BT 1.1 dongles,
11-
* 202202: does NOT work with USB BT 2.0 dongles when esp32 aduino lib is compiled with SSP support!
11+
* 202202: does NOT work with USB BT 2.0 dongles when esp32 arduino lib is compiled with SSP support!
1212
* see https://github.com/espressif/esp-idf/issues/8394
1313
*
1414
* use ESP_SPP_SEC_ENCRYPT|ESP_SPP_SEC_AUTHENTICATE in connect() if remote side requests 'RequireAuthentication': dbus.Boolean(True),

Diff for: variants/imbrios-logsens-v1p1/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static const uint8_t MOSI = 13;
4545
static const uint8_t MISO = 12;
4646
static const uint8_t SCK = 14;
4747

48-
static const uint8_t SPI_SS1 = 23; // SPI Chip Select - 1; connected to MicroSD Card on the LogSens V1.1 Board
48+
static const uint8_t SS1 = 23; // SPI Chip Select - 1; connected to MicroSD Card on the LogSens V1.1 Board
4949

5050
/* Software Controlled: IO, LEDs and Switches */
5151
static const uint8_t BUZZER_CTRL = 19; // Signal connected to MOSFET gate pin to control conenctor (X8)

Diff for: variants/thingpulse_epulse_feather_c6/pins_arduino.h

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
#define PIN_NEOPIXEL 8
8+
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+PIN_NEOPIXEL;
10+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
11+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
12+
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite()
13+
#define RGB_BUILTIN LED_BUILTIN
14+
#define RGB_BRIGHTNESS 64
15+
16+
static const uint8_t TX = 16;
17+
static const uint8_t RX = 17;
18+
19+
static const uint8_t SDA = 23;
20+
static const uint8_t SCL = 22;
21+
22+
static const uint8_t SS = 18;
23+
static const uint8_t MOSI = 19;
24+
static const uint8_t MISO = 20;
25+
static const uint8_t SCK = 21;
26+
27+
static const uint8_t A0 = 0;
28+
static const uint8_t A1 = 1;
29+
static const uint8_t A2 = 2;
30+
static const uint8_t A3 = 3;
31+
static const uint8_t A4 = 4;
32+
static const uint8_t A5 = 5;
33+
static const uint8_t A6 = 6;
34+
35+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)