mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +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
+2
-12
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user