makefile: correct settings for attiny25
authorRobin Krens <robin@robinkrens.nl>
Tue, 17 May 2022 17:12:21 +0000 (19:12 +0200)
committerRobin Krens <robin@robinkrens.nl>
Tue, 17 May 2022 17:12:21 +0000 (19:12 +0200)
Makefile
hbc.c

index 27dfb39..403b201 100644 (file)
--- 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 (file)
--- 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;