From: Tucker Johnson Date: Thu, 15 May 2025 12:50:50 +0000 (-0400) Subject: ignore X-Git-Url: https://git.newer.systems/?a=commitdiff_plain;h=111c18e72910713fbababe6e86ae39455957a806;p=multi-fader.git ignore --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a39790f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +*.elf +*.hex diff --git a/.gitigonre b/.gitigonre deleted file mode 100644 index a39790f..0000000 --- a/.gitigonre +++ /dev/null @@ -1,3 +0,0 @@ -*.o -*.elf -*.hex diff --git a/Makefile b/Makefile deleted file mode 100644 index c86ec49..0000000 --- a/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -MCU = atmega328p -F_CPU = 16000000UL -BAUD = 115200 -PROGRAMMER = arduino -PORT = /dev/ttyACM0 # Change to your COM port if on Windows -TARGET = multiFader - -CC = avr-gcc -OBJCOPY = avr-objcopy -AVRDUDE = avrdude - -CFLAGS = -Os -DF_CPU=$(F_CPU) -mmcu=$(MCU) - -all: $(TARGET).hex - -$(TARGET).o: $(TARGET).c - $(CC) $(CFLAGS) -c -o $@ $< - -$(TARGET).hex: $(TARGET).o - $(CC) $(CFLAGS) -o temp.elf $< - $(OBJCOPY) -O ihex -R .eeprom temp.elf $@ - rm -f temp.elf - -flash: $(TARGET).hex - $(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -P $(PORT) -b $(BAUD) -U flash:w:$(TARGET).hex - -clean: - rm -f *.o *.hex diff --git a/makefile b/makefile new file mode 100644 index 0000000..c86ec49 --- /dev/null +++ b/makefile @@ -0,0 +1,28 @@ +MCU = atmega328p +F_CPU = 16000000UL +BAUD = 115200 +PROGRAMMER = arduino +PORT = /dev/ttyACM0 # Change to your COM port if on Windows +TARGET = multiFader + +CC = avr-gcc +OBJCOPY = avr-objcopy +AVRDUDE = avrdude + +CFLAGS = -Os -DF_CPU=$(F_CPU) -mmcu=$(MCU) + +all: $(TARGET).hex + +$(TARGET).o: $(TARGET).c + $(CC) $(CFLAGS) -c -o $@ $< + +$(TARGET).hex: $(TARGET).o + $(CC) $(CFLAGS) -o temp.elf $< + $(OBJCOPY) -O ihex -R .eeprom temp.elf $@ + rm -f temp.elf + +flash: $(TARGET).hex + $(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -P $(PORT) -b $(BAUD) -U flash:w:$(TARGET).hex + +clean: + rm -f *.o *.hex