Skip to content

Commit

Permalink
many variant trinks!
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed May 11, 2024
1 parent 5a57904 commit 72e88b4
Show file tree
Hide file tree
Showing 15 changed files with 1,703 additions and 0 deletions.
187 changes: 187 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,193 @@ adafruit_sht4xtrinkey_m0.menu.debug.on=On
adafruit_sht4xtrinkey_m0.menu.debug.on.build.flags.debug=-g


# -----------------------------------
# Adafruit Pixel Trinkey M0 (SAMD21)
# -----------------------------------
adafruit_pixeltrinkey_m0.name=Adafruit Pixel Trinkey M0 (SAMD21)

# VID/PID for Bootloader, Arduino & CircuitPython
adafruit_pixeltrinkey_m0.vid.0=0x239A
adafruit_pixeltrinkey_m0.pid.0=0x8155
adafruit_pixeltrinkey_m0.vid.1=0x239A
adafruit_pixeltrinkey_m0.pid.1=0x0155
adafruit_pixeltrinkey_m0.vid.2=0x239A
adafruit_pixeltrinkey_m0.pid.2=0x8156

# Upload
adafruit_pixeltrinkey_m0.upload.tool=bossac18
adafruit_pixeltrinkey_m0.upload.protocol=sam-ba
adafruit_pixeltrinkey_m0.upload.maximum_size=262144
adafruit_pixeltrinkey_m0.upload.offset=0x2000
adafruit_pixeltrinkey_m0.upload.use_1200bps_touch=true
adafruit_pixeltrinkey_m0.upload.wait_for_upload_port=true
adafruit_pixeltrinkey_m0.upload.native_usb=true

# Build
adafruit_pixeltrinkey_m0.build.mcu=cortex-m0plus
adafruit_pixeltrinkey_m0.build.f_cpu=48000000L
adafruit_pixeltrinkey_m0.build.usb_product="Pixel Trinkey M0"
adafruit_pixeltrinkey_m0.build.usb_manufacturer="Adafruit"
adafruit_pixeltrinkey_m0.build.board=PIXELTRINKEY_M0
adafruit_pixeltrinkey_m0.build.core=arduino
adafruit_pixeltrinkey_m0.build.extra_flags=-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_PIXELTRINKEY_M0 -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS {build.usb_flags}
adafruit_pixeltrinkey_m0.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
adafruit_pixeltrinkey_m0.build.openocdscript=scripts/openocd/daplink_samd21.cfg
adafruit_pixeltrinkey_m0.build.variant=pixeltrinkey_m0
adafruit_pixeltrinkey_m0.build.variant_system_lib=
adafruit_pixeltrinkey_m0.build.vid=0x239A
adafruit_pixeltrinkey_m0.build.pid=0x8155
adafruit_pixeltrinkey_m0.bootloader.tool=openocd
adafruit_pixeltrinkey_m0.bootloader.file=pixeltrinkey_m0/bootloader-pixeltrinkey_m0.bin

# Menu: Optimization
adafruit_pixeltrinkey_m0.menu.opt.small=Small (-Os) (standard)
adafruit_pixeltrinkey_m0.menu.opt.small.build.flags.optimize=-Os
adafruit_pixeltrinkey_m0.menu.opt.fast=Fast (-O2)
adafruit_pixeltrinkey_m0.menu.opt.fast.build.flags.optimize=-O2
adafruit_pixeltrinkey_m0.menu.opt.faster=Faster (-O3)
adafruit_pixeltrinkey_m0.menu.opt.faster.build.flags.optimize=-O3
adafruit_pixeltrinkey_m0.menu.opt.fastest=Fastest (-Ofast)
adafruit_pixeltrinkey_m0.menu.opt.fastest.build.flags.optimize=-Ofast
adafruit_pixeltrinkey_m0.menu.opt.dragons=Here be dragons (-Ofast -funroll-loops)
adafruit_pixeltrinkey_m0.menu.opt.dragons.build.flags.optimize=-Ofast -funroll-loops

# Menu: USB Stack
adafruit_pixeltrinkey_m0.menu.usbstack.arduino=Arduino
adafruit_pixeltrinkey_m0.menu.usbstack.tinyusb=TinyUSB
adafruit_pixeltrinkey_m0.menu.usbstack.tinyusb.build.flags.usbstack=-DUSE_TINYUSB

# Menu: Debug
adafruit_pixeltrinkey_m0.menu.debug.off=Off
adafruit_pixeltrinkey_m0.menu.debug.on=On
adafruit_pixeltrinkey_m0.menu.debug.on.build.flags.debug=-g


