Remove port and baud options

- Avrdude should already be capable to recognize the correct port on
  which the usbasp is connected
- Removing baudrate, instead using slock_sck on usbasp
This commit is contained in:
2026-01-18 14:22:30 +01:00
parent aca1b5460b
commit f231e0d8a7
+2 -4
View File
@@ -4,10 +4,8 @@ TARGET = clockinator
SRCS = $(TARGET).S
CC = avr-gcc
OBJCOPY = avr-objcopy
PORT = /dev/tty.usbmodem101
BAUD = 19200
PROGRAMMER = usbasp
AVRDUDE = avrdude -P $(PORT) -b $(BAUD)
AVRDUDE = avrdude
CFLAGS = -mmcu=$(MCU) -Wall -Os -DF_CPU=$(F_CPU)
all: $(TARGET).hex
@@ -20,7 +18,7 @@ $(TARGET).hex: $(TARGET).elf
# Flash to MCU
install: $(TARGET).hex
$(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -U flash:w:$(TARGET).hex:i -v
$(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -U flash:w:$(TARGET).hex:i -vvvv -D
clean:
rm -f *.elf *.hex