[Board] Adafruit Trinket (#333)

* Add support for Adafruit Trinket-M0 board
This commit is contained in:
Martin Treml
2019-05-14 19:30:39 +02:00
committed by Ron Evans
parent e0cf74e638
commit fc2ed2bdd0
10 changed files with 1103 additions and 612 deletions
+15
View File
@@ -0,0 +1,15 @@
{
"inherits": ["cortex-m"],
"llvm-target": "armv6m-none-eabi",
"build-tags": ["atsamd21e18", "atsamd21", "sam"],
"cflags": [
"--target=armv6m-none-eabi",
"-Qunused-arguments"
],
"ldflags": [
"-T", "targets/atsamd21.ld"
],
"extra-files": [
"src/device/sam/atsamd21e18a.s"
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"inherits": ["atsamd21e18a"],
"build-tags": ["sam", "atsamd21e18a", "trinket_m0"],
"flash": "bossac -d -i -e -w -v -R --offset=0x2000 {hex}"
}