avr: add support for the digispark

Blinking the on-board LED works. Nothing else has been tested yet.
This commit is contained in:
Ayke van Laethem
2018-11-20 18:34:14 +01:00
parent a96e2879b2
commit 9392ef900d
14 changed files with 421 additions and 291 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"build-tags": ["arduino", "atmega328p", "atmega", "avr5", "avr", "js", "wasm"],
"linker": "avr-gcc",
"build-tags": ["arduino", "atmega328p", "atmega", "avr5"],
"pre-link-args": [
"-nostartfiles",
"-mmcu=avr5",
@@ -13,6 +13,5 @@
"targets/avr.S",
"src/device/avr/atmega328p.s"
],
"objcopy": "avr-objcopy",
"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
}