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
|
SRCS = $(TARGET).S
|
||||||
CC = avr-gcc
|
CC = avr-gcc
|
||||||
OBJCOPY = avr-objcopy
|
OBJCOPY = avr-objcopy
|
||||||
PORT = /dev/tty.usbmodem101
|
|
||||||
BAUD = 19200
|
|
||||||
PROGRAMMER = usbasp
|
PROGRAMMER = usbasp
|
||||||
AVRDUDE = avrdude -P $(PORT) -b $(BAUD)
|
AVRDUDE = avrdude
|
||||||
CFLAGS = -mmcu=$(MCU) -Wall -Os -DF_CPU=$(F_CPU)
|
CFLAGS = -mmcu=$(MCU) -Wall -Os -DF_CPU=$(F_CPU)
|
||||||
|
|
||||||
all: $(TARGET).hex
|
all: $(TARGET).hex
|
||||||
@@ -20,7 +18,7 @@ $(TARGET).hex: $(TARGET).elf
|
|||||||
|
|
||||||
# Flash to MCU
|
# Flash to MCU
|
||||||
install: $(TARGET).hex
|
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:
|
clean:
|
||||||
rm -f *.elf *.hex
|
rm -f *.elf *.hex
|
||||||
|
|||||||
Reference in New Issue
Block a user