
Instead of specifying the emulator command in atmega328p.json, specify it in the two boards based on it (arduino and arduino-nano). This makes the configuration consistent with the machine package, which only defines the CPUFrequency function in the board files (and not in machine_atmega328p.json).
16 строки
289 Б
JSON
16 строки
289 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"cpu": "atmega328p",
|
|
"build-tags": ["atmega328p", "atmega", "avr5"],
|
|
"cflags": [
|
|
"-mmcu=atmega328p"
|
|
],
|
|
"ldflags": [
|
|
"-mmcu=avr5"
|
|
],
|
|
"linkerscript": "src/device/avr/atmega328p.ld",
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/atmega328p.s"
|
|
]
|
|
}
|