1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00

Adding RFM22b Example.

This commit is contained in:
Juan64Bits
2010-10-27 09:17:37 -05:00
parent 32a206d1b0
commit b0be121941
3 changed files with 474 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
MCU = atmega168
CC = avr-gcc
OBJCOPY= avr-objcopy
CFLAGS = -g -mmcu=$(MCU) -Wall -Wstrict-prototypes -O0 -mcall-prologues
BINDIR = binary
TARGET = prog
OBJECTS = main.o
.PHONY: all
all: $(TARGET).hex
prog.hex : main.out
$(OBJCOPY) -R .eeprom -O ihex main.out $(BINDIR)/$(TARGET).hex
main.out : $(OBJECTS)
$(CC) $(CFLAGS) -o main.out -Wl,-Map,main.map $(OBJECTS) -lm
avr-size main.out
main.o : main.c
$(CC) $(CFLAGS) -Os -c main.c
clean:
rm -f *.o *.map *.out *.hex $(BINDIR)/$(TARGET).hex