added new board Logsens V1p1 (#3880)
* Added new board variant for Imbrios LogSens V1.1 Imbrios LogSens V1.1 new board variant * added new board Imbrios LogSens V1.1 Added new board details: Imbrios LogSens V1.1
This commit is contained in:
parent
5197916983
commit
8b6d020352
70
boards.txt
70
boards.txt
@ -5046,4 +5046,74 @@ mPython.menu.DebugLevel.debug=Debug
|
|||||||
mPython.menu.DebugLevel.debug.build.code_debug=4
|
mPython.menu.DebugLevel.debug.build.code_debug=4
|
||||||
mPython.menu.DebugLevel.verbose=Verbose
|
mPython.menu.DebugLevel.verbose=Verbose
|
||||||
mPython.menu.DebugLevel.verbose.build.code_debug=5
|
mPython.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.name=IMBRIOS LOGSENS_V1P1
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.upload.tool=esptool_py
|
||||||
|
imbrios-logsens-v1p1.upload.maximum_size=1310720
|
||||||
|
imbrios-logsens-v1p1.upload.maximum_data_size=327680
|
||||||
|
imbrios-logsens-v1p1.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.serial.disableDTR=true
|
||||||
|
imbrios-logsens-v1p1.serial.disableRTS=true
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.build.mcu=esp32
|
||||||
|
imbrios-logsens-v1p1.build.core=esp32
|
||||||
|
imbrios-logsens-v1p1.build.variant=imbrios-logsens-v1p1
|
||||||
|
imbrios-logsens-v1p1.build.board=IMBRIOS_LOGSENS_V1P1
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.build.f_cpu=240000000L
|
||||||
|
imbrios-logsens-v1p1.build.flash_mode=dio
|
||||||
|
imbrios-logsens-v1p1.build.flash_size=4MB
|
||||||
|
imbrios-logsens-v1p1.build.boot=dio
|
||||||
|
imbrios-logsens-v1p1.build.partitions=default
|
||||||
|
imbrios-logsens-v1p1.build.defines=
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.menu.FlashFreq.80=80MHz
|
||||||
|
imbrios-logsens-v1p1.menu.FlashFreq.80.build.flash_freq=80m
|
||||||
|
imbrios-logsens-v1p1.menu.FlashFreq.40=40MHz
|
||||||
|
imbrios-logsens-v1p1.menu.FlashFreq.40.build.flash_freq=40m
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.default=Default
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.default.build.partitions=default
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.no_ota=No OTA (Large APP)
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.no_ota.build.partitions=no_ota
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
|
||||||
|
imbrios-logsens-v1p1.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.240=240MHz (WiFi/BT)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.240.build.f_cpu=240000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.160=160MHz (WiFi/BT)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.160.build.f_cpu=160000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.80=80MHz (WiFi/BT)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.80.build.f_cpu=80000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.40=40MHz (40MHz XTAL)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.40.build.f_cpu=40000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.26=26MHz (26MHz XTAL)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.26.build.f_cpu=26000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.20=20MHz (40MHz XTAL)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.20.build.f_cpu=20000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.13=13MHz (26MHz XTAL)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.13.build.f_cpu=13000000L
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.10=10MHz (40MHz XTAL)
|
||||||
|
imbrios-logsens-v1p1.menu.CPUFreq.10.build.f_cpu=10000000L
|
||||||
|
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.921600=921600
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.921600.upload.speed=921600
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.115200=115200
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.115200.upload.speed=115200
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.256000.windows=256000
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.256000.upload.speed=256000
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.230400=230400
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.230400.upload.speed=230400
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.460800.linux=460800
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.460800.macosx=460800
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.460800.upload.speed=460800
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.512000.windows=512000
|
||||||
|
imbrios-logsens-v1p1.menu.UploadSpeed.512000.upload.speed=512000
|
||||||
##############################################################
|
##############################################################
|
||||||
|
102
variants/imbrios-logsens-v1p1/pins_arduino.h
Normal file
102
variants/imbrios-logsens-v1p1/pins_arduino.h
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||||
|
#define NUM_DIGITAL_PINS 9
|
||||||
|
#define NUM_ANALOG_INPUTS 7
|
||||||
|
|
||||||
|
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
||||||
|
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||||
|
#define digitalPinHasPWM(p) (p < 34)
|
||||||
|
|
||||||
|
// Renaming few signals
|
||||||
|
#define SPI_CLK SCK // IO14
|
||||||
|
#define SPI_MISO MISO // IO12
|
||||||
|
#define SPI_MOSI MOSI // IO13
|
||||||
|
#define SPI_CS0 SS // IO15, Default SPI CS: Extension Header, Pin_3
|
||||||
|
#define SD_SPI_CS1 SPI_CS1 // SPI Chip Select: MicroSD Card
|
||||||
|
#define LED_WIFI_LINK LED1_BUILDIN // LED6 on the LogSens V1.1 Board
|
||||||
|
#define LED_WIFI_ACT LED2_BUILDIN // LED7 on the LogSens V1.1 Board\
|
||||||
|
|
||||||
|
/* LED_BUILTIN is kept for compatibility reason; mapped to LED2 on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t LED_BUILTIN = 33;
|
||||||
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
|
|
||||||
|
/* UART0: Serial Port for Programming and Debugging on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t TX = 1;
|
||||||
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
#ifdef BOARD_VARIANT_RS485
|
||||||
|
/* UART2: Serial Port conencted to RS485 transceiver on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t UART2_TX = 17;
|
||||||
|
static const uint8_t UART2_RX = 16;
|
||||||
|
static const uint8_t UART2_RTS = 4;
|
||||||
|
#endif /* BOARD_VARIANT_RS485 */
|
||||||
|
|
||||||
|
#ifdef BOARD_VARIANT_CAN
|
||||||
|
/* CAN Bus conencted to CAN transceiver on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t CAN_TX = 17;
|
||||||
|
static const uint8_t CAN_RX = 16;
|
||||||
|
static const uint8_t CAN_TXDE = 4;
|
||||||
|
#endif /* BOARD_VARIANT_CAN */
|
||||||
|
|
||||||
|
/* I2C Bus: Shared between RTC chip, Expansion Header (X3), Sensor Header (X7) on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t SDA = 21;
|
||||||
|
static const uint8_t SCL = 22;
|
||||||
|
|
||||||
|
/* SPI Bus: Shared between MicroSD Card (X6) and Expansion Header (X3) */
|
||||||
|
static const uint8_t SS = 15; // SPI Chip Select - 0; Connected to Extension Header, Pin_3 on the LogSens V1.1 Board
|
||||||
|
static const uint8_t MOSI = 13;
|
||||||
|
static const uint8_t MISO = 12;
|
||||||
|
static const uint8_t SCK = 14;
|
||||||
|
|
||||||
|
static const uint8_t SPI_SS1 = 23; // SPI Chip Select - 1; connected to MicroSD Card on the LogSens V1.1 Board
|
||||||
|
|
||||||
|
/* Software Controlled: IO, LEDs and Switches */
|
||||||
|
static const uint8_t BUZZER_CTRL = 19; // Signal connected to MOSFET gate pin to control conenctor (X8)
|
||||||
|
static const uint8_t SD_CARD_DETECT = 35; // MicroSD Card (X6): Card Detect Signal
|
||||||
|
|
||||||
|
static const uint8_t SW2_BUILDIN = 0; // Tactile Switch-2 (SW2); ESP32 BOOT0 pin, Use it with care !!
|
||||||
|
static const uint8_t SW3_BUILDIN = 36; // Tactile Switch-3 (SW3)
|
||||||
|
static const uint8_t SW4_BUILDIN = 34; // Tactile Switch-4 (SW4)
|
||||||
|
|
||||||
|
static const uint8_t LED1_BUILDIN = 32; // Connected to LogSens V1.1: LED6
|
||||||
|
static const uint8_t LED2_BUILDIN = 33; // Connected to LogSens V1.1: LED7
|
||||||
|
|
||||||
|
|
||||||
|
/* Analog Input Channels accessible on the LogSens V1.1 Board */
|
||||||
|
//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 A10 = 4;
|
||||||
|
//static const uint8_t A11 = 0;
|
||||||
|
static const uint8_t A12 = 2;
|
||||||
|
static const uint8_t A13 = 15;
|
||||||
|
//static const uint8_t A14 = 13;
|
||||||
|
//static const uint8_t A15 = 12;
|
||||||
|
//static const uint8_t A16 = 14;
|
||||||
|
static const uint8_t A17 = 27;
|
||||||
|
static const uint8_t A18 = 25;
|
||||||
|
static const uint8_t A19 = 26;
|
||||||
|
|
||||||
|
//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;
|
||||||
|
|
||||||
|
/* DAC Channels accessible on the LogSens V1.1 Board */
|
||||||
|
static const uint8_t DAC1 = 25;
|
||||||
|
static const uint8_t DAC2 = 26;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user