diff options
author | Travis McLane <[email protected]> | 2020-03-24 16:24:47 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-24 22:24:47 +0100 |
commit | 83426edcdcc60f1f38427a9201868595a17bd6e8 (patch) | |
tree | 250a610332b785b334ecb1ab03470294df87b021 /targets | |
parent | 26aba727296c7302cf369d2b6e32b4fe010e1434 (diff) | |
download | tinygo-83426edcdcc60f1f38427a9201868595a17bd6e8.tar.gz tinygo-83426edcdcc60f1f38427a9201868595a17bd6e8.zip |
avr: add Arduino Mega 2560
Diffstat (limited to 'targets')
-rw-r--r-- | targets/arduino-mega2560.json | 8 | ||||
-rw-r--r-- | targets/atmega2560.json | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/targets/arduino-mega2560.json b/targets/arduino-mega2560.json new file mode 100644 index 000000000..792ede400 --- /dev/null +++ b/targets/arduino-mega2560.json @@ -0,0 +1,8 @@ +{ + "inherits": ["atmega2560"], + "build-tags": ["arduino_mega2560"], + "ldflags": [ + "-Wl,--defsym=_bootloader_size=8192" + ], + "flash-command":"avrdude -c wiring -b 115200 -p atmega2560 -P {port} -U flash:w:{hex} -v -D" +} diff --git a/targets/atmega2560.json b/targets/atmega2560.json new file mode 100644 index 000000000..420e803a6 --- /dev/null +++ b/targets/atmega2560.json @@ -0,0 +1,18 @@ +{ + "inherits": ["avr"], + "llvm-target": "avr-atmel-none", + "cpu": "atmega2560", + "build-tags": ["atmega2560", "atmega"], + "cflags": [ + "-mmcu=atmega2560" + ], + "ldflags": [ + "-mmcu=avr6", + "-Wl,--defsym=_stack_size=512" + ], + "linkerscript": "src/device/avr/atmega2560.ld", + "extra-files": [ + "targets/avr.S", + "src/device/avr/atmega2560.s" + ] +} |