Skip to content

Commit 0efa90d

Browse files
authored
Add support for Connaxio's Espoir (espressif#6822)
Description of Change This PR adds support for Espoir, a mikroBUS PoE+ devboard, by Connaxio inc. However, the ESP32-MINI-1 is a single core CPU, so Connaxio will provide the builds for its devboard until single core CPUs are officially supported. Adding these modifications to the official repository will limit discrepancies between Connaxio's fork and the main repo. Tests scenarios Tests include Ethernet, SPI, USB, I2C, UART (1-wire). More info: https://www.connaxio.com/electronics/espoir/
1 parent 5484129 commit 0efa90d

File tree

2 files changed

+199
-1
lines changed

2 files changed

+199
-1
lines changed

boards.txt

+114-1
Original file line numberDiff line numberDiff line change
@@ -14546,4 +14546,117 @@ SEEED_XIAO_WIFI.menu.DebugLevel.debug.build.code_debug=4
1454614546
SEEED_XIAO_WIFI.menu.DebugLevel.verbose=Verbose
1454714547
SEEED_XIAO_WIFI.menu.DebugLevel.verbose.build.code_debug=5
1454814548

14549-
##############################################################
14549+
##############################################################
14550+
14551+
connaxio_espoir.name=Connaxio's Espoir
14552+
connaxio_espoir.vid.0=0x10C4
14553+
connaxio_espoir.pid.0=0x8D9A
14554+
14555+
connaxio_espoir.bootloader.tool=esptool_py
14556+
connaxio_espoir.bootloader.tool.default=esptool_py
14557+
14558+
connaxio_espoir.upload.tool=esptool_py
14559+
connaxio_espoir.upload.tool.default=esptool_py
14560+
connaxio_espoir.upload.tool.network=esp_ota
14561+
14562+
connaxio_espoir.upload.maximum_size=1310720
14563+
connaxio_espoir.upload.maximum_data_size=327680
14564+
connaxio_espoir.upload.flags=
14565+
connaxio_espoir.upload.extra_flags=
14566+
14567+
connaxio_espoir.serial.disableDTR=true
14568+
connaxio_espoir.serial.disableRTS=true
14569+
14570+
connaxio_espoir.build.tarch=xtensa
14571+
connaxio_espoir.build.bootloader_addr=0x1000
14572+
connaxio_espoir.build.target=esp32
14573+
connaxio_espoir.build.mcu=esp32
14574+
connaxio_espoir.build.core=esp32
14575+
connaxio_espoir.build.variant=connaxio_espoir
14576+
connaxio_espoir.build.board=connaxio_espoir
14577+
14578+
connaxio_espoir.build.f_cpu=240000000L
14579+
connaxio_espoir.build.flash_size=4MB
14580+
connaxio_espoir.build.flash_freq=80m
14581+
connaxio_espoir.build.flash_mode=dio
14582+
connaxio_espoir.build.boot=dio
14583+
connaxio_espoir.build.partitions=default
14584+
connaxio_espoir.build.defines=
14585+
connaxio_espoir.build.loop_core=
14586+
connaxio_espoir.build.event_core=
14587+
14588+
connaxio_espoir.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
14589+
connaxio_espoir.menu.PartitionScheme.default.build.partitions=default
14590+
connaxio_espoir.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
14591+
connaxio_espoir.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
14592+
connaxio_espoir.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
14593+
connaxio_espoir.menu.PartitionScheme.minimal.build.partitions=minimal
14594+
connaxio_espoir.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
14595+
connaxio_espoir.menu.PartitionScheme.no_ota.build.partitions=no_ota
14596+
connaxio_espoir.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
14597+
connaxio_espoir.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
14598+
connaxio_espoir.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
14599+
connaxio_espoir.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
14600+
connaxio_espoir.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
14601+
connaxio_espoir.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
14602+
connaxio_espoir.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
14603+
connaxio_espoir.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
14604+
connaxio_espoir.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
14605+
connaxio_espoir.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
14606+
connaxio_espoir.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
14607+
connaxio_espoir.menu.PartitionScheme.huge_app.build.partitions=huge_app
14608+
connaxio_espoir.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
14609+
connaxio_espoir.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
14610+
connaxio_espoir.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
14611+
connaxio_espoir.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
14612+
connaxio_espoir.menu.PartitionScheme.rainmaker=RainMaker
14613+
connaxio_espoir.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
14614+
connaxio_espoir.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
14615+
14616+
connaxio_espoir.menu.CPUFreq.240=240MHz (WiFi/BT)
14617+
connaxio_espoir.menu.CPUFreq.240.build.f_cpu=240000000L
14618+
connaxio_espoir.menu.CPUFreq.160=160MHz (WiFi/BT)
14619+
connaxio_espoir.menu.CPUFreq.160.build.f_cpu=160000000L
14620+
connaxio_espoir.menu.CPUFreq.80=80MHz (WiFi/BT)
14621+
connaxio_espoir.menu.CPUFreq.80.build.f_cpu=80000000L
14622+
connaxio_espoir.menu.CPUFreq.40=40MHz
14623+
connaxio_espoir.menu.CPUFreq.40.build.f_cpu=40000000L
14624+
connaxio_espoir.menu.CPUFreq.20=20MHz
14625+
connaxio_espoir.menu.CPUFreq.20.build.f_cpu=20000000L
14626+
connaxio_espoir.menu.CPUFreq.10=10MHz
14627+
connaxio_espoir.menu.CPUFreq.10.build.f_cpu=10000000L
14628+
14629+
connaxio_espoir.menu.FlashFreq.80=80MHz
14630+
connaxio_espoir.menu.FlashFreq.80.build.flash_freq=80m
14631+
connaxio_espoir.menu.FlashFreq.40=40MHz
14632+
connaxio_espoir.menu.FlashFreq.40.build.flash_freq=40m
14633+
14634+
connaxio_espoir.menu.UploadSpeed.921600=921600
14635+
connaxio_espoir.menu.UploadSpeed.921600.upload.speed=921600
14636+
connaxio_espoir.menu.UploadSpeed.512000.windows=512000
14637+
connaxio_espoir.menu.UploadSpeed.512000.upload.speed=512000
14638+
connaxio_espoir.menu.UploadSpeed.460800.linux=460800
14639+
connaxio_espoir.menu.UploadSpeed.460800.macosx=460800
14640+
connaxio_espoir.menu.UploadSpeed.460800.upload.speed=460800
14641+
connaxio_espoir.menu.UploadSpeed.256000.windows=256000
14642+
connaxio_espoir.menu.UploadSpeed.256000.upload.speed=256000
14643+
connaxio_espoir.menu.UploadSpeed.230400.windows.upload.speed=256000
14644+
connaxio_espoir.menu.UploadSpeed.230400=230400
14645+
connaxio_espoir.menu.UploadSpeed.230400.upload.speed=230400
14646+
connaxio_espoir.menu.UploadSpeed.115200=115200
14647+
connaxio_espoir.menu.UploadSpeed.115200.upload.speed=115200
14648+
14649+
connaxio_espoir.menu.DebugLevel.none=None
14650+
connaxio_espoir.menu.DebugLevel.none.build.code_debug=0
14651+
connaxio_espoir.menu.DebugLevel.error=Error
14652+
connaxio_espoir.menu.DebugLevel.error.build.code_debug=1
14653+
connaxio_espoir.menu.DebugLevel.warn=Warn
14654+
connaxio_espoir.menu.DebugLevel.warn.build.code_debug=2
14655+
connaxio_espoir.menu.DebugLevel.info=Info
14656+
connaxio_espoir.menu.DebugLevel.info.build.code_debug=3
14657+
connaxio_espoir.menu.DebugLevel.debug=Debug
14658+
connaxio_espoir.menu.DebugLevel.debug.build.code_debug=4
14659+
connaxio_espoir.menu.DebugLevel.verbose=Verbose
14660+
connaxio_espoir.menu.DebugLevel.verbose.build.code_debug=5
14661+
14662+
##############################################################
+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
/* variant: Espoir
5+
* vendor: Connaxio
6+
* url: https://www.connaxio.com/electronics/espoir/
7+
*/
8+
9+
#include <stdint.h>
10+
11+
#define EXTERNAL_NUM_INTERRUPTS 16
12+
#define NUM_DIGITAL_PINS 40
13+
#define NUM_ANALOG_INPUTS 16
14+
15+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
16+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
17+
#define digitalPinHasPWM(p) (p < 34)
18+
19+
/* USB UART */
20+
static const uint8_t TX = 1;
21+
static const uint8_t RX = 3;
22+
23+
/* mikroBUS UART */
24+
static const uint8_t TX1 = 10;
25+
static const uint8_t RX1 = 9;
26+
27+
/* mikroBUS I2C */
28+
static const uint8_t SDA = 23;
29+
static const uint8_t SCL = 18;
30+
31+
/* mikroBUS SPI */
32+
static const uint8_t SS = 15;
33+
static const uint8_t MOSI = 13;
34+
static const uint8_t MISO = 12;
35+
static const uint8_t SCK = 14;
36+
37+
/* Default analog pins */
38+
static const uint8_t A0 = 36;
39+
static const uint8_t A1 = 37;
40+
static const uint8_t A2 = 38;
41+
static const uint8_t A3 = 39;
42+
static const uint8_t A6 = 34;
43+
44+
/* Alternative analog pins */
45+
static const uint8_t A10 = 4;
46+
static const uint8_t A12 = 2;
47+
static const uint8_t A13 = 15;
48+
static const uint8_t A14 = 13;
49+
static const uint8_t A15 = 12;
50+
static const uint8_t A16 = 14;
51+
52+
/* Touch pins */
53+
static const uint8_t T0 = 4;
54+
static const uint8_t T2 = 2;
55+
static const uint8_t T3 = 15;
56+
static const uint8_t T4 = 13;
57+
static const uint8_t T5 = 12;
58+
static const uint8_t T6 = 14;
59+
60+
/* Other pin names */
61+
static const uint8_t AN = 36;
62+
static const uint8_t RST = 5;
63+
static const uint8_t PWM = 2;
64+
static const uint8_t INT = 4;
65+
static const uint8_t CS = 15;
66+
static const uint8_t SDO = 13;
67+
static const uint8_t SDI = 12;
68+
69+
/* Ethernet interface */
70+
static const uint8_t ETH_INT = 35;
71+
#define ETH_PHY_ADDR 0
72+
#define ETH_PHY_POWER -1
73+
#define ETH_PHY_MDC 32
74+
#define ETH_PHY_MDIO 33
75+
#define ETH_PHY_TYPE ETH_PHY_KSZ8081
76+
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
77+
78+
/* USB interface */
79+
#define USB_VID 0x10C4 // Silabs's VID
80+
#define USB_PID 0x8D9A // Espoir's PID, requires Silab USB PHY
81+
#define USB_MANUFACTURER "Connaxio"
82+
#define USB_PRODUCT "Espoir"
83+
#define USB_SERIAL ""
84+
85+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)