Skip to content

Commit 9d0ae7a

Browse files
selfbgme-no-dev
authored andcommitted
Add support for OLIMEX ESP32-EVB and ESP32-GATEWAY boards (espressif#480)
1 parent ad2adce commit 9d0ae7a

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

‎boards.txt‎

Lines changed: 60 additions & 0 deletions
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‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndefPins_Arduino_h
2+
#definePins_Arduino_h
3+
4+
#include<stdint.h>
5+
6+
#defineEXTERNAL_NUM_INTERRUPTS 16
7+
#defineNUM_DIGITAL_PINS 40
8+
#defineNUM_ANALOG_INPUTS 16
9+
10+
#defineanalogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#definedigitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#definedigitalPinHasPWM(p) (p < 34)
13+
14+
15+
staticconstuint8_tKEY_BUILTIN=34;
16+
17+
staticconstuint8_tTX=1;
18+
staticconstuint8_tRX=3;
19+
20+
staticconstuint8_tSDA=13;
21+
staticconstuint8_tSCL=16;
22+
23+
staticconstuint8_tSS=17;
24+
staticconstuint8_tMOSI=2;
25+
staticconstuint8_tMISO=15;
26+
staticconstuint8_tSCK=14;
27+
28+
#endif/* Pins_Arduino_h */
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ifndefPins_Arduino_h
2+
#definePins_Arduino_h
3+
4+
#include<stdint.h>
5+
6+
#defineEXTERNAL_NUM_INTERRUPTS 16
7+
#defineNUM_DIGITAL_PINS 40
8+
#defineNUM_ANALOG_INPUTS 16
9+
10+
#defineanalogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#definedigitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#definedigitalPinHasPWM(p) (p < 34)
13+
14+
staticconstuint8_tLED_BUILTIN=33;
15+
#defineBUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
staticconstuint8_tKEY_BUILTIN=34;
18+
19+
staticconstuint8_tTX=1;
20+
staticconstuint8_tRX=3;
21+
22+
staticconstuint8_tA0=36;
23+
staticconstuint8_tA3=39;
24+
staticconstuint8_tA4=32;
25+
staticconstuint8_tA7=35;
26+
27+
staticconstuint8_tT9=32;
28+
29+
#endif/* Pins_Arduino_h */

0 commit comments

Comments
(0)