# -----------------------------------
# Adafruit TRRS Trinkey M0 (SAMD21)
# -----------------------------------
adafruit_TRRStrinkey_m0.name=Adafruit TRRS Trinkey M0 (SAMD21)

# VID/PID for Bootloader, Arduino & CircuitPython
adafruit_TRRStrinkey_m0.vid.0=0x239A
adafruit_TRRStrinkey_m0.pid.0=0x8157
adafruit_TRRStrinkey_m0.vid.1=0x239A
adafruit_TRRStrinkey_m0.pid.1=0x0157
adafruit_TRRStrinkey_m0.vid.2=0x239A
adafruit_TRRStrinkey_m0.pid.2=0x8158

# Upload
adafruit_TRRStrinkey_m0.upload.tool=bossac18
adafruit_TRRStrinkey_m0.upload.protocol=sam-ba
adafruit_TRRStrinkey_m0.upload.maximum_size=262144
adafruit_TRRStrinkey_m0.upload.offset=0x2000
adafruit_TRRStrinkey_m0.upload.use_1200bps_touch=true
adafruit_TRRStrinkey_m0.upload.wait_for_upload_port=true
adafruit_TRRStrinkey_m0.upload.native_usb=true

# Build
adafruit_TRRStrinkey_m0.build.mcu=cortex-m0plus
adafruit_TRRStrinkey_m0.build.f_cpu=48000000L
adafruit_TRRStrinkey_m0.build.usb_product="TRRS Trinkey M0"
adafruit_TRRStrinkey_m0.build.usb_manufacturer="Adafruit"
adafruit_TRRStrinkey_m0.build.board=TRRSTRINKEY_M0
adafruit_TRRStrinkey_m0.build.core=arduino
adafruit_TRRStrinkey_m0.build.extra_flags=-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_TRRSTRINKEY_M0 -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS {build.usb_flags}
adafruit_TRRStrinkey_m0.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
adafruit_TRRStrinkey_m0.build.openocdscript=scripts/openocd/daplink_samd21.cfg
adafruit_TRRStrinkey_m0.build.variant=TRRStrinkey_m0
adafruit_TRRStrinkey_m0.build.variant_system_lib=
adafruit_TRRStrinkey_m0.build.vid=0x239A
adafruit_TRRStrinkey_m0.build.pid=0x8157
adafruit_TRRStrinkey_m0.bootloader.tool=openocd
adafruit_TRRStrinkey_m0.bootloader.file=TRRStrinkey_m0/bootloader-TRRStrinkey_m0.bin

# Menu: Optimization
adafruit_TRRStrinkey_m0.menu.opt.small=Small (-Os) (standard)
adafruit_TRRStrinkey_m0.menu.opt.small.build.flags.optimize=-Os
adafruit_TRRStrinkey_m0.menu.opt.fast=Fast (-O2)
adafruit_TRRStrinkey_m0.menu.opt.fast.build.flags.optimize=-O2
adafruit_TRRStrinkey_m0.menu.opt.faster=Faster (-O3)
adafruit_TRRStrinkey_m0.menu.opt.faster.build.flags.optimize=-O3
adafruit_TRRStrinkey_m0.menu.opt.fastest=Fastest (-Ofast)
adafruit_TRRStrinkey_m0.menu.opt.fastest.build.flags.optimize=-Ofast
adafruit_TRRStrinkey_m0.menu.opt.dragons=Here be dragons (-Ofast -funroll-loops)
adafruit_TRRStrinkey_m0.menu.opt.dragons.build.flags.optimize=-Ofast -funroll-loops

# Menu: USB Stack
adafruit_TRRStrinkey_m0.menu.usbstack.arduino=Arduino
adafruit_TRRStrinkey_m0.menu.usbstack.tinyusb=TinyUSB
adafruit_TRRStrinkey_m0.menu.usbstack.tinyusb.build.flags.usbstack=-DUSE_TINYUSB

# Menu: Debug
adafruit_TRRStrinkey_m0.menu.debug.off=Off
adafruit_TRRStrinkey_m0.menu.debug.on=On
adafruit_TRRStrinkey_m0.menu.debug.on.build.flags.debug=-g



# -----------------------------------
# Adafruit TRRS Trinkey M0 (SAMD21)
# -----------------------------------
adafruit_thumbsticktrinkey_m0.name=Adafruit Thumbstick Trinkey M0 (SAMD21)

