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.
This commit is contained in:
Ayke van Laethem
2021-02-11 13:14:22 +01:00
committed by Ron Evans
parent ab41c79de7
commit 9c8ef5c48f
2 changed files with 18 additions and 12 deletions
+16
View File
@@ -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"
]
}
+2 -12
View File
@@ -1,20 +1,10 @@
{
"inherits": ["avr"],
"cpu": "attiny85",
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
"cflags": [
"-mmcu=attiny85"
],
"inherits": ["attiny85"],
"build-tags": ["digispark"],
"ldflags": [
"-mmcu=avr25",
"-Wl,--defsym=_bootloader_size=2180",
"-Wl,--defsym=_stack_size=128"
],
"linkerscript": "src/device/avr/attiny85.ld",
"extra-files": [
"targets/avr.S",
"src/device/avr/attiny85.s"
],
"flash-command": "micronucleus --run {hex}",
"emulator": ["simavr", "-m", "attiny85", "-f", "16000000"]
}