]> git.newer.systems - multi-fader.git/commitdiff
ignore
authorTucker Johnson <tucker@newer.systems>
Thu, 15 May 2025 12:50:50 +0000 (08:50 -0400)
committerTucker Johnson <tucker@newer.systems>
Thu, 15 May 2025 12:50:50 +0000 (08:50 -0400)
.gitignore [new file with mode: 0644]
.gitigonre [deleted file]
Makefile [deleted file]
makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a39790f
--- /dev/null
@@ -0,0 +1,3 @@
+*.o
+*.elf
+*.hex
diff --git a/.gitigonre b/.gitigonre
deleted file mode 100644 (file)
index a39790f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-*.o
-*.elf
-*.hex
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
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 (file)
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