Project

General

Profile

Revision c7445989

IDc7445989a6ba383536a0440c590189819dda0a4f
Parent 3232c4a7
Child 2a296c5d, c4f160ba

Added by Thomas Mullins over 10 years ago

Fixes to BOM sending code. Now works! Yay!

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