From: Robin Krens Date: Tue, 17 May 2022 17:12:21 +0000 (+0200) Subject: makefile: correct settings for attiny25 X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=b7cecdd76378faeccc0e605fbbe6a4a316734741;p=lra-as-sensor makefile: correct settings for attiny25 --- diff --git a/Makefile b/Makefile index 27dfb39..403b201 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ MCU = attiny25 F_CPU = 8000000UL BAUD = 57600 -PROGRAMMER_TYPE = arduino +PROGRAMMER_TYPE = usbasp CC = avr-gcc OBJCOPY = avr-objcopy @@ -44,11 +44,11 @@ clean: check-dev: - $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 + $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD) flash: - $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:w:flash.hex:i + $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD) -U flash:w:hbc.hex:i read-flash-bin: - $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:r:flash.bin:r + $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:r:flash.bin:r diff --git a/hbc.c b/hbc.c index e2c06d9..157d617 100644 --- a/hbc.c +++ b/hbc.c @@ -8,10 +8,12 @@ int main(void) { - DDRB |= (1 << PB0); + + DDRB |= (1 << DDB3); + PORTB = (1 << PB3); while(1) { - // + } return 0;