Added the DoIT ESPduino-32 board (#1520)

This commit is contained in:
Alex 2020-10-03 01:06:40 +01:00 committed by GitHub
parent f76ec4f50b
commit 3570d48eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 116 additions and 0 deletions

View File

@ -2114,6 +2114,61 @@ esp32doit-devkit-v1.menu.DebugLevel.debug.build.code_debug=4
##############################################################
esp32doit-espduino.name=DOIT ESPduino32
esp32doit-espduino.upload.tool=esptool
esp32doit-espduino.upload.maximum_size=1310720
esp32doit-espduino.upload.maximum_data_size=327680
esp32doit-espduino.upload.wait_for_upload_port=true
esp32doit-espduino.serial.disableDTR=true
esp32doit-espduino.serial.disableRTS=true
esp32doit-espduino.build.mcu=esp32
esp32doit-espduino.build.core=esp32
esp32doit-espduino.build.variant=doitESPduino32
esp32doit-espduino.build.board=ESP32_DEV
esp32doit-espduino.build.f_cpu=240000000L
esp32doit-espduino.build.flash_mode=dio
esp32doit-espduino.build.flash_size=4MB
esp32doit-espduino.build.boot=dio
esp32doit-espduino.build.partitions=default
esp32doit-espduino.build.defines=
esp32doit-espduino.menu.FlashFreq.80=80MHz
esp32doit-espduino.menu.FlashFreq.80.build.flash_freq=80m
esp32doit-espduino.menu.FlashFreq.40=40MHz
esp32doit-espduino.menu.FlashFreq.40.build.flash_freq=40m
esp32doit-espduino.menu.UploadSpeed.921600=921600
esp32doit-espduino.menu.UploadSpeed.921600.upload.speed=921600
esp32doit-espduino.menu.UploadSpeed.115200=115200
esp32doit-espduino.menu.UploadSpeed.115200.upload.speed=115200
esp32doit-espduino.menu.UploadSpeed.256000.windows=256000
esp32doit-espduino.menu.UploadSpeed.256000.upload.speed=256000
esp32doit-espduino.menu.UploadSpeed.230400.windows.upload.speed=256000
esp32doit-espduino.menu.UploadSpeed.230400=230400
esp32doit-espduino.menu.UploadSpeed.230400.upload.speed=230400
esp32doit-espduino.menu.UploadSpeed.460800.linux=460800
esp32doit-espduino.menu.UploadSpeed.460800.macosx=460800
esp32doit-espduino.menu.UploadSpeed.460800.upload.speed=460800
esp32doit-espduino.menu.UploadSpeed.512000.windows=512000
esp32doit-espduino.menu.UploadSpeed.512000.upload.speed=512000
esp32doit-espduino.menu.DebugLevel.none=None
esp32doit-espduino.menu.DebugLevel.none.build.code_debug=0
esp32doit-espduino.menu.DebugLevel.error=Error
esp32doit-espduino.menu.DebugLevel.error.build.code_debug=1
esp32doit-espduino.menu.DebugLevel.warn=Warn
esp32doit-espduino.menu.DebugLevel.warn.build.code_debug=2
esp32doit-espduino.menu.DebugLevel.info=Info
esp32doit-espduino.menu.DebugLevel.info.build.code_debug=3
esp32doit-espduino.menu.DebugLevel.debug=Debug
esp32doit-espduino.menu.DebugLevel.debug.build.code_debug=4
##############################################################
esp32-evb.name=OLIMEX ESP32-EVB
esp32-evb.upload.tool=esptool_py

View File

@ -0,0 +1,61 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS 40
#define NUM_ANALOG_INPUTS 16
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)
static const uint8_t LED_BUILTIN = 2;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
static const uint8_t SDA = 21;
static const uint8_t SCL = 22;
//SPI
static const uint8_t IO5 = 5; //SS
static const uint8_t IO23 = 23; //MOSI
static const uint8_t IO19 = 19; //MISO
static const uint8_t IO18 = 18; //SCK
//ANALOG
static const uint8_t IO36 = 36;
static const uint8_t IO39 = 39;
static const uint8_t IO4 = 4;
static const uint8_t IO2 = 2;
static const uint8_t IO35 = 35;
//ANALOG+
static const uint8_t IO15 = 15;
static const uint8_t IO33 = 33;
static const uint8_t IO32 = 32;
static const uint8_t IO0 = 0;
//DIGITAL
static const uint8_t IO13 = 13;
static const uint8_t IO12 = 12;
static const uint8_t IO14 = 14;
static const uint8_t IO27 = 27;
static const uint8_t IO16 = 16;
static const uint8_t IO17 = 17;
static const uint8_t IO25 = 25;
static const uint8_t IO26 = 26;
static const uint8_t TX0 = 1;
static const uint8_t RX0 = 3;
//TFlash(uSD)
static const uint8_t SD2 = 9;
static const uint8_t SD3 = 10;
static const uint8_t CMD = 11;
static const uint8_t CLK = 6;
static const uint8_t SD0 = 7;
static const uint8_t SD1 = 8;
// ESP-WROOM-32 does not have GPIO 14, 20(NC), 24, 28, 29, 30, 31, 36, 37, 38, 40+
// All pins should be PWM capable. The board is a clone of WeMos D1 R32.
#endif /* Pins_Arduino_h */