
* all: add support for specifying target CPU in target config * avr: specify the chip name in the target CPU This reduces code size by a large margin. For examples/blinky, it reduces code size from 1360 to 1266 when compiling for the Arduino Uno (94 bytes, or ~7%).
19 строки
422 Б
JSON
19 строки
422 Б
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": "micronucleus --run {hex}"
|
|
}
|