Added support for Trueverit Universal IoT Driver (#5219)

Add support for the Trueverit Universal IoT Driver (https://www.trueverit.com)

The board will be released on market using electronic distributors soon
This commit is contained in:
Simone Fardella 2021-06-09 11:27:32 +02:00 committed by GitHub
parent a618fc1361
commit 90d3ae25af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 111 additions and 0 deletions

View File

@ -8414,3 +8414,62 @@ kb32.menu.DebugLevel.debug=Debug
kb32.menu.DebugLevel.debug.build.code_debug=4
kb32.menu.DebugLevel.verbose=Verbose
kb32.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
esp32-trueverit-iot-driver.name=Trueverit ESP32 Universal IoT Driver
esp32-trueverit-iot-driver.upload.tool=esptool_py
esp32-trueverit-iot-driver.upload.maximum_size=1310720
esp32-trueverit-iot-driver.upload.maximum_data_size=327680
esp32-trueverit-iot-driver.upload.flags=
esp32-trueverit-iot-driver.upload.extra_flags=
esp32-trueverit-iot-driver.serial.disableDTR=true
esp32-trueverit-iot-driver.serial.disableRTS=true
esp32-trueverit-iot-driver.build.tarch=xtensa
esp32-trueverit-iot-driver.build.bootloader_addr=0x1000
esp32-trueverit-iot-driver.build.target=esp32
esp32-trueverit-iot-driver.build.mcu=esp32
esp32-trueverit-iot-driver.build.core=esp32
esp32-trueverit-iot-driver.build.variant=esp32-trueverit-iot-driver
esp32-trueverit-iot-driver.build.board=Trueverit_ESP32_Universal_IoT_Driver
esp32-trueverit-iot-driver.build.f_cpu=240000000L
esp32-trueverit-iot-driver.build.flash_mode=dio
esp32-trueverit-iot-driver.build.flash_size=4MB
esp32-trueverit-iot-driver.build.boot=dio
esp32-trueverit-iot-driver.build.partitions=default
esp32-trueverit-iot-driver.build.defines=
esp32-trueverit-iot-driver.menu.FlashFreq.80=80MHz
esp32-trueverit-iot-driver.menu.FlashFreq.80.build.flash_freq=80m
esp32-trueverit-iot-driver.menu.FlashFreq.40=40MHz
esp32-trueverit-iot-driver.menu.FlashFreq.40.build.flash_freq=40m
esp32-trueverit-iot-driver.menu.UploadSpeed.115200=115200
esp32-trueverit-iot-driver.menu.UploadSpeed.115200.upload.speed=115200
esp32-trueverit-iot-driver.menu.UploadSpeed.256000.windows=256000
esp32-trueverit-iot-driver.menu.UploadSpeed.256000.upload.speed=256000
esp32-trueverit-iot-driver.menu.UploadSpeed.230400.windows.upload.speed=256000
esp32-trueverit-iot-driver.menu.UploadSpeed.230400=230400
esp32-trueverit-iot-driver.menu.UploadSpeed.230400.upload.speed=230400
esp32-trueverit-iot-driver.menu.UploadSpeed.460800.linux=460800
esp32-trueverit-iot-driver.menu.UploadSpeed.460800.macosx=460800
esp32-trueverit-iot-driver.menu.UploadSpeed.460800.upload.speed=460800
esp32-trueverit-iot-driver.menu.DebugLevel.none=None
esp32-trueverit-iot-driver.menu.DebugLevel.none.build.code_debug=0
esp32-trueverit-iot-driver.menu.DebugLevel.error=Error
esp32-trueverit-iot-driver.menu.DebugLevel.error.build.code_debug=1
esp32-trueverit-iot-driver.menu.DebugLevel.warn=Warn
esp32-trueverit-iot-driver.menu.DebugLevel.warn.build.code_debug=2
esp32-trueverit-iot-driver.menu.DebugLevel.info=Info
esp32-trueverit-iot-driver.menu.DebugLevel.info.build.code_debug=3
esp32-trueverit-iot-driver.menu.DebugLevel.debug=Debug
esp32-trueverit-iot-driver.menu.DebugLevel.debug.build.code_debug=4
esp32-trueverit-iot-driver.menu.DebugLevel.verbose=Verbose
esp32-trueverit-iot-driver.menu.DebugLevel.verbose.build.code_debug=5
##############################################################

View File

@ -0,0 +1,52 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
static const uint8_t LED_BUILTIN = 18;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#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)
#define TX1 12
#define RX1 13
#define TX2 33
#define RX2 39
static const uint8_t TX = 1;
static const uint8_t RX = 3;
static const uint8_t SCL = 4;
static const uint8_t SDA = 15;
static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 32;
static const uint8_t SCK = 18;
static const uint8_t A0 = 36;
static const uint8_t A3 = 39;
static const uint8_t A4 = 32;
static const uint8_t A5 = 33;
static const uint8_t A6 = 34;
static const uint8_t A7 = 35;
static const uint8_t T0 = 4;
static const uint8_t T2 = 2;
static const uint8_t T8 = 33;
static const uint8_t T9 = 32;
#define ETH_PHY_ADDR 0
#define ETH_PHY_POWER -1
#define ETH_PHY_MDC 16
#define ETH_PHY_MDIO 14
#define ETH_PHY_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
#endif /* Pins_Arduino_h */