Project

General

Profile

Revision e80ba701

IDe80ba7011d1daa2b082465d024623516de6cf091
Parent a7a56246
Child 76915f20

Added by Thomas Mullins over 11 years ago

Added RTS_ENABLE to Makefile

Also added UL to end of F_CPU

View differences:

toolbox/Makefile
1 1
PART=t1634
2 2
MCU=attiny1634
3 3
#MCU=atmega2560
4
F_CPU=1000000
4
F_CPU=1000000UL
5 5
SRC=main.c serial.c rfid.c \
6 6
		freemodbus/port/*.c \
7 7
		freemodbus/modbus/mb.c \
......
10 10
		freemodbus/modbus/functions/*.c
11 11
HDR=../tooltron_mb.h serial.h rfid.h freemodbus/port/*.h
12 12

  
13
# TODO we can exclude modbus functions we don't need if the generated hex file
14
# ends up too large
15

  
16 13
FLAGS=-Os -Wall -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I.. \
14
			-DRTS_ENABLE \
17 15
			-Ifreemodbus/port \
18 16
			-Ifreemodbus/modbus/rtu \
19 17
			-Ifreemodbus/modbus/ascii \
......
33 31
	avr-gcc -S $(FLAGS) $< -o $@
34 32

  
35 33
program: toolbox.hex
36
	avrdude -p $(PART) -c $(PROG) -P usb -B 1 -F -U flash:w:toolbox.hex
34
	avrdude -p $(PART) -c $(PROG) -P usb -B 3 -F -U flash:w:toolbox.hex
37 35

  
38 36
clean:
39 37
	rm -f *.elf *.hex

Also available in: Unified diff