diff --git a/boards.txt b/boards.txt index 7a86797c95a..a6e984b149a 100644 --- a/boards.txt +++ b/boards.txt @@ -2438,4 +2438,59 @@ t-beam.menu.DebugLevel.debug=Debug t-beam.menu.DebugLevel.debug.build.code_debug=4 t-beam.menu.DebugLevel.verbose=Verbose t-beam.menu.DebugLevel.verbose.build.code_debug=5 +############################################################## +movuino_esp32.name=Movuino ESP32 + +movuino_esp32.upload.tool=esptool +movuino_esp32.upload.maximum_size=1310720 +movuino_esp32.upload.maximum_data_size=327680 +movuino_esp32.upload.wait_for_upload_port=true + +movuino_esp32.serial.disableDTR=true +movuino_esp32.serial.disableRTS=true + +movuino_esp32.build.mcu=esp32 +movuino_esp32.build.core=esp32 +movuino_esp32.build.variant=movuino_esp32 +movuino_esp32.build.board=MOVUINO_ESP32 + +movuino_esp32.build.f_cpu=240000000L +movuino_esp32.build.flash_size=4MB +movuino_esp32.build.flash_mode=dio +movuino_esp32.build.boot=dio +movuino_esp32.build.partitions=default +movuino_esp32.build.defines= + +movuino_esp32.menu.FlashFreq.80=80MHz +movuino_esp32.menu.FlashFreq.80.build.flash_freq=80m +movuino_esp32.menu.FlashFreq.40=40MHz +movuino_esp32.menu.FlashFreq.40.build.flash_freq=40m + +movuino_esp32.menu.UploadSpeed.921600=921600 +movuino_esp32.menu.UploadSpeed.921600.upload.speed=921600 +movuino_esp32.menu.UploadSpeed.115200=115200 +movuino_esp32.menu.UploadSpeed.115200.upload.speed=115200 +movuino_esp32.menu.UploadSpeed.256000.windows=256000 +movuino_esp32.menu.UploadSpeed.256000.upload.speed=256000 +movuino_esp32.menu.UploadSpeed.230400.windows.upload.speed=256000 +movuino_esp32.menu.UploadSpeed.230400=230400 +movuino_esp32.menu.UploadSpeed.230400.upload.speed=230400 +movuino_esp32.menu.UploadSpeed.460800.linux=460800 +movuino_esp32.menu.UploadSpeed.460800.macosx=460800 +movuino_esp32.menu.UploadSpeed.460800.upload.speed=460800 +movuino_esp32.menu.UploadSpeed.512000.windows=512000 +movuino_esp32.menu.UploadSpeed.512000.upload.speed=512000 + +movuino_esp32.menu.DebugLevel.none=None +movuino_esp32.menu.DebugLevel.none.build.code_debug=0 +movuino_esp32.menu.DebugLevel.error=Error +movuino_esp32.menu.DebugLevel.error.build.code_debug=1 +movuino_esp32.menu.DebugLevel.warn=Warn +movuino_esp32.menu.DebugLevel.warn.build.code_debug=2 +movuino_esp32.menu.DebugLevel.info=Info +movuino_esp32.menu.DebugLevel.info.build.code_debug=3 +movuino_esp32.menu.DebugLevel.debug=Debug +movuino_esp32.menu.DebugLevel.debug.build.code_debug=4 +movuino_esp32.menu.DebugLevel.verbose=Verbose +movuino_esp32.menu.DebugLevel.verbose.build.code_debug=5 diff --git a/variants/movuino_esp32/pins_arduino.h b/variants/movuino_esp32/pins_arduino.h new file mode 100644 index 00000000000..81a94b6f0a9 --- /dev/null +++ b/variants/movuino_esp32/pins_arduino.h @@ -0,0 +1,73 @@ +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#include + +#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 = 21; +static const uint8_t SCL = 22; + +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 = 36; +static const uint8_t A1 = 38; +static const uint8_t A2 = 39; +static const uint8_t A3 = 34; +static const uint8_t A4 = 37; +static const uint8_t A5 = 35; +static const uint8_t A6 = 32; +static const uint8_t A7 = 33; +static const uint8_t A8= 25; +static const uint8_t A9 = 26; +static const uint8_t A10 = 27; +static const uint8_t A11 = 14; +static const uint8_t A12 = 15; +static const uint8_t A13 = 12; +static const uint8_t A14 = 13; +static const uint8_t A15 = 4; +static const uint8_t A16 = 2; + +//For compatibility with NRF52 boards +static const uint8_t D0 = 25; +static const uint8_t D1 = 26; +static const uint8_t D2 = 27; +static const uint8_t D3 = 14; +static const uint8_t D4 = 15; +static const uint8_t D5 = 12; +static const uint8_t D6 = 13; +static const uint8_t D7 = 4; + +static const uint8_t X1 = 5; +static const uint8_t X2 = 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 */