This allows the serial number and calibration setting to be written once
and preserved subsequently.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
# +-------------------- CKDIV8 (divide clock by 8 -> don't divide)
# For 16.5MHz internal: -U hfuse:w:0xdd:m -U lfuse:w:0xe1:m
# For 12MHz crystal: -U hfuse:w:0xdd:m -U lfuse:w:0b11111111:m
+# Note: 0xd5 is as per 0xdd but with EESAVE enabled.
fuse:
- $(AVRDUDE) -U hfuse:w:0xdd:m -U lfuse:w:0xe1:m
+ $(AVRDUDE) -U hfuse:w:0xd5:m -U lfuse:w:0xe1:m
readcal:
$(AVRDUDE) -U calibration:r:/dev/stdout:i | head -1