add board WiFiduino32 (#4218)

This commit is contained in:
i3water 2020-10-03 07:04:10 +08:00 committed by GitHub
parent af11921535
commit d2d24a14e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 133 additions and 2 deletions

View File

@ -5273,6 +5273,72 @@ mPython.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
wifiduino32.name=WiFiduino32
wifiduino32.upload.tool=esptool_py
wifiduino32.upload.maximum_size=1310720
wifiduino32.upload.maximum_data_size=327680
wifiduino32.upload.wait_for_upload_port=true
wifiduino32.serial.disableDTR=true
wifiduino32.serial.disableRTS=true
wifiduino32.build.mcu=esp32
wifiduino32.build.core=esp32
wifiduino32.build.variant=wifiduino32
wifiduino32.build.board=Wifiduino32
wifiduino32.build.f_cpu=240000000L
wifiduino32.build.flash_mode=dio
wifiduino32.build.flash_size=4MB
wifiduino32.build.boot=dio
wifiduino32.build.partitions=default
wifiduino32.build.defines=
wifiduino32.menu.PartitionScheme.default=Default
wifiduino32.menu.PartitionScheme.default.build.partitions=default
wifiduino32.menu.PartitionScheme.no_ota=No OTA (Large APP)
wifiduino32.menu.PartitionScheme.no_ota.build.partitions=no_ota
wifiduino32.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
wifiduino32.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
wifiduino32.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
wifiduino32.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
wifiduino32.menu.FlashFreq.80=80MHz
wifiduino32.menu.FlashFreq.80.build.flash_freq=80m
wifiduino32.menu.FlashFreq.40=40MHz
wifiduino32.menu.FlashFreq.40.build.flash_freq=40m
wifiduino32.menu.UploadSpeed.921600=921600
wifiduino32.menu.UploadSpeed.921600.upload.speed=921600
wifiduino32.menu.UploadSpeed.115200=115200
wifiduino32.menu.UploadSpeed.115200.upload.speed=115200
wifiduino32.menu.UploadSpeed.256000.windows=256000
wifiduino32.menu.UploadSpeed.256000.upload.speed=256000
wifiduino32.menu.UploadSpeed.230400.windows.upload.speed=256000
wifiduino32.menu.UploadSpeed.230400=230400
wifiduino32.menu.UploadSpeed.230400.upload.speed=230400
wifiduino32.menu.UploadSpeed.460800.linux=460800
wifiduino32.menu.UploadSpeed.460800.macosx=460800
wifiduino32.menu.UploadSpeed.460800.upload.speed=460800
wifiduino32.menu.UploadSpeed.512000.windows=512000
wifiduino32.menu.UploadSpeed.512000.upload.speed=512000
wifiduino32.menu.DebugLevel.none=None
wifiduino32.menu.DebugLevel.none.build.code_debug=0
wifiduino32.menu.DebugLevel.error=Error
wifiduino32.menu.DebugLevel.error.build.code_debug=1
wifiduino32.menu.DebugLevel.warn=Warn
wifiduino32.menu.DebugLevel.warn.build.code_debug=2
wifiduino32.menu.DebugLevel.info=Info
wifiduino32.menu.DebugLevel.info.build.code_debug=3
wifiduino32.menu.DebugLevel.debug=Debug
wifiduino32.menu.DebugLevel.debug.build.code_debug=4
wifiduino32.menu.DebugLevel.verbose=Verbose
wifiduino32.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
imbrios-logsens-v1p1.name=IMBRIOS LOGSENS_V1P1
imbrios-logsens-v1p1.upload.tool=esptool_py
@ -5342,8 +5408,6 @@ imbrios-logsens-v1p1.menu.UploadSpeed.512000.windows=512000
imbrios-logsens-v1p1.menu.UploadSpeed.512000.upload.speed=512000
##############################################################
##############################################################
healthypi4.name=ProtoCentral HealthyPi 4
healthypi4.upload.tool=esptool_py

View File

@ -0,0 +1,67 @@
#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 KEY_BUILTIN = 0;
static const uint8_t TX = 1;
static const uint8_t RX = 3;
static const uint8_t SDA = 5;
static const uint8_t SCL = 16;
static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;
static const uint8_t A0 = 27;
static const uint8_t A1 = 14;
static const uint8_t A2 = 12;
static const uint8_t A3 = 35;
static const uint8_t A4 = 13;
static const uint8_t A5 = 4;
static const uint8_t D0 = 3;
static const uint8_t D1 = 1;
static const uint8_t D2 = 17;
static const uint8_t D3 = 15;
static const uint8_t D4 = 32;
static const uint8_t D5 = 33;
static const uint8_t D6 = 25;
static const uint8_t D7 = 26;
static const uint8_t D8 = 23;
static const uint8_t D9 = 22;
static const uint8_t D10 = 21;
static const uint8_t D11 = 19;
static const uint8_t D12 = 18;
static const uint8_t D13 = 2;
static const uint8_t T0 = 4;
static const uint8_t T1 = 0;
static const uint8_t T2 = 2;
static const uint8_t T3 = 15;
static const uint8_t T4 = 13;
static const uint8_t T5 = 12;
static const uint8_t T6 = 14;
static const uint8_t T7 = 27;
static const uint8_t T8 = 33;
static const uint8_t T9 = 32;
static const uint8_t DAC1 = 25;
static const uint8_t DAC2 = 26;
#endif /* Pins_Arduino_h */