28
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
POSSIBILITY OF SUCH DAMAGE. */
31
/* $Id: iom1280.h,v 1.2.2.2 2008/01/06 20:10:43 arcanum Exp $ */
31
/* $Id: iom1280.h,v 1.2.2.5 2008/10/17 23:27:46 arcanum Exp $ */
33
33
/* avr/iom1280.h - definitions for ATmega1280 */
50
51
#define FUSE_MEMORY_SIZE 3
52
53
/* Low Fuse Byte */
53
#define FUSE_CKSEL0 ~_BV(0)
54
#define FUSE_CKSEL1 ~_BV(1)
55
#define FUSE_CKSEL2 ~_BV(2)
56
#define FUSE_CKSEL3 ~_BV(3)
57
#define FUSE_SUT0 ~_BV(4)
58
#define FUSE_SUT1 ~_BV(5)
59
#define FUSE_CKOUT ~_BV(6)
60
#define FUSE_CKDIV8 ~_BV(7)
54
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
55
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
56
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
57
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
58
#define FUSE_SUT0 (unsigned char)~_BV(4)
59
#define FUSE_SUT1 (unsigned char)~_BV(5)
60
#define FUSE_CKOUT (unsigned char)~_BV(6)
61
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
61
62
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
63
64
/* High Fuse Byte */
64
#define FUSE_BOOTRST ~_BV(0)
65
#define FUSE_BOOTSZ0 ~_BV(1)
66
#define FUSE_BOOTSZ1 ~_BV(2)
67
#define FUSE_EESAVE ~_BV(3)
68
#define FUSE_WDTON ~_BV(4)
69
#define FUSE_SPIEN ~_BV(5)
70
#define FUSE_JTAGEN ~_BV(6)
71
#define FUSE_OCDEN ~_BV(7)
65
#define FUSE_BOOTRST (unsigned char)~_BV(0)
66
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
67
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
68
#define FUSE_EESAVE (unsigned char)~_BV(3)
69
#define FUSE_WDTON (unsigned char)~_BV(4)
70
#define FUSE_SPIEN (unsigned char)~_BV(5)
71
#define FUSE_JTAGEN (unsigned char)~_BV(6)
72
#define FUSE_OCDEN (unsigned char)~_BV(7)
72
73
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
74
75
/* Extended Fuse Byte */
75
#define FUSE_BODLEVEL0 ~_BV(0)
76
#define FUSE_BODLEVEL1 ~_BV(1)
77
#define FUSE_BODLEVEL2 ~_BV(2)
76
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
77
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
78
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
78
79
#define EFUSE_DEFAULT (0xFF)