aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/atmega1284p.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-03-10 18:40:15 +0100
committerRon Evans <[email protected]>2020-03-17 14:46:56 +0100
commit5089d1a5a79a605304db114718145666635bbb77 (patch)
tree7bc12603088101194e273beb6f46c5e58ea8c1bd /targets/atmega1284p.json
parent66afcb3b390ffdec0c891ff72adb177f5e3d6846 (diff)
downloadtinygo-5089d1a5a79a605304db114718145666635bbb77.tar.gz
tinygo-5089d1a5a79a605304db114718145666635bbb77.zip
avr: add atmega1284 chip support
Not tested on actual hardware, only on simavr. The main motivation for adding this chip is to be able to run simulated tests using a much larger memory space (16kB RAM, 128kB flash) without jumping to the XMega devices that may not be as well supported by LLVM.
Diffstat (limited to 'targets/atmega1284p.json')
-rw-r--r--targets/atmega1284p.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/targets/atmega1284p.json b/targets/atmega1284p.json
new file mode 100644
index 000000000..a2c40ef25
--- /dev/null
+++ b/targets/atmega1284p.json
@@ -0,0 +1,19 @@
+{
+ "inherits": ["avr"],
+ "llvm-target": "avr-atmel-none",
+ "cpu": "atmega1284p",
+ "build-tags": ["atmega1284p", "atmega"],
+ "cflags": [
+ "-mmcu=atmega1284p"
+ ],
+ "ldflags": [
+ "-mmcu=avr51",
+ "-Wl,--defsym=_bootloader_size=0",
+ "-Wl,--defsym=_stack_size=512"
+ ],
+ "linkerscript": "src/device/avr/atmega1284p.ld",
+ "extra-files": [
+ "targets/avr.S",
+ "src/device/avr/atmega1284p.s"
+ ]
+}