Add basic atmega32u support (#3337)

machine/atmega32u: add support for arduino leonardo
This commit is contained in:
Jesús Espino
2022-12-20 16:57:55 +01:00
committed by GitHub
parent 6cdc718bfb
commit e71e289e8b
6 changed files with 139 additions and 1 deletions
+10
View File
@@ -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 {}"
}
+11
View File
@@ -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"
]
}