diff options
author | Ayke van Laethem <[email protected]> | 2021-02-11 13:14:22 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-02-12 01:10:06 +0100 |
commit | 9c8ef5c48fdf7fff03015ac2397a84b63bf54818 (patch) | |
tree | 5a0ddbeb295e6d90063fc502c8e140a649c6ad34 /targets/attiny85.json | |
parent | ab41c79de7364dc961c35042ab5e3529b06438a1 (diff) | |
download | tinygo-9c8ef5c48fdf7fff03015ac2397a84b63bf54818.tar.gz tinygo-9c8ef5c48fdf7fff03015ac2397a84b63bf54818.zip |
digispark: split off attiny85 target
This split is similar to the atmega328p/arduino split and may be helpful
for adding other attiny85 boards or using the attiny85 without a board.
Diffstat (limited to 'targets/attiny85.json')
-rw-r--r-- | targets/attiny85.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/targets/attiny85.json b/targets/attiny85.json new file mode 100644 index 000000000..d1bea7c50 --- /dev/null +++ b/targets/attiny85.json @@ -0,0 +1,16 @@ +{ + "inherits": ["avr"], + "cpu": "attiny85", + "build-tags": ["attiny85", "attiny", "avr2", "avr25"], + "cflags": [ + "-mmcu=attiny85" + ], + "ldflags": [ + "-mmcu=avr25" + ], + "linkerscript": "src/device/avr/attiny85.ld", + "extra-files": [ + "targets/avr.S", + "src/device/avr/attiny85.s" + ] +} |