Add M5Stick-C to board manager (#2594)
This commit is contained in:
parent
4930853edb
commit
8091c2cac7
62
boards.txt
62
boards.txt
@ -2014,6 +2014,68 @@ m5stack-fire.menu.DebugLevel.debug.build.code_debug=4
|
|||||||
m5stack-fire.menu.DebugLevel.verbose=Verbose
|
m5stack-fire.menu.DebugLevel.verbose=Verbose
|
||||||
m5stack-fire.menu.DebugLevel.verbose.build.code_debug=5
|
m5stack-fire.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
m5stick-c.name=M5Stick-C
|
||||||
|
|
||||||
|
m5stick-c.upload.tool=esptool_py
|
||||||
|
m5stick-c.upload.maximum_size=1310720
|
||||||
|
m5stick-c.upload.maximum_data_size=327680
|
||||||
|
m5stick-c.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
|
m5stick-c.serial.disableDTR=true
|
||||||
|
m5stick-c.serial.disableRTS=true
|
||||||
|
|
||||||
|
m5stick-c.build.mcu=esp32
|
||||||
|
m5stick-c.build.core=esp32
|
||||||
|
m5stick-c.build.variant=m5stick_c
|
||||||
|
m5stick-c.build.board=M5Stick_C
|
||||||
|
|
||||||
|
m5stick-c.build.f_cpu=240000000L
|
||||||
|
m5stick-c.build.flash_size=4MB
|
||||||
|
m5stick-c.build.flash_freq=80m
|
||||||
|
m5stick-c.build.flash_mode=dio
|
||||||
|
m5stick-c.build.boot=dio
|
||||||
|
m5stick-c.build.partitions=default
|
||||||
|
m5stick-c.build.defines=
|
||||||
|
|
||||||
|
m5stick-c.menu.PartitionScheme.default=Default
|
||||||
|
m5stick-c.menu.PartitionScheme.default.build.partitions=default
|
||||||
|
m5stick-c.menu.PartitionScheme.no_ota=No OTA (Large APP)
|
||||||
|
m5stick-c.menu.PartitionScheme.no_ota.build.partitions=no_ota
|
||||||
|
m5stick-c.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
|
||||||
|
m5stick-c.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
|
||||||
|
m5stick-c.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
|
||||||
|
m5stick-c.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
|
||||||
|
|
||||||
|
|
||||||
|
m5stick-c.menu.UploadSpeed.1500000=1500000
|
||||||
|
m5stick-c.menu.UploadSpeed.1500000.upload.speed=1500000
|
||||||
|
m5stick-c.menu.UploadSpeed.750000=750000
|
||||||
|
m5stick-c.menu.UploadSpeed.750000.upload.speed=750000
|
||||||
|
m5stick-c.menu.UploadSpeed.500000=500000
|
||||||
|
m5stick-c.menu.UploadSpeed.500000.upload.speed=500000
|
||||||
|
m5stick-c.menu.UploadSpeed.250000=250000
|
||||||
|
m5stick-c.menu.UploadSpeed.250000.upload.speed=250000
|
||||||
|
m5stick-c.menu.UploadSpeed.115200=115200
|
||||||
|
m5stick-c.menu.UploadSpeed.115200.upload.speed=115200
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
m5stick-c.menu.DebugLevel.none=None
|
||||||
|
m5stick-c.menu.DebugLevel.none.build.code_debug=0
|
||||||
|
m5stick-c.menu.DebugLevel.error=Error
|
||||||
|
m5stick-c.menu.DebugLevel.error.build.code_debug=1
|
||||||
|
m5stick-c.menu.DebugLevel.warn=Warn
|
||||||
|
m5stick-c.menu.DebugLevel.warn.build.code_debug=2
|
||||||
|
m5stick-c.menu.DebugLevel.info=Info
|
||||||
|
m5stick-c.menu.DebugLevel.info.build.code_debug=3
|
||||||
|
m5stick-c.menu.DebugLevel.debug=Debug
|
||||||
|
m5stick-c.menu.DebugLevel.debug.build.code_debug=4
|
||||||
|
m5stick-c.menu.DebugLevel.verbose=Verbose
|
||||||
|
m5stick-c.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
odroid_esp32.name=ODROID ESP32
|
odroid_esp32.name=ODROID ESP32
|
||||||
|
41
variants/m5stick_c/pins_arduino.h
Normal file
41
variants/m5stick_c/pins_arduino.h
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#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 TX = 1;
|
||||||
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
static const uint8_t SDA = 32;
|
||||||
|
static const uint8_t SCL = 33;
|
||||||
|
|
||||||
|
static const uint8_t SS = 5;
|
||||||
|
static const uint8_t MOSI = 15;
|
||||||
|
static const uint8_t MISO = 36;
|
||||||
|
static const uint8_t SCK = 13;
|
||||||
|
|
||||||
|
static const uint8_t G9 = 9;
|
||||||
|
static const uint8_t G10 = 10;
|
||||||
|
static const uint8_t G37 = 37;
|
||||||
|
static const uint8_t G39 = 39;
|
||||||
|
static const uint8_t G32 = 32;
|
||||||
|
static const uint8_t G33 = 33;
|
||||||
|
static const uint8_t G26 = 26;
|
||||||
|
static const uint8_t G36 = 36;
|
||||||
|
static const uint8_t G0 = 0;
|
||||||
|
|
||||||
|
static const uint8_t DAC1 = 25;
|
||||||
|
static const uint8_t DAC2 = 26;
|
||||||
|
|
||||||
|
static const uint8_t ADC1 = 35;
|
||||||
|
static const uint8_t ADC2 = 36;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user