mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
Add basic atmega32u support (#3337)
machine/atmega32u: add support for arduino leonardo
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"inherits": ["atmega32u4"],
|
||||
"build-tags": ["arduino_leonardo"],
|
||||
"ldflags": [
|
||||
"--defsym=_bootloader_size=512",
|
||||
"--defsym=_stack_size=512"
|
||||
],
|
||||
"flash-command": "avrdude -c avr109 -p atmega32u4 -b 57600 -P {port} -U flash:w:{hex}:i",
|
||||
"emulator": "simavr -m atmega32u4 -f 16000000 {}"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"inherits": ["avr"],
|
||||
"cpu": "atmega32u4",
|
||||
"build-tags": ["atmega32u4", "avr5"],
|
||||
"serial": "none",
|
||||
"linkerscript": "src/device/avr/atmega32u4.ld",
|
||||
"extra-files": [
|
||||
"targets/avr.S",
|
||||
"src/device/avr/atmega32u4.s"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user