1234567891011121314151617181920212223242526 |
- DEVICE := atmega32
- SRC := src/light_ws2812.c src/main.c
- TARGET := wardrobeLedController.elf
- INCLUDE := -I inc
- F_CPU := 16000000
- AVRDUDE := avrdude
- PROGRAMMER := avrispmkII
- CC := avr-gcc
- diag:
- echo $(ASM_SRC)
- echo $(ASMFLAGS)
- all: $(TARGET)
- $(TARGET): Makefile $(SRC)
- $(CC) $(INCLUDE) -mmcu=$(DEVICE) -O3 -D F_CPU=$(F_CPU) $(SRC) -o $@
- flash: all
- $(AVRDUDE) -c $(PROGRAMMER) -p $(DEVICE) -U flash:w:$(TARGET):e
- fuse:
- $(AVRDUDE) -c $(PROGRAMMER) -p $(DEVICE) -U lfuse:w:0xff:m -U hfuse:w:0xd9:m
|