Commits

Anonymous committed fb57e5a

Fuses.

Comments (0)

Files changed (1)

 
 
 PROJECT=ImageAndWiFiFirmware
-HEADERS=avr_includes.h util.h wifi.h usart0.h usart1.h timer.h command.h
-SOURCES=main.c util.c wifi.c usart0.c usart1.c timer.c command.c
+HEADERS=avr_includes.h util.h wifi.h usart0.h usart1.h timer.h command.h i2cmaster.h
+SOURCES=main.c util.c wifi.c usart0.c usart1.c timer.c command.c i2cmaster.c
 CC=avr-gcc
 OBJCOPY=avr-objcopy
 MMCU=atmega324p
 
 assembly: $(SOURCES) $(HEADERS)
 	$(CC) $(CFLAGS) -I./ -Wa,-ahls=$(PROJECT).lst -o $(PROJECT).out $(SOURCES)
+
+get_fuses: l-fuse.txt h-fuse.txt e-fuse.txt
+
+l-fuse.txt:
+	avrdude -p m324p -c usbasp -U lfuse:r:l-fuse.txt:i
+
+h-fuse.txt:
+	avrdude -p m324p -c usbasp -U hfuse:r:h-fuse.txt:i
+
+e-fuse.txt:
+	avrdude -p m324p -c usbasp -U efuse:r:e-fuse.txt:i
+
+clean_fuses:
+	rm *-fuse.txt
+
+set_internal_8MHZ:
+	avrdude -p m324p -c usbasp -U lfuse:w:0xE2:m
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.