# VID/PID for Bootloader, Arduino & CircuitPython
adafruit_thumbsticktrinkey_m0.vid.0=0x239A
adafruit_thumbsticktrinkey_m0.pid.0=0x8159
adafruit_thumbsticktrinkey_m0.vid.1=0x239A
adafruit_thumbsticktrinkey_m0.pid.1=0x0159
adafruit_thumbsticktrinkey_m0.vid.2=0x239A
adafruit_thumbsticktrinkey_m0.pid.2=0x8160

# Upload
adafruit_thumbsticktrinkey_m0.upload.tool=bossac18
adafruit_thumbsticktrinkey_m0.upload.protocol=sam-ba
adafruit_thumbsticktrinkey_m0.upload.maximum_size=262144
adafruit_thumbsticktrinkey_m0.upload.offset=0x2000
adafruit_thumbsticktrinkey_m0.upload.use_1200bps_touch=true
adafruit_thumbsticktrinkey_m0.upload.wait_for_upload_port=true
adafruit_thumbsticktrinkey_m0.upload.native_usb=true

# Build
adafruit_thumbsticktrinkey_m0.build.mcu=cortex-m0plus
adafruit_thumbsticktrinkey_m0.build.f_cpu=48000000L
adafruit_thumbsticktrinkey_m0.build.usb_product="Thumbstick Trinkey M0"
adafruit_thumbsticktrinkey_m0.build.usb_manufacturer="Adafruit"
adafruit_thumbsticktrinkey_m0.build.board=THUMBSTICKTRINKEY_M0
adafruit_thumbsticktrinkey_m0.build.core=arduino
adafruit_thumbsticktrinkey_m0.build.extra_flags=-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_THUMBSTICKTRINKEY_M0 -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS {build.usb_flags}
adafruit_thumbsticktrinkey_m0.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
adafruit_thumbsticktrinkey_m0.build.openocdscript=scripts/openocd/daplink_samd21.cfg
adafruit_thumbsticktrinkey_m0.build.variant=thumbsticktrinkey_m0
adafruit_thumbsticktrinkey_m0.build.variant_system_lib=
adafruit_thumbsticktrinkey_m0.build.vid=0x239A
adafruit_thumbsticktrinkey_m0.build.pid=0x8159
adafruit_thumbsticktrinkey_m0.bootloader.tool=openocd
adafruit_thumbsticktrinkey_m0.bootloader.file=thumbsticktrinkey_m0/bootloader-thumbsticktrinkey_m0.bin

# Menu: Optimization
adafruit_thumbsticktrinkey_m0.menu.opt.small=Small (-Os) (standard)
adafruit_thumbsticktrinkey_m0.menu.opt.small.build.flags.optimize=-Os
adafruit_thumbsticktrinkey_m0.menu.opt.fast=Fast (-O2)
adafruit_thumbsticktrinkey_m0.menu.opt.fast.build.flags.optimize=-O2
adafruit_thumbsticktrinkey_m0.menu.opt.faster=Faster (-O3)
adafruit_thumbsticktrinkey_m0.menu.opt.faster.build.flags.optimize=-O3
adafruit_thumbsticktrinkey_m0.menu.opt.fastest=Fastest (-Ofast)
adafruit_thumbsticktrinkey_m0.menu.opt.fastest.build.flags.optimize=-Ofast
adafruit_thumbsticktrinkey_m0.menu.opt.dragons=Here be dragons (-Ofast -funroll-loops)
adafruit_thumbsticktrinkey_m0.menu.opt.dragons.build.flags.optimize=-Ofast -funroll-loops

# Menu: USB Stack
adafruit_thumbsticktrinkey_m0.menu.usbstack.arduino=Arduino
adafruit_thumbsticktrinkey_m0.menu.usbstack.tinyusb=TinyUSB
adafruit_thumbsticktrinkey_m0.menu.usbstack.tinyusb.build.flags.usbstack=-DUSE_TINYUSB

# Menu: Debug
adafruit_thumbsticktrinkey_m0.menu.debug.off=Off
adafruit_thumbsticktrinkey_m0.menu.debug.on=On
adafruit_thumbsticktrinkey_m0.menu.debug.on.build.flags.debug=-g


# -----------------------------------
# Adafruit ItsyBitsy M0 Express (SAMD21)
# -----------------------------------
Expand Down
31 changes: 31 additions & 0 deletions variants/pixeltrinkey_m0/debug_scripts/variant.gdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Arduino Zero OpenOCD script.
#
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#

# Define 'reset' command
define reset

info reg

break main

# End of 'reset' command
end

target remote | openocd -c "interface cmsis-dap" -c "set CHIPNAME at91samd21e18" -f target/at91samdXX.cfg -c "gdb_port pipe; log_output openocd.log"
Loading

0 comments on commit 72e88b4

Please sign in to comment.