Skip to content

Commit e7c9813

Browse files
drondistortionme-no-dev
authored andcommitted
Added Piranha ESP-32 and Metro ESP-32 boards (#3542)
Added two boards from iarduino.ru based on ESP-32
1 parent dd78794 commit e7c9813

File tree

3 files changed

+202
-0
lines changed

3 files changed

+202
-0
lines changed

Diff for: boards.txt

+131
Original file line numberDiff line numberDiff line change
@@ -4523,3 +4523,134 @@ mgbot-iotik32b.menu.DebugLevel.verbose=Verbose
45234523
mgbot-iotik32b.menu.DebugLevel.verbose.build.code_debug=5
45244524

45254525
##############################################################
4526+
piranha_esp-32.name=Piranha ESP-32
4527+
4528+
piranha_esp-32.upload.tool=esptool_py
4529+
piranha_esp-32.upload.maximum_size=1310720
4530+
piranha_esp-32.upload.maximum_data_size=327680
4531+
piranha_esp-32.upload.wait_for_upload_port=true
4532+
4533+
piranha_esp-32.serial.disableDTR=true
4534+
piranha_esp-32.serial.disableRTS=true
4535+
4536+
piranha_esp-32.build.mcu=esp32
4537+
piranha_esp-32.build.core=esp32
4538+
piranha_esp-32.build.variant=piranha_esp-32
4539+
piranha_esp-32.build.board=Piranha
4540+
4541+
piranha_esp-32.build.f_cpu=240000000L
4542+
piranha_esp-32.build.flash_mode=dio
4543+
piranha_esp-32.build.flash_size=4MB
4544+
piranha_esp-32.build.boot=dio
4545+
piranha_esp-32.build.partitions=default
4546+
piranha_esp-32.build.defines=
4547+
4548+
piranha_esp-32.menu.PartitionScheme.default=Default
4549+
piranha_esp-32.menu.PartitionScheme.default.build.partitions=default
4550+
piranha_esp-32.menu.PartitionScheme.no_ota=No OTA (Large APP)
4551+
piranha_esp-32.menu.PartitionScheme.no_ota.build.partitions=no_ota
4552+
piranha_esp-32.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
4553+
piranha_esp-32.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
4554+
piranha_esp-32.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
4555+
piranha_esp-32.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
4556+
4557+
piranha_esp-32.menu.FlashFreq.80=80MHz
4558+
piranha_esp-32.menu.FlashFreq.80.build.flash_freq=80m
4559+
piranha_esp-32.menu.FlashFreq.40=40MHz
4560+
piranha_esp-32.menu.FlashFreq.40.build.flash_freq=40m
4561+
4562+
piranha_esp-32.menu.UploadSpeed.921600=921600
4563+
piranha_esp-32.menu.UploadSpeed.921600.upload.speed=921600
4564+
piranha_esp-32.menu.UploadSpeed.115200=115200
4565+
piranha_esp-32.menu.UploadSpeed.115200.upload.speed=115200
4566+
piranha_esp-32.menu.UploadSpeed.256000.windows=256000
4567+
piranha_esp-32.menu.UploadSpeed.256000.upload.speed=256000
4568+
piranha_esp-32.menu.UploadSpeed.230400.windows.upload.speed=256000
4569+
piranha_esp-32.menu.UploadSpeed.230400=230400
4570+
piranha_esp-32.menu.UploadSpeed.230400.upload.speed=230400
4571+
piranha_esp-32.menu.UploadSpeed.460800.linux=460800
4572+
piranha_esp-32.menu.UploadSpeed.460800.macosx=460800
4573+
piranha_esp-32.menu.UploadSpeed.460800.upload.speed=460800
4574+
piranha_esp-32.menu.UploadSpeed.512000.windows=512000
4575+
piranha_esp-32.menu.UploadSpeed.512000.upload.speed=512000
4576+
4577+
piranha_esp-32.menu.DebugLevel.none=None
4578+
piranha_esp-32.menu.DebugLevel.none.build.code_debug=0
4579+
piranha_esp-32.menu.DebugLevel.error=Error
4580+
piranha_esp-32.menu.DebugLevel.error.build.code_debug=1
4581+
piranha_esp-32.menu.DebugLevel.warn=Warn
4582+
piranha_esp-32.menu.DebugLevel.warn.build.code_debug=2
4583+
piranha_esp-32.menu.DebugLevel.info=Info
4584+
piranha_esp-32.menu.DebugLevel.info.build.code_debug=3
4585+
piranha_esp-32.menu.DebugLevel.debug=Debug
4586+
piranha_esp-32.menu.DebugLevel.debug.build.code_debug=4
4587+
piranha_esp-32.menu.DebugLevel.verbose=Verbose
4588+
piranha_esp-32.menu.DebugLevel.verbose.build.code_debug=5
4589+
4590+
##############################################################
4591+
4592+
metro_esp-32.name=Metro ESP-32
4593+
4594+
metro_esp-32.upload.tool=esptool_py
4595+
metro_esp-32.upload.maximum_size=1310720
4596+
metro_esp-32.upload.maximum_data_size=327680
4597+
metro_esp-32.upload.wait_for_upload_port=true
4598+
4599+
metro_esp-32.serial.disableDTR=true
4600+
metro_esp-32.serial.disableRTS=true
4601+
4602+
metro_esp-32.build.mcu=esp32
4603+
metro_esp-32.build.core=esp32
4604+
metro_esp-32.build.variant=metro_esp-32
4605+
metro_esp-32.build.board=Metro
4606+
4607+
metro_esp-32.build.f_cpu=240000000L
4608+
metro_esp-32.build.flash_mode=dio
4609+
metro_esp-32.build.flash_size=4MB
4610+
metro_esp-32.build.boot=dio
4611+
metro_esp-32.build.partitions=default
4612+
metro_esp-32.build.defines=
4613+
4614+
metro_esp-32.menu.PartitionScheme.default=Default
4615+
metro_esp-32.menu.PartitionScheme.default.build.partitions=default
4616+
metro_esp-32.menu.PartitionScheme.no_ota=No OTA (Large APP)
4617+
metro_esp-32.menu.PartitionScheme.no_ota.build.partitions=no_ota
4618+
metro_esp-32.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
4619+
metro_esp-32.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
4620+
metro_esp-32.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
4621+
metro_esp-32.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
4622+
4623+
metro_esp-32.menu.FlashFreq.80=80MHz
4624+
metro_esp-32.menu.FlashFreq.80.build.flash_freq=80m
4625+
metro_esp-32.menu.FlashFreq.40=40MHz
4626+
metro_esp-32.menu.FlashFreq.40.build.flash_freq=40m
4627+
4628+
metro_esp-32.menu.UploadSpeed.921600=921600
4629+
metro_esp-32.menu.UploadSpeed.921600.upload.speed=921600
4630+
metro_esp-32.menu.UploadSpeed.115200=115200
4631+
metro_esp-32.menu.UploadSpeed.115200.upload.speed=115200
4632+
metro_esp-32.menu.UploadSpeed.256000.windows=256000
4633+
metro_esp-32.menu.UploadSpeed.256000.upload.speed=256000
4634+
metro_esp-32.menu.UploadSpeed.230400.windows.upload.speed=256000
4635+
metro_esp-32.menu.UploadSpeed.230400=230400
4636+
metro_esp-32.menu.UploadSpeed.230400.upload.speed=230400
4637+
metro_esp-32.menu.UploadSpeed.460800.linux=460800
4638+
metro_esp-32.menu.UploadSpeed.460800.macosx=460800
4639+
metro_esp-32.menu.UploadSpeed.460800.upload.speed=460800
4640+
metro_esp-32.menu.UploadSpeed.512000.windows=512000
4641+
metro_esp-32.menu.UploadSpeed.512000.upload.speed=512000
4642+
4643+
metro_esp-32.menu.DebugLevel.none=None
4644+
metro_esp-32.menu.DebugLevel.none.build.code_debug=0
4645+
metro_esp-32.menu.DebugLevel.error=Error
4646+
metro_esp-32.menu.DebugLevel.error.build.code_debug=1
4647+
metro_esp-32.menu.DebugLevel.warn=Warn
4648+
metro_esp-32.menu.DebugLevel.warn.build.code_debug=2
4649+
metro_esp-32.menu.DebugLevel.info=Info
4650+
metro_esp-32.menu.DebugLevel.info.build.code_debug=3
4651+
metro_esp-32.menu.DebugLevel.debug=Debug
4652+
metro_esp-32.menu.DebugLevel.debug.build.code_debug=4
4653+
metro_esp-32.menu.DebugLevel.verbose=Verbose
4654+
metro_esp-32.menu.DebugLevel.verbose.build.code_debug=5
4655+
4656+
##############################################################

Diff for: variants/metro_esp-32/pins_arduino.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const uint8_t LED_BUILTIN = 2;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t KEY_BUILTIN = 0;
18+
19+
static const uint8_t SDA = 21;
20+
static const uint8_t SCL = 22;
21+
22+
static const uint8_t ADR = 12;
23+
24+
#endif /* Pins_Arduino_h */

Diff for: variants/piranha_esp-32/pins_arduino.h

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const uint8_t LED_BUILTIN = 2;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t KEY_BUILTIN = 0;
18+
19+
static const uint8_t TX = 1;
20+
static const uint8_t RX = 3;
21+
22+
static const uint8_t SDA = 21;
23+
static const uint8_t SCL = 22;
24+
25+
static const uint8_t SS = 5;
26+
static const uint8_t MOSI = 23;
27+
static const uint8_t MISO = 19;
28+
static const uint8_t SCK = 18;
29+
30+
static const uint8_t A11 = 0;
31+
static const uint8_t A13 = 15;
32+
static const uint8_t A14 = 13;
33+
static const uint8_t A15 = 12;
34+
static const uint8_t A16 = 14;
35+
static const uint8_t A18 = 25;
36+
static const uint8_t A19 = 26;
37+
38+
static const uint8_t T1 = 0;
39+
static const uint8_t T3 = 15;
40+
static const uint8_t T4 = 13;
41+
static const uint8_t T5 = 12;
42+
static const uint8_t T6 = 14;
43+
44+
static const uint8_t DAC1 = 25;
45+
static const uint8_t DAC2 = 26;
46+
47+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)