mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
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:
committed by
Ron Evans
parent
ab41c79de7
commit
9c8ef5c48f
@@ -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
@@ -1,20 +1,10 @@
|
|||||||
{
|
{
|
||||||
"inherits": ["avr"],
|
"inherits": ["attiny85"],
|
||||||
"cpu": "attiny85",
|
"build-tags": ["digispark"],
|
||||||
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
|
|
||||||
"cflags": [
|
|
||||||
"-mmcu=attiny85"
|
|
||||||
],
|
|
||||||
"ldflags": [
|
"ldflags": [
|
||||||
"-mmcu=avr25",
|
|
||||||
"-Wl,--defsym=_bootloader_size=2180",
|
"-Wl,--defsym=_bootloader_size=2180",
|
||||||
"-Wl,--defsym=_stack_size=128"
|
"-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}",
|
"flash-command": "micronucleus --run {hex}",
|
||||||
"emulator": ["simavr", "-m", "attiny85", "-f", "16000000"]
|
"emulator": ["simavr", "-m", "attiny85", "-f", "16000000"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user