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:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user