Skip to content

Commit 4e29a05

Browse files
Gaya3N25renebohne
andauthored
Add Roboheart Hercules development board to the esp32-core (espressif#7672)
* added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <[email protected]>
1 parent 0fa6672 commit 4e29a05

File tree

2 files changed

+236
-1
lines changed

2 files changed

+236
-1
lines changed

boards.txt

+132-1
Original file line numberDiff line numberDiff line change
@@ -20943,6 +20943,137 @@ esp32c3m1IKit.menu.EraseFlash.all.upload.erase_cmd=-e
2094320943

2094420944
##############################################################
2094520945

20946+
roboheart_hercules.name=RoboHeart Hercules
20947+
20948+
roboheart_hercules.upload.tool=esptool_py
20949+
roboheart_hercules.upload.maximum_size=1310720
20950+
roboheart_hercules.upload.maximum_data_size=327680
20951+
roboheart_hercules.upload.wait_for_upload_port=true
20952+
roboheart_hercules.upload.flags=
20953+
roboheart_hercules.upload.extra_flags=
20954+
20955+
roboheart_hercules.serial.disableDTR=true
20956+
roboheart_hercules.serial.disableRTS=true
20957+
20958+
roboheart_hercules.build.tarch=xtensa
20959+
roboheart_hercules.build.bootloader_addr=0x1000
20960+
roboheart_hercules.build.target=esp32
20961+
roboheart_hercules.build.mcu=esp32
20962+
roboheart_hercules.build.core=esp32
20963+
roboheart_hercules.build.variant=roboheart_hercules
20964+
roboheart_hercules.build.board=roboheart_hercules
20965+
20966+
roboheart_hercules.build.f_cpu=240000000L
20967+
roboheart_hercules.build.flash_size=4MB
20968+
roboheart_hercules.build.flash_freq=40m
20969+
roboheart_hercules.build.flash_mode=dio
20970+
roboheart_hercules.build.boot=dio
20971+
roboheart_hercules.build.partitions=default
20972+
roboheart_hercules.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
20973+
roboheart_hercules.build.extra_libs=
20974+
20975+
roboheart_hercules.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
20976+
roboheart_hercules.menu.PartitionScheme.default.build.partitions=default
20977+
roboheart_hercules.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
20978+
roboheart_hercules.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
20979+
roboheart_hercules.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
20980+
roboheart_hercules.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
20981+
roboheart_hercules.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
20982+
roboheart_hercules.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
20983+
roboheart_hercules.menu.PartitionScheme.minimal.build.partitions=minimal
20984+
roboheart_hercules.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
20985+
roboheart_hercules.menu.PartitionScheme.no_ota.build.partitions=no_ota
20986+
roboheart_hercules.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
20987+
roboheart_hercules.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
20988+
roboheart_hercules.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
20989+
roboheart_hercules.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
20990+
roboheart_hercules.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
20991+
roboheart_hercules.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
20992+
roboheart_hercules.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
20993+
roboheart_hercules.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
20994+
roboheart_hercules.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
20995+
roboheart_hercules.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
20996+
roboheart_hercules.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
20997+
roboheart_hercules.menu.PartitionScheme.huge_app.build.partitions=huge_app
20998+
roboheart_hercules.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
20999+
roboheart_hercules.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
21000+
roboheart_hercules.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
21001+
roboheart_hercules.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
21002+
roboheart_hercules.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
21003+
roboheart_hercules.menu.PartitionScheme.fatflash.build.partitions=ffat
21004+
roboheart_hercules.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
21005+
roboheart_hercules.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
21006+
roboheart_hercules.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
21007+
roboheart_hercules.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
21008+
roboheart_hercules.menu.PartitionScheme.rainmaker=RainMaker
21009+
roboheart_hercules.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
21010+
roboheart_hercules.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
21011+
21012+
roboheart_hercules.menu.CPUFreq.240=240MHz (WiFi/BT)
21013+
roboheart_hercules.menu.CPUFreq.240.build.f_cpu=240000000L
21014+
roboheart_hercules.menu.CPUFreq.160=160MHz (WiFi/BT)
21015+
roboheart_hercules.menu.CPUFreq.160.build.f_cpu=160000000L
21016+
roboheart_hercules.menu.CPUFreq.80=80MHz (WiFi/BT)
21017+
roboheart_hercules.menu.CPUFreq.80.build.f_cpu=80000000L
21018+
roboheart_hercules.menu.CPUFreq.40=40MHz
21019+
roboheart_hercules.menu.CPUFreq.40.build.f_cpu=40000000L
21020+
roboheart_hercules.menu.CPUFreq.20=20MHz
21021+
roboheart_hercules.menu.CPUFreq.20.build.f_cpu=20000000L
21022+
roboheart_hercules.menu.CPUFreq.10=10MHz
21023+
roboheart_hercules.menu.CPUFreq.10.build.f_cpu=10000000L
21024+
21025+
roboheart_hercules.menu.FlashMode.qio=QIO
21026+
roboheart_hercules.menu.FlashMode.qio.build.flash_mode=dio
21027+
roboheart_hercules.menu.FlashMode.qio.build.boot=qio
21028+
roboheart_hercules.menu.FlashMode.dio=DIO
21029+
roboheart_hercules.menu.FlashMode.dio.build.flash_mode=dio
21030+
roboheart_hercules.menu.FlashMode.dio.build.boot=dio
21031+
roboheart_hercules.menu.FlashMode.qout=QOUT
21032+
roboheart_hercules.menu.FlashMode.qout.build.flash_mode=dout
21033+
roboheart_hercules.menu.FlashMode.qout.build.boot=qout
21034+
roboheart_hercules.menu.FlashMode.dout=DOUT
21035+
roboheart_hercules.menu.FlashMode.dout.build.flash_mode=dout
21036+
roboheart_hercules.menu.FlashMode.dout.build.boot=dout
21037+
21038+
roboheart_hercules.menu.FlashFreq.80=80MHz
21039+
roboheart_hercules.menu.FlashFreq.80.build.flash_freq=80m
21040+
roboheart_hercules.menu.FlashFreq.40=40MHz
21041+
roboheart_hercules.menu.FlashFreq.40.build.flash_freq=40m
21042+
21043+
roboheart_hercules.menu.UploadSpeed.921600=921600
21044+
roboheart_hercules.menu.UploadSpeed.921600.upload.speed=921600
21045+
roboheart_hercules.menu.UploadSpeed.115200=115200
21046+
roboheart_hercules.menu.UploadSpeed.115200.upload.speed=115200
21047+
roboheart_hercules.menu.UploadSpeed.256000.windows=256000
21048+
roboheart_hercules.menu.UploadSpeed.256000.upload.speed=256000
21049+
roboheart_hercules.menu.UploadSpeed.230400.windows.upload.speed=256000
21050+
roboheart_hercules.menu.UploadSpeed.230400=230400
21051+
roboheart_hercules.menu.UploadSpeed.230400.upload.speed=230400
21052+
roboheart_hercules.menu.UploadSpeed.460800.linux=460800
21053+
roboheart_hercules.menu.UploadSpeed.460800.macosx=460800
21054+
roboheart_hercules.menu.UploadSpeed.460800.upload.speed=460800
21055+
roboheart_hercules.menu.UploadSpeed.512000.windows=512000
21056+
roboheart_hercules.menu.UploadSpeed.512000.upload.speed=512000
21057+
21058+
roboheart_hercules.menu.DebugLevel.none=None
21059+
roboheart_hercules.menu.DebugLevel.none.build.code_debug=0
21060+
roboheart_hercules.menu.DebugLevel.error=Error
21061+
roboheart_hercules.menu.DebugLevel.error.build.code_debug=1
21062+
roboheart_hercules.menu.DebugLevel.warn=Warn
21063+
roboheart_hercules.menu.DebugLevel.warn.build.code_debug=2
21064+
roboheart_hercules.menu.DebugLevel.info=Info
21065+
roboheart_hercules.menu.DebugLevel.info.build.code_debug=3
21066+
roboheart_hercules.menu.DebugLevel.debug=Debug
21067+
roboheart_hercules.menu.DebugLevel.debug.build.code_debug=4
21068+
roboheart_hercules.menu.DebugLevel.verbose=Verbose
21069+
roboheart_hercules.menu.DebugLevel.verbose.build.code_debug=5
21070+
21071+
roboheart_hercules.menu.EraseFlash.none=Disabled
21072+
roboheart_hercules.menu.EraseFlash.none.upload.erase_cmd=
21073+
roboheart_hercules.menu.EraseFlash.all=Enabled
21074+
roboheart_hercules.menu.EraseFlash.all.upload.erase_cmd=-e
21075+
21076+
##############################################################
2094621077
VALTRACK_V4_VTS_ESP32_C3.name=VALTRACK_V4_VTS_ESP32_C3
2094721078
VALTRACK_V4_VTS_ESP32_C3.vid.0=0x303a
2094821079
VALTRACK_V4_VTS_ESP32_C3.pid.0=0x1001
@@ -21604,4 +21735,4 @@ crabik_slot_esp32_s3.menu.EraseFlash.none.upload.erase_cmd=
2160421735
crabik_slot_esp32_s3.menu.EraseFlash.all=Enabled
2160521736
crabik_slot_esp32_s3.menu.EraseFlash.all.upload.erase_cmd=-e
2160621737

21607-
##############################################################
21738+
##############################################################
+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 20
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
15+
// Motor driver pins
16+
#define MOTOR_A_IN1 25 // PHASE/IN1
17+
#define MOTOR_A_IN2 26 // ENABLE/IN2
18+
19+
#define MOTOR_B_IN1 27 // PHASE/IN1
20+
#define MOTOR_B_IN2 32 // ENABLE/IN2
21+
22+
#define MOTOR_C_IN1 33 // PHASE/IN1
23+
#define MOTOR_C_IN2 4 // ENABLE/IN2
24+
25+
#define SLEEP_MOTOR_ABC 2 // nSLEEP
26+
27+
#define LED_ROBOHEART 14 // Built in LED
28+
#define BUILTIN_LED LED_ROBOHEART // backward compatibility
29+
#define LED_BUILTIN LED_ROBOHEART
30+
31+
#define BUTTON_ROBOHEART 0 // Button
32+
33+
// I2C IMU sensor
34+
#define IMU_SDA 21
35+
#define IMU_SCL 22
36+
37+
#define RXD1 16
38+
#define TXD1 17
39+
40+
// GSM Vela connector board pins
41+
#define GSM_PWRKEY 12
42+
#define GSM_DTR 13
43+
#define GSM_CTS 15
44+
#define GSM_RTS 14
45+
#define GSM_TX TXD1
46+
#define GSM_RX RXD1
47+
#define BATTERY_PIN 36 // Battery ADC pin
48+
49+
static const uint8_t TX = 35;
50+
static const uint8_t RX = 34;
51+
52+
static const uint8_t TXD2 = 17;
53+
static const uint8_t RXD2 = 16;
54+
55+
static const uint8_t SDA = 21;
56+
static const uint8_t SCL = 22;
57+
58+
static const uint8_t SS = 5;
59+
static const uint8_t MOSI = 23;
60+
static const uint8_t MISO = 19;
61+
static const uint8_t SCK = 18;
62+
63+
static const uint8_t G23 = 23;
64+
static const uint8_t G19 = 19;
65+
static const uint8_t G18 = 18;
66+
static const uint8_t G3 = 3;
67+
static const uint8_t G16 = 16;
68+
static const uint8_t G21 = 21;
69+
static const uint8_t G2 = 2;
70+
static const uint8_t G12 = 12;
71+
static const uint8_t G15 = 15;
72+
static const uint8_t G35 = 35;
73+
static const uint8_t G36 = 36;
74+
static const uint8_t G25 = 25;
75+
static const uint8_t G26 = 26;
76+
static const uint8_t G1 = 1;
77+
static const uint8_t G17 = 17;
78+
static const uint8_t G22 = 22;
79+
static const uint8_t G5 = 5;
80+
static const uint8_t G13 = 13;
81+
static const uint8_t G0 = 0;
82+
static const uint8_t G34 = 34;
83+
84+
static const uint8_t DAC1 = 25;
85+
static const uint8_t DAC2 = 26;
86+
87+
static const uint8_t A0 = 36;
88+
static const uint8_t A3 = 39;
89+
static const uint8_t A4 = 32;
90+
static const uint8_t A5 = 33;
91+
static const uint8_t A6 = 34;
92+
static const uint8_t A7 = 35;
93+
static const uint8_t A10 = 4;
94+
static const uint8_t A11 = 0;
95+
static const uint8_t A12 = 2;
96+
static const uint8_t A13 = 15;
97+
static const uint8_t A14 = 13;
98+
static const uint8_t A15 = 12;
99+
static const uint8_t A16 = 14;
100+
static const uint8_t A17 = 27;
101+
static const uint8_t A18 = 25;
102+
static const uint8_t A19 = 26;
103+
104+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)