forked from triffid/FiveD_on_Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuses.h
31 lines (31 loc) · 866 Bytes
/
fuses.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _FUSES_H
#ifdef _INCLUDE_FUSES
#if defined (__AVR_ATmega168__)
FUSES = {
.low = FUSE_CKSEL3 & FUSE_SUT0,
.high = FUSE_SPIEN,
.extended = FUSE_BOOTSZ1 & FUSE_BOOTSZ0,
};
#elif defined (__AVR_ATmega328P__)
FUSES = {
.low = FUSE_CKSEL3 & FUSE_SUT0,
.high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
.extended = EFUSE_DEFAULT,
};
#elif defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__)
FUSES = {
.low = FUSE_CKSEL3 & FUSE_SUT0,
.high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
.extended = EFUSE_DEFAULT,
};
#elif defined (__AVR_ATmega1280__)
FUSES = {
.low = FUSE_CKSEL3 & FUSE_SUT0,
.high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTSZ1,
.extended = EFUSE_DEFAULT,
};
#else
#warning No fuse definitions for this chip in fuses.h!
#endif
#endif /* _INCLUDE_FUSES */
#endif /* _FUSES_H */