Project

General

Profile

Revision 49090532

ID490905327f0dbe5d2f11c8b765a5c832fada210a

Added by Thomas Mullins almost 12 years ago

Tested rosserial a little with a 328.

It doesn't quite work yet. Writing works, reading has not been tested,
and rosserial acts weirdly inconsistent.

View differences:

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

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

  
15
download: scout_avr.hex
16
	avrdude -p m328p -c avrispMKII -P usb -F -U flash:w:scout_avr.hex
17

  
14 18
clean:
15 19
	rm -f scout_avr.elf scout_avr.hex

Also available in: Unified diff