aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/arduino.json
blob: f26fcc0e6de5d01e83c5b546d62fcb2ab718e22c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
	"inherits": ["avr"],
	"llvm-target": "avr-atmel-none",
	"cpu": "atmega328p",
	"build-tags": ["arduino", "atmega328p", "atmega", "avr5"],
	"cflags": [
		"-mmcu=atmega328p"
	],
	"ldflags": [
		"-Wl,--defsym=_bootloader_size=512",
		"-Wl,--defsym=_stack_size=512",
		"-T", "src/device/avr/atmega328p.ld"
	],
	"extra-files": [
		"targets/avr.S",
		"src/device/avr/atmega328p.s"
	],
	"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
}