CC=avr-gcc
-CFLAGS=-mmcu=atmega16 -g
+CFLAGS=-mmcu=atmega16 -DF_CPU=8000000UL -Wall -g
OBJCOPY=avr-objcopy
PROG=dragon_jtag
PORT=usb
all: bmc.bin
-bmc: bmc.o
+bmc: bmc.o usart.o i2c.o
bmc.bin: bmc
$(OBJCOPY) -j .text -j .data -O binary $^ $@
debug: bmc bmc.bin
setsid avarice -g -D :4242
-avr-gdb -ex 'target remote localhost:4242' bmc
- -pkill avarice
clean:
-rm -f *.o bmc bmc.bin