Skip to content

Commit ea43175

Browse files
selfbgRaienryu97
authored andcommitted
Add support for OLIMEX ESP32-EVB and ESP32-GATEWAY boards (espressif#480)
1 parent a7a7b88 commit ea43175

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

boards.txt

+60
Original file line numberDiff line numberDiff line change
@@ -761,3 +761,63 @@ esp32doit-devkit-v1.menu.DebugLevel.info=Info
761761
esp32doit-devkit-v1.menu.DebugLevel.info.build.code_debug=3
762762
esp32doit-devkit-v1.menu.DebugLevel.debug=Debug
763763
esp32doit-devkit-v1.menu.DebugLevel.debug.build.code_debug=4
764+
765+
##############################################################
766+
767+
esp32-evb.name=OLIMEX ESP32-EVB
768+
769+
esp32-evb.upload.tool=esptool
770+
esp32-evb.upload.maximum_size=1310720
771+
esp32-evb.upload.maximum_data_size=294912
772+
esp32-evb.upload.wait_for_upload_port=true
773+
774+
esp32-evb.serial.disableDTR=true
775+
esp32-evb.serial.disableRTS=true
776+
777+
esp32-evb.build.mcu=esp32
778+
esp32-evb.build.core=esp32
779+
esp32-evb.build.variant=esp32-evb
780+
esp32-evb.build.board=ESP32-EVB
781+
782+
esp32-evb.build.f_cpu=240000000L
783+
esp32-evb.build.flash_mode=dio
784+
esp32-evb.build.flash_size=4MB
785+
786+
esp32-evb.menu.FlashFreq.80=80MHz
787+
esp32-evb.menu.FlashFreq.80.build.flash_freq=80m
788+
esp32-evb.menu.FlashFreq.40=40MHz
789+
esp32-evb.menu.FlashFreq.40.build.flash_freq=40m
790+
791+
792+
esp32-evb.menu.UploadSpeed.115200=115200
793+
esp32-evb.menu.UploadSpeed.115200.upload.speed=115200
794+
795+
##############################################################
796+
797+
esp32-gateway.name=OLIMEX ESP32-GATEWAY
798+
799+
esp32-gateway.upload.tool=esptool
800+
esp32-gateway.upload.maximum_size=1310720
801+
esp32-gateway.upload.maximum_data_size=294912
802+
esp32-gateway.upload.wait_for_upload_port=true
803+
804+
esp32-gateway.serial.disableDTR=true
805+
esp32-gateway.serial.disableRTS=true
806+
807+
esp32-gateway.build.mcu=esp32
808+
esp32-gateway.build.core=esp32
809+
esp32-gateway.build.variant=esp32-gateway
810+
esp32-gateway.build.board=ESP32-GATEWAY
811+
812+
esp32-gateway.build.f_cpu=240000000L
813+
esp32-gateway.build.flash_mode=dio
814+
esp32-gateway.build.flash_size=4MB
815+
816+
esp32-gateway.menu.FlashFreq.80=80MHz
817+
esp32-gateway.menu.FlashFreq.80.build.flash_freq=80m
818+
esp32-gateway.menu.FlashFreq.40=40MHz
819+
esp32-gateway.menu.FlashFreq.40.build.flash_freq=40m
820+
821+
822+
esp32-gateway.menu.UploadSpeed.115200=115200
823+
esp32-gateway.menu.UploadSpeed.115200.upload.speed=115200

variants/esp32-evb/pins_arduino.h

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
15+
static const uint8_t KEY_BUILTIN = 34;
16+
17+
static const uint8_t TX = 1;
18+
static const uint8_t RX = 3;
19+
20+
static const uint8_t SDA = 13;
21+
static const uint8_t SCL = 16;
22+
23+
static const uint8_t SS = 17;
24+
static const uint8_t MOSI = 2;
25+
static const uint8_t MISO = 15;
26+
static const uint8_t SCK = 14;
27+
28+
#endif /* Pins_Arduino_h */

variants/esp32-gateway/pins_arduino.h

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 = 33;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t KEY_BUILTIN = 34;
18+
19+
static const uint8_t TX = 1;
20+
static const uint8_t RX = 3;
21+
22+
static const uint8_t A0 = 36;
23+
static const uint8_t A3 = 39;
24+
static const uint8_t A4 = 32;
25+
static const uint8_t A7 = 35;
26+
27+
static const uint8_t T9 = 32;
28+
29+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)