forked from prunkdump/optiboot-sdcard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.atmel
34 lines (32 loc) · 1.15 KB
/
Makefile.atmel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Support for the Atmel Xplained mini eval boards that are mostly
# compatible with Arduino. (168pb, 328p, and 328pb chips.)
#
# Currently these all masquerade as 168 or 328p, because the IDE
# does not yet have compiler support for the -pb variants.
#
# These boards have an mEDBG debug chip that:
# 1) means that optiboot can only be programmed via Atmel Studio
# 2) prevents optiboot from working at 115200bps.
# 3) provides 16MHz (at 5V) via Xin on the chip.
#
#
#
xplained168pb: TARGET = $@
xplained168pb: CHIP = atmega168
xplained168pb:
$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
xplained328pb: TARGET = $@
xplained328pb: CHIP = atmega328
xplained328pb:
$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
xplained328p: TARGET = $@
xplained328p: CHIP = atmega328
xplained328p:
$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst