From 854092c7bc5300b52e3226b747baf3decbc22e03 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 20 Mar 2020 15:13:49 +0100 Subject: [PATCH] avr: add emulator to atmega1284p Somehow I forgot to add this emulator. With this, you can easily emulate programs: $ tinygo run -target=atmega1284p examples/serial Loaded 698 .text at address 0x0 Loaded 12 .data hello world!.. hello world!.. hello world!.. --- targets/atmega1284p.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/atmega1284p.json b/targets/atmega1284p.json index a2c40ef2..ef423942 100644 --- a/targets/atmega1284p.json +++ b/targets/atmega1284p.json @@ -15,5 +15,6 @@ "extra-files": [ "targets/avr.S", "src/device/avr/atmega1284p.s" - ] + ], + "emulator": ["simavr", "-m", "atmega1284p", "-f", "20000000"] }