samd/boards: Add generic SAMD21x18 board definitions.
The definition uses the internal oscillator for clock and only internal flash for the file system. It works at SAMD21G18 and SAMD21E18 devices as well, only that fewer pins are accessible. Tested with a SAMD21E18, SAM21G18 and SAMD21J18 board. Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
parent
44a7731669
commit
304467518f
5 changed files with 38 additions and 0 deletions
16
ports/samd/boards/SAMD_GENERIC_D21X18/board.json
Normal file
16
ports/samd/boards/SAMD_GENERIC_D21X18/board.json
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"deploy": [
|
||||||
|
"../deploy.md"
|
||||||
|
],
|
||||||
|
"docs": "",
|
||||||
|
"features": [
|
||||||
|
"USB"
|
||||||
|
],
|
||||||
|
"images": [
|
||||||
|
"generic_board.jpg"
|
||||||
|
],
|
||||||
|
"mcu": "samd21",
|
||||||
|
"vendor": "Microchip",
|
||||||
|
"product": "Generic SAMD21J18",
|
||||||
|
"thumbnail": ""
|
||||||
|
}
|
||||||
4
ports/samd/boards/SAMD_GENERIC_D21X18/board.md
Normal file
4
ports/samd/boards/SAMD_GENERIC_D21X18/board.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
The following firmware should work on most boards with a SAMD21E18,
|
||||||
|
SAMD21G18 and SAMD21J18 MCU. It uses only the features built into
|
||||||
|
the MCU. Additional devices at the board like external flash
|
||||||
|
are not supported.
|
||||||
4
ports/samd/boards/SAMD_GENERIC_D21X18/mpconfigboard.h
Normal file
4
ports/samd/boards/SAMD_GENERIC_D21X18/mpconfigboard.h
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#define MICROPY_HW_BOARD_NAME "Generic SAMD21J18"
|
||||||
|
#define MICROPY_HW_MCU_NAME "SAMD21J18A"
|
||||||
|
|
||||||
|
#define MICROPY_HW_DFLL_USB_SYNC (1)
|
||||||
4
ports/samd/boards/SAMD_GENERIC_D21X18/mpconfigboard.mk
Normal file
4
ports/samd/boards/SAMD_GENERIC_D21X18/mpconfigboard.mk
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
MCU_SERIES = SAMD21
|
||||||
|
CMSIS_MCU = SAMD21J18A
|
||||||
|
LD_FILES = boards/samd21x18a.ld sections.ld
|
||||||
|
TEXT0 = 0x2000
|
||||||
10
ports/samd/boards/SAMD_GENERIC_D21X18/pins.csv
Normal file
10
ports/samd/boards/SAMD_GENERIC_D21X18/pins.csv
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
USB_DM,PA24
|
||||||
|
USB_DP,PA25
|
||||||
|
|
||||||
|
SWCLK,PA30
|
||||||
|
SWDIO,PA31
|
||||||
|
Loading…
Reference in a new issue