diff options
Diffstat (limited to 'targets')
-rw-r--r-- | targets/arduino-leonardo.json | 10 | ||||
-rw-r--r-- | targets/atmega32u4.json | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/targets/arduino-leonardo.json b/targets/arduino-leonardo.json new file mode 100644 index 000000000..17652d854 --- /dev/null +++ b/targets/arduino-leonardo.json @@ -0,0 +1,10 @@ +{ + "inherits": ["atmega32u4"], + "build-tags": ["arduino_leonardo"], + "ldflags": [ + "--defsym=_bootloader_size=512", + "--defsym=_stack_size=512" + ], + "flash-command": "avrdude -c avr109 -p atmega32u4 -b 57600 -P {port} -U flash:w:{hex}:i", + "emulator": "simavr -m atmega32u4 -f 16000000 {}" +} diff --git a/targets/atmega32u4.json b/targets/atmega32u4.json new file mode 100644 index 000000000..7aa2c08bd --- /dev/null +++ b/targets/atmega32u4.json @@ -0,0 +1,11 @@ +{ + "inherits": ["avr"], + "cpu": "atmega32u4", + "build-tags": ["atmega32u4", "avr5"], + "serial": "none", + "linkerscript": "src/device/avr/atmega32u4.ld", + "extra-files": [ + "targets/avr.S", + "src/device/avr/atmega32u4.s" + ] +} |