29
29
POSSIBILITY OF SUCH DAMAGE.
32
/* $Id: iotn48.h,v 1.4.2.5 2008/04/28 17:06:23 arcanum Exp $ */
32
/* $Id: iotn48.h,v 1.4.2.15 2009/03/27 16:26:07 arcanum Exp $ */
34
/* avr/iotn48.h - definitions for ATtiny43U */
34
/* avr/iotn48.h - definitions for ATtiny48 */
36
36
/* This file should only be included from <avr/io.h>, never directly. */
710
704
#define _VECTORS_SIZE 40
716
#define XRAMEND (RAMEND + XRAMSIZE)
718
#define FLASHEND 0xFFF
719
#define SPM_PAGESIZE 32
708
#define SPM_PAGESIZE 32
711
#define XRAMEND RAMEND
714
#define FLASHEND 0xFFF
722
717
/* Fuse Information */
724
718
#define FUSE_MEMORY_SIZE 3
726
720
/* Low Fuse Byte */
727
#define FUSE_CKDIV8 ~_BV(7) /* Divide clock by 8 */
728
#define FUSE_CKOUT ~_BV(6) /* Clock output */
729
#define FUSE_SUT1 ~_BV(5) /* Select start-up time */
730
#define FUSE_SUT0 ~_BV(4) /* Select start-up time */
731
#define FUSE_CKSEL3 ~_BV(3) /* Select Clock Source */
732
#define FUSE_CKSEL2 ~_BV(2) /* Select Clock Source */
733
#define FUSE_CKSEL1 ~_BV(1) /* Select Clock Source */
734
#define FUSE_CKSEL0 ~_BV(0) /* Select Clock Source */
721
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
722
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock output */
723
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
724
#define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
725
#define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
726
#define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
727
#define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
728
#define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
735
729
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
737
731
/* High Fuse Byte */
738
#define FUSE_BODLEVEL0 ~_BV(0) /* Brown-out Detector trigger level */
739
#define FUSE_BODLEVEL1 ~_BV(1) /* Brown-out Detector trigger level */
740
#define FUSE_BODLEVEL2 ~_BV(2) /* Brown-out Detector trigger level */
741
#define FUSE_EESAVE ~_BV(3) /* EEPROM memory is preserved through chip erase */
742
#define FUSE_WDTON ~_BV(4) /* Watchdog Timer Always On */
743
#define FUSE_SPIEN ~_BV(5) /* Enable Serial programming and Data Downloading */
744
#define FUSE_DWEN ~_BV(6) /* debugWIRE Enable */
745
#define FUSE_RSTDISBL ~_BV(7) /* External reset disable */
732
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
733
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
734
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
735
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
736
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog Timer Always On */
737
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
738
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
739
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External reset disable */
746
740
#define HFUSE_DEFAULT (FUSE_SPIEN)
748
742
/* Extended Fuse Byte */
749
#define FUSE_SELFPRGEN ~_BV(0) /* Self Programming Enable */
743
#define FUSE_SELFPRGEN (unsigned char)~_BV(0) /* Self Programming Enable */
750
744
#define EFUSE_DEFAULT (0xFF)