Unverified Commit 10a48f52 authored by Brent Picasso's avatar Brent Picasso Committed by GitHub

Addition (3rd_party_board): Add board support for Autosport Labs ESP32-CAN-X2...

Addition (3rd_party_board): Add board support for Autosport Labs ESP32-CAN-X2 development board (#9683)

* add board support for Autosport Labs ESP32-CAN-X2 development board

* change(board-support): Add board support for Autosport Labs ESP32-CAN-X2 development board

* change(board-support) - remove entries that are already globally defined

* change(board-support) rename board name

* change(board-support) switch ASL-CAN-X2 to ASL_CAN_X2

* change(board-support) fix formatting, correct USB VID/PID to match our own product

* Update variants/aslcanx2/pins_arduino.h
Co-authored-by: default avatarLucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* Update variants/aslcanx2/pins_arduino.h
Co-authored-by: default avatarLucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

---------
Co-authored-by: default avatarLucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
parent d8e1374d
......@@ -36444,3 +36444,205 @@ weact_studio_esp32c3.menu.EraseFlash.all=Enabled
weact_studio_esp32c3.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
aslcanx2.name=AutosportLabs ESP-CAN-X2
aslcanx2.vid.0=0x303a
aslcanx2.pid.0=0x1001
aslcanx2.bootloader.tool=esptool_py
aslcanx2.bootloader.tool.default=esptool_py
aslcanx2.upload.tool=esptool_py
aslcanx2.upload.tool.default=esptool_py
aslcanx2.upload.tool.network=esp_ota
aslcanx2.upload.maximum_size=1310720
aslcanx2.upload.maximum_data_size=327680
aslcanx2.upload.flags=
aslcanx2.upload.extra_flags=
aslcanx2.upload.use_1200bps_touch=false
aslcanx2.upload.wait_for_upload_port=false
aslcanx2.serial.disableDTR=false
aslcanx2.serial.disableRTS=false
aslcanx2.build.tarch=xtensa
aslcanx2.build.bootloader_addr=0x0
aslcanx2.build.target=esp32s3
aslcanx2.build.mcu=esp32s3
aslcanx2.build.core=esp32
aslcanx2.build.variant=aslcanx2
aslcanx2.build.board=ASL_CAN_X2
aslcanx2.build.usb_mode=1
aslcanx2.build.cdc_on_boot=0
aslcanx2.build.msc_on_boot=0
aslcanx2.build.dfu_on_boot=0
aslcanx2.build.f_cpu=240000000L
aslcanx2.build.flash_size=8MB
aslcanx2.build.flash_freq=80m
aslcanx2.build.flash_mode=dio
aslcanx2.build.boot=qio
aslcanx2.build.boot_freq=80m
aslcanx2.build.partitions=default_8MB
aslcanx2.build.defines=
aslcanx2.build.loop_core=
aslcanx2.build.event_core=
aslcanx2.build.psram_type=qspi
aslcanx2.build.memory_type={build.boot}_{build.psram_type}
## IDE 2.0 Seems to not update the value
aslcanx2.menu.JTAGAdapter.default=Disabled
aslcanx2.menu.JTAGAdapter.default.build.copy_jtag_files=0
aslcanx2.menu.JTAGAdapter.builtin=Integrated USB JTAG
aslcanx2.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg
aslcanx2.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
aslcanx2.menu.JTAGAdapter.external=FTDI Adapter
aslcanx2.menu.JTAGAdapter.external.build.openocdscript=esp32s3-ftdi.cfg
aslcanx2.menu.JTAGAdapter.external.build.copy_jtag_files=1
aslcanx2.menu.JTAGAdapter.bridge=ESP USB Bridge
aslcanx2.menu.JTAGAdapter.bridge.build.openocdscript=esp32s3-bridge.cfg
aslcanx2.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
aslcanx2.menu.PSRAM.disabled=Disabled
aslcanx2.menu.PSRAM.disabled.build.defines=
aslcanx2.menu.PSRAM.disabled.build.psram_type=qspi
aslcanx2.menu.PSRAM.opi=OPI PSRAM
aslcanx2.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM
aslcanx2.menu.PSRAM.opi.build.psram_type=opi
aslcanx2.menu.FlashMode.qio=QIO 80MHz
aslcanx2.menu.FlashMode.qio.build.flash_mode=dio
aslcanx2.menu.FlashMode.qio.build.boot=qio
aslcanx2.menu.FlashMode.qio.build.boot_freq=80m
aslcanx2.menu.FlashMode.qio.build.flash_freq=80m
aslcanx2.menu.FlashMode.qio120=QIO 120MHz
aslcanx2.menu.FlashMode.qio120.build.flash_mode=dio
aslcanx2.menu.FlashMode.qio120.build.boot=qio
aslcanx2.menu.FlashMode.qio120.build.boot_freq=120m
aslcanx2.menu.FlashMode.qio120.build.flash_freq=80m
aslcanx2.menu.FlashMode.dio=DIO 80MHz
aslcanx2.menu.FlashMode.dio.build.flash_mode=dio
aslcanx2.menu.FlashMode.dio.build.boot=dio
aslcanx2.menu.FlashMode.dio.build.boot_freq=80m
aslcanx2.menu.FlashMode.dio.build.flash_freq=80m
aslcanx2.menu.FlashMode.opi=OPI 80MHz
aslcanx2.menu.FlashMode.opi.build.flash_mode=dout
aslcanx2.menu.FlashMode.opi.build.boot=opi
aslcanx2.menu.FlashMode.opi.build.boot_freq=80m
aslcanx2.menu.FlashMode.opi.build.flash_freq=80m
aslcanx2.menu.LoopCore.1=Core 1
aslcanx2.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
aslcanx2.menu.LoopCore.0=Core 0
aslcanx2.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
aslcanx2.menu.EventsCore.1=Core 1
aslcanx2.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
aslcanx2.menu.EventsCore.0=Core 0
aslcanx2.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
aslcanx2.menu.USBMode.hwcdc=Hardware CDC and JTAG
aslcanx2.menu.USBMode.hwcdc.build.usb_mode=1
aslcanx2.menu.USBMode.default=USB-OTG (TinyUSB)
aslcanx2.menu.USBMode.default.build.usb_mode=0
aslcanx2.menu.CDCOnBoot.default=Enabled
aslcanx2.menu.CDCOnBoot.default.build.cdc_on_boot=1
aslcanx2.menu.CDCOnBoot.cdc=Disabled
aslcanx2.menu.CDCOnBoot.cdc.build.cdc_on_boot=0
aslcanx2.menu.MSCOnBoot.default=Disabled
aslcanx2.menu.MSCOnBoot.default.build.msc_on_boot=0
aslcanx2.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
aslcanx2.menu.MSCOnBoot.msc.build.msc_on_boot=1
aslcanx2.menu.DFUOnBoot.default=Disabled
aslcanx2.menu.DFUOnBoot.default.build.dfu_on_boot=0
aslcanx2.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
aslcanx2.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
aslcanx2.menu.UploadMode.default=UART0 / Hardware CDC
aslcanx2.menu.UploadMode.default.upload.use_1200bps_touch=false
aslcanx2.menu.UploadMode.default.upload.wait_for_upload_port=false
aslcanx2.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
aslcanx2.menu.UploadMode.cdc.upload.use_1200bps_touch=true
aslcanx2.menu.UploadMode.cdc.upload.wait_for_upload_port=true
aslcanx2.menu.PartitionScheme.default=Default with spiffs (3MB APP/1.5MB SPIFFS)
aslcanx2.menu.PartitionScheme.default.build.partitions=default_8MB
aslcanx2.menu.PartitionScheme.default.upload.maximum_size=3342336
aslcanx2.menu.PartitionScheme.defaultffat=Default with ffat (3MB APP/1.5MB FATFS)
aslcanx2.menu.PartitionScheme.defaultffat.build.partitions=default_8MB_ffat
aslcanx2.menu.PartitionScheme.defaultffat.upload.maximum_size=3342336
aslcanx2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
aslcanx2.menu.PartitionScheme.minimal.build.partitions=minimal
aslcanx2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
aslcanx2.menu.PartitionScheme.no_ota.build.partitions=no_ota
aslcanx2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
aslcanx2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
aslcanx2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
aslcanx2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
aslcanx2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
aslcanx2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
aslcanx2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
aslcanx2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
aslcanx2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
aslcanx2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
aslcanx2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
aslcanx2.menu.PartitionScheme.huge_app.build.partitions=huge_app
aslcanx2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
aslcanx2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
aslcanx2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
aslcanx2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
aslcanx2.menu.PartitionScheme.rainmaker=RainMaker
aslcanx2.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
aslcanx2.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
aslcanx2.menu.CPUFreq.240=240MHz (WiFi)
aslcanx2.menu.CPUFreq.240.build.f_cpu=240000000L
aslcanx2.menu.CPUFreq.160=160MHz (WiFi)
aslcanx2.menu.CPUFreq.160.build.f_cpu=160000000L
aslcanx2.menu.CPUFreq.80=80MHz (WiFi)
aslcanx2.menu.CPUFreq.80.build.f_cpu=80000000L
aslcanx2.menu.CPUFreq.40=40MHz
aslcanx2.menu.CPUFreq.40.build.f_cpu=40000000L
aslcanx2.menu.CPUFreq.20=20MHz
aslcanx2.menu.CPUFreq.20.build.f_cpu=20000000L
aslcanx2.menu.CPUFreq.10=10MHz
aslcanx2.menu.CPUFreq.10.build.f_cpu=10000000L
aslcanx2.menu.UploadSpeed.921600=921600
aslcanx2.menu.UploadSpeed.921600.upload.speed=921600
aslcanx2.menu.UploadSpeed.115200=115200
aslcanx2.menu.UploadSpeed.115200.upload.speed=115200
aslcanx2.menu.UploadSpeed.256000.windows=256000
aslcanx2.menu.UploadSpeed.256000.upload.speed=256000
aslcanx2.menu.UploadSpeed.230400.windows.upload.speed=256000
aslcanx2.menu.UploadSpeed.230400=230400
aslcanx2.menu.UploadSpeed.230400.upload.speed=230400
aslcanx2.menu.UploadSpeed.460800.linux=460800
aslcanx2.menu.UploadSpeed.460800.macosx=460800
aslcanx2.menu.UploadSpeed.460800.upload.speed=460800
aslcanx2.menu.UploadSpeed.512000.windows=512000
aslcanx2.menu.UploadSpeed.512000.upload.speed=512000
aslcanx2.menu.DebugLevel.none=None
aslcanx2.menu.DebugLevel.none.build.code_debug=0
aslcanx2.menu.DebugLevel.error=Error
aslcanx2.menu.DebugLevel.error.build.code_debug=1
aslcanx2.menu.DebugLevel.warn=Warn
aslcanx2.menu.DebugLevel.warn.build.code_debug=2
aslcanx2.menu.DebugLevel.info=Info
aslcanx2.menu.DebugLevel.info.build.code_debug=3
aslcanx2.menu.DebugLevel.debug=Debug
aslcanx2.menu.DebugLevel.debug.build.code_debug=4
aslcanx2.menu.DebugLevel.verbose=Verbose
aslcanx2.menu.DebugLevel.verbose.build.code_debug=5
aslcanx2.menu.EraseFlash.none=Disabled
aslcanx2.menu.EraseFlash.none.upload.erase_cmd=
aslcanx2.menu.EraseFlash.all=Enabled
aslcanx2.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x330000,
app1, app, ota_1, 0x340000,0x330000,
ffat, data, fat, 0x670000,0x180000,
coredump, data, coredump,0x7F0000,0x10000,
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x16D0
#define USB_PID 0x07F2
static const uint8_t LED_BUILTIN = 2;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN
static const uint8_t CAN1_RX = 6;
static const uint8_t CAN1_TX = 7;
static const uint8_t SS = -1;
static const uint8_t CS = 10;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 13;
static const uint8_t SCK = 12;
static const uint8_t TX = 43;
static const uint8_t RX = 44;
static const uint8_t SDA = 8;
static const uint8_t SCL = 9;
static const uint8_t A0 = 1;
static const uint8_t A1 = 2;
static const uint8_t A2 = 3;
static const uint8_t A3 = 4;
static const uint8_t A4 = 5;
static const uint8_t A5 = 6;
static const uint8_t A6 = 7;
static const uint8_t A7 = 8;
static const uint8_t A8 = 9;
static const uint8_t A9 = 10;
static const uint8_t A10 = 11;
static const uint8_t A11 = 12;
static const uint8_t A12 = 13;
static const uint8_t A13 = 14;
static const uint8_t A14 = 15;
static const uint8_t A15 = 16;
static const uint8_t A16 = 17;
static const uint8_t A17 = 18;
static const uint8_t A18 = 19;
static const uint8_t A19 = 20;
static const uint8_t T1 = 1;
static const uint8_t T2 = 2;
static const uint8_t T3 = 3;
static const uint8_t T4 = 4;
static const uint8_t T5 = 5;
static const uint8_t T6 = 6;
static const uint8_t T7 = 7;
static const uint8_t T8 = 8;
static const uint8_t T9 = 9;
static const uint8_t T10 = 10;
static const uint8_t T11 = 11;
static const uint8_t T12 = 12;
static const uint8_t T13 = 13;
static const uint8_t T14 = 14;
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment