Project

General

Profile

Revision cf115e3d

IDcf115e3dd10fc6e8ab344c1385a88be6932755b7

Added by Thomas Mullins almost 12 years ago

Fixed problem with serial rx. Rosserial now works.

View differences:

scout_avr/Makefile
2 2
MCU=atmega328
3 3
F_CPU=8000000
4 4
SRC=src/*.cpp src/ros_lib/*.cpp
5
HDR=src/*.h
5 6
FLAGS=-Isrc/ros_lib -Isrc -mmcu=$(MCU) -DF_CPU=$(F_CPU)UL -funsigned-char -Os -fpack-struct -Wall
6 7

  
7 8
all: scout_avr.hex
......
9 10
%.hex: %.elf
10 11
	avr-objcopy -j .text -j .data -O ihex $< $@
11 12

  
12
scout_avr.elf: $(SRC)
13
scout_avr.elf: $(SRC) $(HDR)
13 14
	avr-g++ $(FLAGS) $(SRC) -o scout_avr.elf
14 15

  
15 16
download: scout_avr.hex

Also available in: Unified diff