/C-OSD/trunk/default/Makefile |
---|
24,7 → 24,11 |
MCU = atmega162 |
TARGET = C-OSD.elf |
CC = avr-gcc |
AVRDUDE = avrdude |
ISPTYPE = usbasp |
ISPPORT = usb |
## Options common to compile, link and assembly rules |
COMMON = -mmcu=$(MCU) |
59,7 → 63,7 |
LINKONLYOBJECTS = |
## Build |
all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size |
all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size #flash |
## Compile |
main.o: ../main.c |
121,6 → 125,11 |
@echo |
@avr-size -C --mcu=${MCU} ${TARGET} |
flash: ${TARGET} |
@echo |
avrdude -c ${ISPTYPE} -P ${ISPPORT} -p ${MCU} -u -U flash:w:C-OSD.hex |
## Clean target |
.PHONY: clean |
clean: |