Revision c7445989 scout_avr/bom/Makefile

View differences:

scout_avr/bom/Makefile
1
PART=m328p
2
MCU=atmega328
1
#PART=m328p
2
#MCU=atmega328
3

  
4
PART=t85
5
MCU=attiny85
3 6

  
4 7
PROG=avrispMKII
5 8

  
6 9
F_CPU=1000000
7 10

  
8
SRC=bom.c twi.c
9
HDR=twi.h
11
SRC=bom.c
12
HDR=
10 13
FLAGS=-mmcu=$(MCU) -DF_CPU=$(F_CPU)UL -funsigned-char -Os -fpack-struct -Wall
11 14

  
12 15
default: bom.hex
......
18 21
	avr-g++ $(FLAGS) $(SRC) -o bom.elf
19 22

  
20 23
program: bom.hex
21
	avrdude -p $(PART) -c $(PROG) -P usb -B 3 -U flash:w:bom.hex
24
	avrdude -p $(PART) -c $(PROG) -P usb -B 5 -U flash:w:bom.hex

Also available in: Unified diff