Skip to content

Commit 05e2abc

Browse files
authored
feat: Add board support for ThingPulse ePulse Feather (#9256)
* feat: Rename Firebeetle ESP32 board definition * feat: Add board support for ThingPulse ePulse Feather * Added missing flash_type, removed unavailable partition schemes * Set some unspecified pins to -1 * epulse_feather: Modified PSRAM definitions * Update boards.txt
1 parent e5330d1 commit 05e2abc

File tree

2 files changed

+164
-0
lines changed

2 files changed

+164
-0
lines changed

Diff for: boards.txt

+111
Original file line numberDiff line numberDiff line change
@@ -33620,3 +33620,114 @@ makergo_c3_supermini.menu.EraseFlash.all=Enabled
3362033620
makergo_c3_supermini.menu.EraseFlash.all.upload.erase_cmd=-e
3362133621

3362233622
##############################################################
33623+
# ThingPulse ePulse Feather
33624+
33625+
epulse_feather.name=ThingPulse ePulse Feather
33626+
33627+
epulse_feather.bootloader.tool=esptool_py
33628+
epulse_feather.bootloader.tool.default=esptool_py
33629+
33630+
epulse_feather.upload.tool=esptool_py
33631+
epulse_feather.upload.tool.default=esptool_py
33632+
epulse_feather.upload.tool.network=esp_ota
33633+
33634+
epulse_feather.upload.maximum_size=1310720
33635+
epulse_feather.upload.maximum_data_size=327680
33636+
epulse_feather.upload.flags=
33637+
epulse_feather.upload.extra_flags=
33638+
33639+
epulse_feather.serial.disableDTR=true
33640+
epulse_feather.serial.disableRTS=true
33641+
33642+
epulse_feather.build.tarch=xtensa
33643+
epulse_feather.build.bootloader_addr=0x1000
33644+
epulse_feather.build.target=esp32
33645+
epulse_feather.build.mcu=esp32
33646+
epulse_feather.build.core=esp32
33647+
epulse_feather.build.variant=thingpulse_epulse_feather
33648+
epulse_feather.build.board=THINGPULSE_EPULSE_FEATHER
33649+
33650+
epulse_feather.build.f_cpu=240000000L
33651+
epulse_feather.build.flash_size=8MB
33652+
epulse_feather.build.flash_freq=80m
33653+
epulse_feather.build.flash_mode=dio
33654+
epulse_feather.build.boot=dio
33655+
epulse_feather.build.partitions=default_8MB
33656+
epulse_feather.build.defines=
33657+
epulse_feather.build.loop_core=
33658+
epulse_feather.build.event_core=
33659+
33660+
epulse_feather.menu.PSRAM.enabled=Enabled
33661+
epulse_feather.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
33662+
epulse_feather.menu.PSRAM.disabled=Disabled
33663+
epulse_feather.menu.PSRAM.disabled.build.defines=
33664+
33665+
epulse_feather.menu.LoopCore.1=Core 1
33666+
epulse_feather.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
33667+
epulse_feather.menu.LoopCore.0=Core 0
33668+
epulse_feather.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
33669+
33670+
epulse_feather.menu.EventsCore.1=Core 1
33671+
epulse_feather.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
33672+
epulse_feather.menu.EventsCore.0=Core 0
33673+
epulse_feather.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
33674+
33675+
epulse_feather.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
33676+
epulse_feather.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
33677+
epulse_feather.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
33678+
epulse_feather.menu.PartitionScheme.max_app_8MB=Maximum APP (7.9MB APP No OTA/No FS)
33679+
epulse_feather.menu.PartitionScheme.max_app_8MB.build.partitions=max_app_8MB
33680+
epulse_feather.menu.PartitionScheme.max_app_8MB.upload.maximum_size=8257536
33681+
33682+
epulse_feather.menu.CPUFreq.240=240MHz (WiFi/BT)
33683+
epulse_feather.menu.CPUFreq.240.build.f_cpu=240000000L
33684+
epulse_feather.menu.CPUFreq.160=160MHz (WiFi/BT)
33685+
epulse_feather.menu.CPUFreq.160.build.f_cpu=160000000L
33686+
epulse_feather.menu.CPUFreq.80=80MHz (WiFi/BT)
33687+
epulse_feather.menu.CPUFreq.80.build.f_cpu=80000000L
33688+
epulse_feather.menu.CPUFreq.40=40MHz
33689+
epulse_feather.menu.CPUFreq.40.build.f_cpu=40000000L
33690+
epulse_feather.menu.CPUFreq.20=20MHz
33691+
epulse_feather.menu.CPUFreq.20.build.f_cpu=20000000L
33692+
epulse_feather.menu.CPUFreq.10=10MHz
33693+
epulse_feather.menu.CPUFreq.10.build.f_cpu=10000000L
33694+
33695+
epulse_feather.menu.FlashFreq.80=80MHz
33696+
epulse_feather.menu.FlashFreq.80.build.flash_freq=80m
33697+
epulse_feather.menu.FlashFreq.40=40MHz
33698+
epulse_feather.menu.FlashFreq.40.build.flash_freq=40m
33699+
33700+
epulse_feather.menu.UploadSpeed.921600=921600
33701+
epulse_feather.menu.UploadSpeed.921600.upload.speed=921600
33702+
epulse_feather.menu.UploadSpeed.115200=115200
33703+
epulse_feather.menu.UploadSpeed.115200.upload.speed=115200
33704+
epulse_feather.menu.UploadSpeed.256000.windows=256000
33705+
epulse_feather.menu.UploadSpeed.256000.upload.speed=256000
33706+
epulse_feather.menu.UploadSpeed.230400.windows.upload.speed=256000
33707+
epulse_feather.menu.UploadSpeed.230400=230400
33708+
epulse_feather.menu.UploadSpeed.230400.upload.speed=230400
33709+
epulse_feather.menu.UploadSpeed.460800.linux=460800
33710+
epulse_feather.menu.UploadSpeed.460800.macosx=460800
33711+
epulse_feather.menu.UploadSpeed.460800.upload.speed=460800
33712+
epulse_feather.menu.UploadSpeed.512000.windows=512000
33713+
epulse_feather.menu.UploadSpeed.512000.upload.speed=512000
33714+
33715+
epulse_feather.menu.DebugLevel.none=None
33716+
epulse_feather.menu.DebugLevel.none.build.code_debug=0
33717+
epulse_feather.menu.DebugLevel.error=Error
33718+
epulse_feather.menu.DebugLevel.error.build.code_debug=1
33719+
epulse_feather.menu.DebugLevel.warn=Warn
33720+
epulse_feather.menu.DebugLevel.warn.build.code_debug=2
33721+
epulse_feather.menu.DebugLevel.info=Info
33722+
epulse_feather.menu.DebugLevel.info.build.code_debug=3
33723+
epulse_feather.menu.DebugLevel.debug=Debug
33724+
epulse_feather.menu.DebugLevel.debug.build.code_debug=4
33725+
epulse_feather.menu.DebugLevel.verbose=Verbose
33726+
epulse_feather.menu.DebugLevel.verbose.build.code_debug=5
33727+
33728+
epulse_feather.menu.EraseFlash.none=Disabled
33729+
epulse_feather.menu.EraseFlash.none.upload.erase_cmd=
33730+
epulse_feather.menu.EraseFlash.all=Enabled
33731+
epulse_feather.menu.EraseFlash.all.upload.erase_cmd=-e
33732+
33733+
##############################################################

Diff for: variants/thingpulse_epulse_feather/pins_arduino.h

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
static const uint8_t LED_BUILTIN = -1;
7+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
8+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
9+
10+
static const uint8_t SDA = 23;
11+
static const uint8_t SCL = 22;
12+
13+
static const uint8_t MOSI = 18;
14+
static const uint8_t MISO = 19;
15+
static const uint8_t SCK = 5;
16+
static const uint8_t SS = -1;
17+
18+
// mapping to match other feathers and also in order
19+
static const uint8_t A0 = 26;
20+
static const uint8_t A1 = 25;
21+
static const uint8_t A2 = 34;
22+
static const uint8_t A3 = 39;
23+
static const uint8_t A4 = 36;
24+
static const uint8_t A5 = 4;
25+
static const uint8_t A6 = 14;
26+
static const uint8_t A7 = 32;
27+
static const uint8_t A8 = 15;
28+
static const uint8_t A9 = 33;
29+
static const uint8_t A10 = 27;
30+
static const uint8_t A11 = 12;
31+
static const uint8_t A12 = 13;
32+
33+
// vbat measure
34+
static const uint8_t BATT_MONITOR = 35; // Note: voltage divider 2.2M/4.7M
35+
static const uint8_t A13 = 35;
36+
//static const uint8_t Ax = 0; // not used/available
37+
//static const uint8_t Ax = 2; // not used/available? GPIO02 is available!
38+
39+
// touch inputs
40+
static const uint8_t T0 = 4;
41+
static const uint8_t T2 = 2;
42+
static const uint8_t T3 = 15;
43+
static const uint8_t T4 = 13;
44+
static const uint8_t T5 = 12;
45+
static const uint8_t T6 = 14;
46+
static const uint8_t T7 = 27;
47+
static const uint8_t T8 = 33;
48+
static const uint8_t T9 = 32;
49+
50+
static const uint8_t DAC1 = 25;
51+
static const uint8_t DAC2 = 26;
52+
53+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)