Compare commits
No commits in common. "1cbc6063d6d9730a87109b7a5f99f44167090873" and "368ceb43739713fc395f8fbbc89200ee4cf254ca" have entirely different histories.
1cbc6063d6
...
368ceb4373
4
firmware/.gitignore
vendored
4
firmware/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
*.o
|
|
||||||
*.hex
|
|
||||||
*.obj
|
|
||||||
*.hex
|
|
@ -1,20 +0,0 @@
|
|||||||
MCU=atmega88
|
|
||||||
CFLAGS=-g -Wall -mcall-prologues -mmcu=$(MCU) -Os -DF_CPU=8000000
|
|
||||||
LDFLAGS=-Wl,-gc-sections -Wl,-relax
|
|
||||||
CC=avr-gcc
|
|
||||||
TARGET=main
|
|
||||||
OBJECT_FILES=main.o
|
|
||||||
|
|
||||||
all: $(TARGET).hex
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *.o *.hex *.obj *.hex
|
|
||||||
|
|
||||||
%.hex: %.obj
|
|
||||||
avr-objcopy -R .eeprom -O ihex $< $@
|
|
||||||
|
|
||||||
%.obj: $(OBJECT_FILES)
|
|
||||||
$(CC) $(CFLAGS) $(OBJECT_FILES) $(LDFLAGS) -o $@
|
|
||||||
|
|
||||||
program: $(TARGET).hex
|
|
||||||
avrdude -p $(MCU) -c usbasp -U flash:w:$(TARGET).hex
|
|
@ -1,6 +0,0 @@
|
|||||||
#include <avr/io.h>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user