1
1
/* Copyright (c) 2004 Eric B. Weddington
2
Copyright (c) 2005,2006 Anatoly Sokolov
2
Copyright (c) 2005, 2006, 2007 Anatoly Sokolov
5
5
Redistribution and use in source and binary forms, with or without
29
29
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
30
POSSIBILITY OF SUCH DAMAGE. */
32
/* avr/iom329.h - definitions for ATmega329 */
32
/* avr/iom329.h - definitions for ATmega329 and ATmega329P. */
34
34
#ifndef _AVR_IOM329_H_
35
35
#define _AVR_IOM329_H_ 1
942
953
#define E2END 0x3FF
943
954
#define FLASHEND 0x7FFF
959
#define FUSE_MEMORY_SIZE 3
962
#define FUSE_CKSEL0 ~_BV(0)
963
#define FUSE_CKSEL1 ~_BV(1)
964
#define FUSE_CKSEL2 ~_BV(2)
965
#define FUSE_CKSEL3 ~_BV(3)
966
#define FUSE_SUT0 ~_BV(4)
967
#define FUSE_SUT1 ~_BV(5)
968
#define FUSE_CKOUT ~_BV(6)
969
#define FUSE_CKDIV8 ~_BV(7)
970
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
973
#define FUSE_BOOTRST ~_BV(0)
974
#define FUSE_BOOTSZ0 ~_BV(1)
975
#define FUSE_BOOTSZ1 ~_BV(2)
976
#define FUSE_EESAVE ~_BV(3)
977
#define FUSE_WDTON ~_BV(4)
978
#define FUSE_SPIEN ~_BV(5)
979
#define FUSE_JTAGEN ~_BV(6)
980
#define FUSE_OCDEN ~_BV(7)
981
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
983
/* Extended Fuse Byte */
984
#define FUSE_RSTDISBL ~_BV(0)
985
#define FUSE_BODLEVEL0 ~_BV(1)
986
#define FUSE_BODLEVEL1 ~_BV(2)
987
#define EFUSE_DEFAULT (0xFF)
991
#define __LOCK_BITS_EXIST
992
#define __BOOT_LOCK_BITS_0_EXIST
993
#define __BOOT_LOCK_BITS_1_EXIST
945
996
#endif /* _AVR_IOM329_H_ */