Skip to content

Commit 3400a5e

Browse files
committed
MPAE-6022: Added comment for fuses and lock bit in code
1 parent ca149e5 commit 3400a5e

File tree

1 file changed

+2
-0
lines changed
  • avr128db48-opamp-gain-and-offset-calibration.X

1 file changed

+2
-0
lines changed

avr128db48-opamp-gain-and-offset-calibration.X/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <avr/io.h>
2929
#include <util/delay.h>
3030

31+
//To program the fuse bits, the FUSE macro is used. The fuse settings are set to the devices production values.
3132
FUSES = {
3233
.WDTCFG = 0x00, // WDTCFG {PERIOD=OFF, WINDOW=OFF}
3334
.BODCFG = 0x10, // BODCFG {SLEEP=DISABLE, ACTIVE=DISABLE, SAMPFREQ=32Hz, LVL=BODLEVEL0}
@@ -38,6 +39,7 @@ FUSES = {
3839
.BOOTSIZE = 0x00, // BOOTSIZE
3940
};
4041

42+
//Macro used to set lockbits. Set to production value.
4143
LOCKBITS = {
4244
0x5CC5C55C, // KEY {KEY=NOLOCK}
4345
};

0 commit comments

Comments
 (0)