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: iom645.h,v 1.11.2.2 2008/01/06 20:10:45 arcanum Exp $ */
31
/* $Id: iom645.h,v 1.11.2.6 2009/02/11 18:05:30 arcanum Exp $ */
33
33
/* avr/iom645.h - definitions for ATmega645 */
772
773
#define FUSE_MEMORY_SIZE 3
774
775
/* Low Fuse Byte */
775
#define FUSE_CKSEL0 ~_BV(0)
776
#define FUSE_CKSEL1 ~_BV(1)
777
#define FUSE_CKSEL2 ~_BV(2)
778
#define FUSE_CKSEL3 ~_BV(3)
779
#define FUSE_SUT0 ~_BV(4)
780
#define FUSE_SUT1 ~_BV(5)
781
#define FUSE_CKOUT ~_BV(6)
782
#define FUSE_CKDIV8 ~_BV(7)
776
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
777
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
778
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
779
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
780
#define FUSE_SUT0 (unsigned char)~_BV(4)
781
#define FUSE_SUT1 (unsigned char)~_BV(5)
782
#define FUSE_CKOUT (unsigned char)~_BV(6)
783
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
783
784
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
785
786
/* High Fuse Byte */
786
#define FUSE_BOOTRST ~_BV(0)
787
#define FUSE_BOOTSZ0 ~_BV(1)
788
#define FUSE_BOOTSZ1 ~_BV(2)
789
#define FUSE_EESAVE ~_BV(3)
790
#define FUSE_WDTON ~_BV(4)
791
#define FUSE_SPIEN ~_BV(5)
792
#define FUSE_JTAGEN ~_BV(6)
793
#define FUSE_OCDEN ~_BV(7)
787
#define FUSE_BOOTRST (unsigned char)~_BV(0)
788
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
789
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
790
#define FUSE_EESAVE (unsigned char)~_BV(3)
791
#define FUSE_WDTON (unsigned char)~_BV(4)
792
#define FUSE_SPIEN (unsigned char)~_BV(5)
793
#define FUSE_JTAGEN (unsigned char)~_BV(6)
794
#define FUSE_OCDEN (unsigned char)~_BV(7)
794
795
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
796
797
/* Extended Fuse Byte */
797
#define FUSE_RSTDISBL ~_BV(0)
798
#define FUSE_BODLEVEL0 ~_BV(1)
799
#define FUSE_BODLEVEL1 ~_BV(2)
798
#define FUSE_RSTDISBL (unsigned char)~_BV(0)
799
#define FUSE_BODLEVEL0 (unsigned char)~_BV(1)
800
#define FUSE_BODLEVEL1 (unsigned char)~_BV(2)
800
801
#define EFUSE_DEFAULT (0xFF)