Skip to content

Commit 7da1a2b

Browse files
UnexpectedMakerme-no-dev
authored andcommitted
Added UM FeatherS2 and UM ProS2 boards to boards.txt (#4188)
* Added UM FeatherS2 and UM ProS2 boards to boards.txt Updated the name of TinyPICO to UM TinyPICO in boards.txt * Added VID/PID/Product names for TinyPICO, ProS2 & FeatherS2 Setup variant folders for each board * Removed unneeded stuff from FeatherS2 & ProS2 menu options * Added Serial CDC output default for FeatherS2 and ProS2 * Removed unneeded stuff from FeatherS2 & ProS2 menu options * Rebase from upstream and fixed Serial Output settings for FeatherS2 and ProS2 Co-authored-by: Seon Rozenblum <seonr@3sprockets.com>
1 parent 83f78c2 commit 7da1a2b

File tree

4 files changed

+423
-2
lines changed

4 files changed

+423
-2
lines changed

boards.txt

Lines changed: 267 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ pico32.menu.DebugLevel.verbose=Verbose
475475
pico32.menu.DebugLevel.verbose.build.code_debug=5
476476

477477
##############################################################
478-
tinypico.name=TinyPICO
478+
tinypico.name=UM TinyPICO
479479

480480
tinypico.upload.tool=esptool_py
481481
tinypico.upload.maximum_size=1310720
@@ -487,7 +487,7 @@ tinypico.serial.disableRTS=true
487487

488488
tinypico.build.mcu=esp32
489489
tinypico.build.core=esp32
490-
tinypico.build.variant=pico32
490+
tinypico.build.variant=um_tinypico
491491
tinypico.build.board=TINYPICO
492492

493493
tinypico.build.f_cpu=240000000L
@@ -554,6 +554,271 @@ tinypico.menu.DebugLevel.debug.build.code_debug=4
554554
tinypico.menu.DebugLevel.verbose=Verbose
555555
tinypico.menu.DebugLevel.verbose.build.code_debug=5
556556

557+
##############################################################
558+
feathers2.name=UM FeatherS2
559+
feathers2.vid.0=0x239A
560+
feathers2.pid.0=0x80AB
561+
562+
feathers2.upload.tool=esptool_py
563+
feathers2.upload.maximum_size=1310720
564+
feathers2.upload.maximum_data_size=327680
565+
feathers2.upload.flags=
566+
567+
feathers2.serial.disableDTR=true
568+
feathers2.serial.disableRTS=true
569+
570+
feathers2.build.mcu=esp32s2
571+
feathers2.build.core=esp32
572+
feathers2.build.variant=um_feathers2
573+
feathers2.build.board=FEATHERS2
574+
575+
feathers2.build.serial=1
576+
feathers2.build.f_cpu=240000000L
577+
feathers2.build.flash_size=16MB
578+
feathers2.build.flash_freq=80m
579+
feathers2.build.flash_mode=dio
580+
feathers2.build.boot=qio
581+
feathers2.build.partitions=fatflash
582+
feathers2.build.defines=
583+
584+
feathers2.menu.SerialMode.cdc=USB CDC
585+
feathers2.menu.SerialMode.cdc.build.serial=1
586+
feathers2.menu.SerialMode.default=UART0
587+
feathers2.menu.SerialMode.default.build.serial=0
588+
589+
feathers2.menu.PSRAM.enabled=Enabled
590+
feathers2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
591+
feathers2.menu.PSRAM.disabled=Disabled
592+
feathers2.menu.PSRAM.disabled.build.defines=
593+
594+
feathers2.menu.UploadMode.cdc=USB CDC
595+
feathers2.menu.UploadMode.cdc.upload.flags=--no-stub
596+
feathers2.menu.UploadMode.cdc.upload.tool=esptool_py
597+
feathers2.menu.UploadMode.cdc.serial.disableDTR=false
598+
feathers2.menu.UploadMode.cdc.serial.disableRTS=false
599+
feathers2.menu.UploadMode.default=Default Uart - External
600+
feathers2.menu.UploadMode.default.upload.flags=
601+
feathers2.menu.UploadMode.default.upload.tool=esptool_py
602+
feathers2.menu.UploadMode.default.serial.disableDTR=true
603+
feathers2.menu.UploadMode.default.serial.disableRTS=true
604+
605+
feathers2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
606+
feathers2.menu.PartitionScheme.fatflash.build.partitions=ffat
607+
feathers2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
608+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
609+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
610+
feathers2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
611+
feathers2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
612+
feathers2.menu.PartitionScheme.default.build.partitions=default
613+
feathers2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
614+
feathers2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
615+
feathers2.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
616+
feathers2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
617+
feathers2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
618+
feathers2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
619+
feathers2.menu.PartitionScheme.minimal.build.partitions=minimal
620+
feathers2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
621+
feathers2.menu.PartitionScheme.no_ota.build.partitions=no_ota
622+
feathers2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
623+
feathers2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
624+
feathers2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
625+
feathers2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
626+
feathers2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
627+
feathers2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
628+
feathers2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
629+
feathers2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
630+
feathers2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
631+
feathers2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
632+
feathers2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
633+
feathers2.menu.PartitionScheme.huge_app.build.partitions=huge_app
634+
feathers2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
635+
feathers2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
636+
feathers2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
637+
feathers2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
638+
639+
feathers2.menu.CPUFreq.240=240MHz (WiFi)
640+
feathers2.menu.CPUFreq.240.build.f_cpu=240000000L
641+
feathers2.menu.CPUFreq.160=160MHz (WiFi)
642+
feathers2.menu.CPUFreq.160.build.f_cpu=160000000L
643+
feathers2.menu.CPUFreq.80=80MHz (WiFi)
644+
feathers2.menu.CPUFreq.80.build.f_cpu=80000000L
645+
feathers2.menu.CPUFreq.40=40MHz
646+
feathers2.menu.CPUFreq.40.build.f_cpu=40000000L
647+
feathers2.menu.CPUFreq.20=20MHz
648+
feathers2.menu.CPUFreq.20.build.f_cpu=20000000L
649+
feathers2.menu.CPUFreq.10=10MHz
650+
feathers2.menu.CPUFreq.10.build.f_cpu=10000000L
651+
652+
feathers2.menu.FlashSize.16M=16MB (128Mb)
653+
feathers2.menu.FlashSize.16M.build.flash_size=16MB
654+
feathers2.menu.FlashSize.4M=4MB (32Mb)
655+
feathers2.menu.FlashSize.4M.build.flash_size=4MB
656+
feathers2.menu.FlashSize.8M=8MB (64Mb)
657+
feathers2.menu.FlashSize.8M.build.flash_size=8MB
658+
feathers2.menu.FlashSize.8M.build.partitions=default_8MB
659+
feathers2.menu.FlashSize.2M=2MB (16Mb)
660+
feathers2.menu.FlashSize.2M.build.flash_size=2MB
661+
feathers2.menu.FlashSize.2M.build.partitions=minimal
662+
663+
feathers2.menu.UploadSpeed.921600=921600
664+
feathers2.menu.UploadSpeed.921600.upload.speed=921600
665+
feathers2.menu.UploadSpeed.115200=115200
666+
feathers2.menu.UploadSpeed.115200.upload.speed=115200
667+
feathers2.menu.UploadSpeed.256000.windows=256000
668+
feathers2.menu.UploadSpeed.256000.upload.speed=256000
669+
feathers2.menu.UploadSpeed.230400.windows.upload.speed=256000
670+
feathers2.menu.UploadSpeed.230400=230400
671+
feathers2.menu.UploadSpeed.230400.upload.speed=230400
672+
feathers2.menu.UploadSpeed.460800.linux=460800
673+
feathers2.menu.UploadSpeed.460800.macosx=460800
674+
feathers2.menu.UploadSpeed.460800.upload.speed=460800
675+
676+
feathers2.menu.DebugLevel.none=None
677+
feathers2.menu.DebugLevel.none.build.code_debug=0
678+
feathers2.menu.DebugLevel.error=Error
679+
feathers2.menu.DebugLevel.error.build.code_debug=1
680+
feathers2.menu.DebugLevel.warn=Warn
681+
feathers2.menu.DebugLevel.warn.build.code_debug=2
682+
feathers2.menu.DebugLevel.info=Info
683+
feathers2.menu.DebugLevel.info.build.code_debug=3
684+
feathers2.menu.DebugLevel.debug=Debug
685+
feathers2.menu.DebugLevel.debug.build.code_debug=4
686+
feathers2.menu.DebugLevel.verbose=Verbose
687+
feathers2.menu.DebugLevel.verbose.build.code_debug=5
688+
689+
##############################################################
690+
pros2.name=UM ProS2
691+
pros2.vid.0=0x239A
692+
pros2.pid.0=0x80A9
693+
694+
pros2.upload.tool=esptool_py
695+
pros2.upload.maximum_size=1310720
696+
pros2.upload.maximum_data_size=327680
697+
pros2.upload.flags=
698+
699+
pros2.serial.disableDTR=true
700+
pros2.serial.disableRTS=true
701+
702+
pros2.build.mcu=esp32s2
703+
pros2.build.core=esp32
704+
pros2.build.variant=um_pros2
705+
pros2.build.board=PROS2
706+
707+
pros2.build.serial=1
708+
pros2.build.f_cpu=240000000L
709+
pros2.build.flash_size=16MB
710+
pros2.build.flash_freq=80m
711+
pros2.build.flash_mode=dio
712+
pros2.build.boot=qio
713+
pros2.build.partitions=fatflash
714+
pros2.build.defines=
715+
716+
pros2.menu.SerialMode.cdc=USB CDC
717+
pros2.menu.SerialMode.cdc.build.serial=1
718+
pros2.menu.SerialMode.default=UART0
719+
pros2.menu.SerialMode.default.build.serial=0
720+
721+
pros2.menu.PSRAM.enabled=Enabled
722+
pros2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
723+
pros2.menu.PSRAM.disabled=Disabled
724+
pros2.menu.PSRAM.disabled.build.defines=
725+
726+
pros2.menu.UploadMode.cdc=USB CDC
727+
pros2.menu.UploadMode.cdc.upload.flags=--no-stub
728+
pros2.menu.UploadMode.cdc.upload.tool=esptool_py
729+
pros2.menu.UploadMode.cdc.serial.disableDTR=false
730+
pros2.menu.UploadMode.cdc.serial.disableRTS=false
731+
pros2.menu.UploadMode.default=Default Uart - External
732+
pros2.menu.UploadMode.default.upload.flags=
733+
pros2.menu.UploadMode.default.upload.tool=esptool_py
734+
pros2.menu.UploadMode.default.serial.disableDTR=true
735+
pros2.menu.UploadMode.default.serial.disableRTS=true
736+
737+
pros2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
738+
pros2.menu.PartitionScheme.fatflash.build.partitions=ffat
739+
pros2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
740+
pros2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
741+
pros2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
742+
pros2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
743+
pros2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
744+
pros2.menu.PartitionScheme.default.build.partitions=default
745+
pros2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
746+
pros2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
747+
pros2.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
748+
pros2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
749+
pros2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
750+
pros2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
751+
pros2.menu.PartitionScheme.minimal.build.partitions=minimal
752+
pros2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
753+
pros2.menu.PartitionScheme.no_ota.build.partitions=no_ota
754+
pros2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
755+
pros2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
756+
pros2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
757+
pros2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
758+
pros2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
759+
pros2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
760+
pros2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
761+
pros2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
762+
pros2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
763+
pros2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
764+
pros2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
765+
pros2.menu.PartitionScheme.huge_app.build.partitions=huge_app
766+
pros2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
767+
pros2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
768+
pros2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
769+
pros2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
770+
771+
pros2.menu.CPUFreq.240=240MHz (WiFi)
772+
pros2.menu.CPUFreq.240.build.f_cpu=240000000L
773+
pros2.menu.CPUFreq.160=160MHz (WiFi)
774+
pros2.menu.CPUFreq.160.build.f_cpu=160000000L
775+
pros2.menu.CPUFreq.80=80MHz (WiFi)
776+
pros2.menu.CPUFreq.80.build.f_cpu=80000000L
777+
pros2.menu.CPUFreq.40=40MHz
778+
pros2.menu.CPUFreq.40.build.f_cpu=40000000L
779+
pros2.menu.CPUFreq.20=20MHz
780+
pros2.menu.CPUFreq.20.build.f_cpu=20000000L
781+
pros2.menu.CPUFreq.10=10MHz
782+
pros2.menu.CPUFreq.10.build.f_cpu=10000000L
783+
784+
pros2.menu.FlashSize.16M=16MB (128Mb)
785+
pros2.menu.FlashSize.16M.build.flash_size=16MB
786+
pros2.menu.FlashSize.4M=4MB (32Mb)
787+
pros2.menu.FlashSize.4M.build.flash_size=4MB
788+
pros2.menu.FlashSize.8M=8MB (64Mb)
789+
pros2.menu.FlashSize.8M.build.flash_size=8MB
790+
pros2.menu.FlashSize.8M.build.partitions=default_8MB
791+
pros2.menu.FlashSize.2M=2MB (16Mb)
792+
pros2.menu.FlashSize.2M.build.flash_size=2MB
793+
pros2.menu.FlashSize.2M.build.partitions=minimal
794+
795+
pros2.menu.UploadSpeed.921600=921600
796+
pros2.menu.UploadSpeed.921600.upload.speed=921600
797+
pros2.menu.UploadSpeed.115200=115200
798+
pros2.menu.UploadSpeed.115200.upload.speed=115200
799+
pros2.menu.UploadSpeed.256000.windows=256000
800+
pros2.menu.UploadSpeed.256000.upload.speed=256000
801+
pros2.menu.UploadSpeed.230400.windows.upload.speed=256000
802+
pros2.menu.UploadSpeed.230400=230400
803+
pros2.menu.UploadSpeed.230400.upload.speed=230400
804+
pros2.menu.UploadSpeed.460800.linux=460800
805+
pros2.menu.UploadSpeed.460800.macosx=460800
806+
pros2.menu.UploadSpeed.460800.upload.speed=460800
807+
808+
809+
pros2.menu.DebugLevel.none=None
810+
pros2.menu.DebugLevel.none.build.code_debug=0
811+
pros2.menu.DebugLevel.error=Error
812+
pros2.menu.DebugLevel.error.build.code_debug=1
813+
pros2.menu.DebugLevel.warn=Warn
814+
pros2.menu.DebugLevel.warn.build.code_debug=2
815+
pros2.menu.DebugLevel.info=Info
816+
pros2.menu.DebugLevel.info.build.code_debug=3
817+
pros2.menu.DebugLevel.debug=Debug
818+
pros2.menu.DebugLevel.debug.build.code_debug=4
819+
pros2.menu.DebugLevel.verbose=Verbose
820+
pros2.menu.DebugLevel.verbose.build.code_debug=5
821+
557822
##############################################################
558823
S_ODI_Ultra.name=S.ODI Ultra v1
559824

variants/um_feathers2/pins_arduino.h

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x239A
7+
#define USB_PID 0x80AB
8+
#define USB_MANUFACTURER "Unexpected Maker"
9+
#define USB_PRODUCT "FeatherS2"
10+
#define USB_SERIAL ""
11+
12+
#define EXTERNAL_NUM_INTERRUPTS 46
13+
#define NUM_DIGITAL_PINS 48
14+
#define NUM_ANALOG_INPUTS 20
15+
16+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
18+
#define digitalPinHasPWM(p) (p < 46)
19+
20+
static const uint8_t TX = 43;
21+
static const uint8_t RX = 44;
22+
23+
static const uint8_t SDA = 8;
24+
static const uint8_t SCL = 9;
25+
26+
static const uint8_t SS = 34;
27+
static const uint8_t MOSI = 35;
28+
static const uint8_t MISO = 37;
29+
static const uint8_t SDO = 35;
30+
static const uint8_t SDI = 37;
31+
static const uint8_t SCK = 36;
32+
33+
static const uint8_t A0 = 1;
34+
static const uint8_t A1 = 2;
35+
static const uint8_t A2 = 3;
36+
static const uint8_t A3 = 4;
37+
static const uint8_t A4 = 5;
38+
static const uint8_t A5 = 6;
39+
static const uint8_t A6 = 7;
40+
static const uint8_t A7 = 8;
41+
static const uint8_t A8 = 9;
42+
static const uint8_t A9 = 10;
43+
static const uint8_t A10 = 11;
44+
static const uint8_t A11 = 12;
45+
static const uint8_t A12 = 13;
46+
static const uint8_t A13 = 14;
47+
static const uint8_t A14 = 15;
48+
static const uint8_t A15 = 16;
49+
static const uint8_t A16 = 17;
50+
static const uint8_t A17 = 18;
51+
static const uint8_t A18 = 19;
52+
static const uint8_t A19 = 20;
53+
54+
static const uint8_t T1 = 1;
55+
static const uint8_t T2 = 2;
56+
static const uint8_t T3 = 3;
57+
static const uint8_t T4 = 4;
58+
static const uint8_t T5 = 5;
59+
static const uint8_t T6 = 6;
60+
static const uint8_t T7 = 7;
61+
static const uint8_t T8 = 8;
62+
static const uint8_t T9 = 9;
63+
static const uint8_t T10 = 10;
64+
static const uint8_t T11 = 11;
65+
static const uint8_t T12 = 12;
66+
static const uint8_t T13 = 13;
67+
static const uint8_t T14 = 14;
68+
69+
static const uint8_t DAC1 = 17;
70+
static const uint8_t DAC2 = 18;
71+
72+
static const uint8_t LDO_2_POWER = 21;
73+
74+
static const uint8_t APA_DATA = 40;
75+
static const uint8_t APA_CLK = 45;
76+
77+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)