avr: support tinygo run with simavr

This commit adds support for running both the Arduino Uno and the
DigiSpark under a simulator.
This commit is contained in:
Ayke van Laethem
2020-01-24 19:42:12 +01:00
committed by Daniel Esteban
parent 1a2f051bee
commit e83d1a02b6
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -10,5 +10,6 @@
"extra-files": [
"targets/avr.S",
"src/device/avr/atmega328p.s"
]
],
"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"]
}
+2 -1
View File
@@ -15,5 +15,6 @@
"targets/avr.S",
"src/device/avr/attiny85.s"
],
"flash-command": "micronucleus --run {hex}"
"flash-command": "micronucleus --run {hex}",
"emulator": ["simavr", "-m", "attiny85", "-f", "16000000"]
}