Project

General

Profile

Revision d88f80e5

IDd88f80e5cbb99f68601850efc8f7cf923c4ccb3a
Parent 89f527ad
Child b99ee462

Added by Thomas Mullins about 10 years ago

Added blinky test program

View differences:

scout_avr/bom/Makefile
15 15
BOOT_FLAGS=$(FLAGS) -Wl,-Ttext=0xA00
16 16
VECT_FLAGS=$(FLAGS) -nostartfiles
17 17

  
18
default: bom.hex
18
default: bom.hex bootloader.hex bootvectors.hex
19 19

  
20 20
%.hex: %.elf
21 21
	avr-objcopy -j .text -j .data -O ihex $< $@
22 22

  
23
%.bin: %.elf
24
	avr-objcopy -j .text -j .data -O binary $< $@
25

  
23 26
bom.elf: $(SRC) $(HDR)
24 27
	avr-g++ $(FLAGS) $(SRC) -o $@
25 28

  
......
29 32
program: $(TARGET)
30 33
	avrdude -p $(PART) -c $(PROG) -P usb -B 5 -U flash:w:$(TARGET)
31 34

  
32
test.elf: test.c tiny-twi-sync.c tiny-twi-sync.h
33
	avr-g++ $(FLAGS) test.c tiny-twi-sync.c -o $@
35
blinky.elf: blinky.c
36
	avr-g++ $(FLAGS) blinky.c -o $@
34 37

  
35 38
bootloader.elf: bootloader.c tiny-twi-sync.c tiny-twi-sync.h
36 39
	avr-g++ $(BOOT_FLAGS) bootloader.c tiny-twi-sync.c -o $@

Also available in: Unified diff