31
31
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
32
POSSIBILITY OF SUCH DAMAGE. */
34
/* $Id: iom169p.h,v 1.2.2.2 2008/01/06 20:10:44 arcanum Exp $ */
34
/* $Id: iom169p.h,v 1.2.2.6 2009/02/11 18:05:27 arcanum Exp $ */
36
36
/* iom169p.h - definitions for ATmega169P */
986
987
#define FUSE_MEMORY_SIZE 3
988
989
/* Low Fuse Byte */
989
#define FUSE_CKSEL0 ~_BV(0)
990
#define FUSE_CKSEL1 ~_BV(1)
991
#define FUSE_CKSEL2 ~_BV(2)
992
#define FUSE_CKSEL3 ~_BV(3)
993
#define FUSE_SUT0 ~_BV(4)
994
#define FUSE_SUT1 ~_BV(5)
995
#define FUSE_CKOUT ~_BV(6)
996
#define FUSE_CKDIV8 ~_BV(7)
990
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
991
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
992
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
993
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
994
#define FUSE_SUT0 (unsigned char)~_BV(4)
995
#define FUSE_SUT1 (unsigned char)~_BV(5)
996
#define FUSE_CKOUT (unsigned char)~_BV(6)
997
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
997
998
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
999
1000
/* High Fuse Byte */
1000
#define FUSE_BOOTRST ~_BV(0)
1001
#define FUSE_BOOTSZ0 ~_BV(1)
1002
#define FUSE_BOOTSZ1 ~_BV(2)
1003
#define FUSE_EESAVE ~_BV(3)
1004
#define FUSE_WDTON ~_BV(4)
1005
#define FUSE_SPIEN ~_BV(5)
1006
#define FUSE_JTAGEN ~_BV(6)
1007
#define FUSE_OCDEN ~_BV(7)
1001
#define FUSE_BOOTRST (unsigned char)~_BV(0)
1002
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
1003
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
1004
#define FUSE_EESAVE (unsigned char)~_BV(3)
1005
#define FUSE_WDTON (unsigned char)~_BV(4)
1006
#define FUSE_SPIEN (unsigned char)~_BV(5)
1007
#define FUSE_JTAGEN (unsigned char)~_BV(6)
1008
#define FUSE_OCDEN (unsigned char)~_BV(7)
1008
1009
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
1010
1011
/* Extended Fuse Byte */
1011
#define FUSE_BODLEVEL0 ~_BV(1)
1012
#define FUSE_BODLEVEL1 ~_BV(2)
1013
#define FUSE_BODLEVEL2 ~_BV(3)
1012
#define FUSE_BODLEVEL0 (unsigned char)~_BV(1)
1013
#define FUSE_BODLEVEL1 (unsigned char)~_BV(2)
1014
#define FUSE_BODLEVEL2 (unsigned char)~_BV(3)
1014
1015
#define EFUSE_DEFAULT (0xFF)