
Instead of specifying explicit commands, most of these commands have been replaced by more specific properties. This is work that will be necessary for an eventual -programmer flag to the compiler, with which it is possible to select which programmer to use to flash or debug a chip. That's not very useful for boards that already include a programmer or bootloader for that purpose, but is very useful for novel boards or single-purpose boards that are not already included in TinyGo.
19 строки
430 Б
JSON
19 строки
430 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"llvm-target": "avr-atmel-none",
|
|
"cpu": "attiny85",
|
|
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
|
|
"cflags": [
|
|
"-mmcu=attiny85"
|
|
],
|
|
"ldflags": [
|
|
"-Wl,--defsym=_bootloader_size=2180",
|
|
"-Wl,--defsym=_stack_size=128",
|
|
"-T", "src/device/avr/attiny85.ld"
|
|
],
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/attiny85.s"
|
|
],
|
|
"flash-command": "micronucleus --run {hex}"
|
|
}
|