samd/boards: Add support for the Adafruit NeoKey Trinkey board.

Tested with that board.

Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
robert-hh
2025-01-23 14:21:52 +01:00
committed by Damien George
parent 6cbe145ca8
commit 36a0a83997
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"RGB LED",
"USB"
],
"images": [
"neokey_trinkey.jpg"
],
"mcu": "samd21",
"product": "NeoKey Trinkey",
"thumbnail": "",
"url": "https://www.adafruit.com/product/5020",
"vendor": "Adafruit"
}

View File

@@ -0,0 +1,14 @@
#define MICROPY_HW_BOARD_NAME "NeoKey Trinkey"
#define MICROPY_HW_MCU_NAME "SAMD21E18A"
#define MICROPY_HW_DFLL_USB_SYNC (1)
// The NEOKEY board has just two accessible GPIO pins.
// So many classes and modules are useless.
#define MICROPY_PY_MACHINE_SOFTI2C (0)
#define MICROPY_PY_MACHINE_SOFTSPI (0)
#define MICROPY_PY_MACHINE_I2C (0)
#define MICROPY_PY_MACHINE_SPI (0)
#define MICROPY_PY_MACHINE_UART (0)
#define MICROPY_PY_MACHINE_ADC (0)
#define MICROPY_PY_MACHINE_DAC (0)

View File

@@ -0,0 +1,4 @@
MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21E18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000

View File

@@ -0,0 +1,14 @@
# The lines contain pairs of Pin name and Pin number.
# Pin names must be valid Python identifiers.
# Pin numbers have the form Pxnn, with x being A, B, C or D.
# Lines starting with # or empty lines are ignored.
NEOPIXEL,PA15
SWITCH,PA18
TOUCH,PA07
USB_DM,PA24
USB_DP,PA25
SWCLK,PA30
SWDIO,PA31
1 # The lines contain pairs of Pin name and Pin number.
2 # Pin names must be valid Python identifiers.
3 # Pin numbers have the form Pxnn, with x being A, B, C or D.
4 # Lines starting with # or empty lines are ignored.
5 NEOPIXEL,PA15
6 SWITCH,PA18
7 TOUCH,PA07
8 USB_DM,PA24
9 USB_DP,PA25
10 SWCLK,PA30
11 SWDIO,PA31