Revision 807483bf scout_avr/Makefile

View differences:

scout_avr/Makefile
1

  
2
#PART=m128rfa1
1 3
#MCU=atmega128rfa1
2
MCU=atmega328
4

  
5
#PART=m328p
6
#MCU=atmega328
7

  
8
PART=m2560
9
MCU=atmega2560
10

  
11
#PROG=avrispMKII
12
PROG=stk600
13

  
3 14
F_CPU=8000000
4 15
SRC=src/*.cpp src/ros_lib/*.cpp
5 16
HDR=src/*.h
......
14 25
	avr-g++ $(FLAGS) $(SRC) -o scout_avr.elf
15 26

  
16 27
download: scout_avr.hex
17
	avrdude -p m328p -c avrispMKII -P usb -B 1 -F -U flash:w:scout_avr.hex
28
	avrdude -p $(PART) -c $(PROG) -P usb -B 1 -F -U flash:w:scout_avr.hex
18 29

  
19 30
clean:
20 31
	rm -f scout_avr.elf scout_avr.hex

Also available in: Unified diff