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: iotn44.h,v 1.3.2.2 2008/01/06 20:10:47 arcanum Exp $ */
31
/* $Id: iotn44.h,v 1.3.2.6 2009/02/11 18:05:33 arcanum Exp $ */
33
33
/* avr/iotn44.h - definitions for ATtiny44 */
38
38
#include <avr/iotnx4.h>
43
#define FLASHEND 0xFFF
44
#define SPM_PAGESIZE 64
41
#define SPM_PAGESIZE 64
43
#define XRAMEND RAMEND
46
#define FLASHEND 0xFFF
49
50
#define FUSE_MEMORY_SIZE 3
51
52
/* Low Fuse Byte */
52
#define FUSE_CKSEL0 ~_BV(0)
53
#define FUSE_CKSEL1 ~_BV(1)
54
#define FUSE_CKSEL2 ~_BV(2)
55
#define FUSE_CKSEL3 ~_BV(3)
56
#define FUSE_SUT0 ~_BV(4)
57
#define FUSE_SUT1 ~_BV(5)
58
#define FUSE_CKOUT ~_BV(6)
59
#define FUSE_CKDIV8 ~_BV(7)
53
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
54
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
55
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
56
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
57
#define FUSE_SUT0 (unsigned char)~_BV(4)
58
#define FUSE_SUT1 (unsigned char)~_BV(5)
59
#define FUSE_CKOUT (unsigned char)~_BV(6)
60
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
60
61
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
62
63
/* High Fuse Byte */
63
#define FUSE_BODLEVEL0 ~_BV(0)
64
#define FUSE_BODLEVEL1 ~_BV(1)
65
#define FUSE_BODLEVEL2 ~_BV(2)
66
#define FUSE_EESAVE ~_BV(3)
67
#define FUSE_WDTON ~_BV(4)
68
#define FUSE_SPIEN ~_BV(5)
69
#define FUSE_DWEN ~_BV(6)
70
#define FUSE_RSTDISBL ~_BV(7)
64
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
65
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
66
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
67
#define FUSE_EESAVE (unsigned char)~_BV(3)
68
#define FUSE_WDTON (unsigned char)~_BV(4)
69
#define FUSE_SPIEN (unsigned char)~_BV(5)
70
#define FUSE_DWEN (unsigned char)~_BV(6)
71
#define FUSE_RSTDISBL (unsigned char)~_BV(7)
71
72
#define HFUSE_DEFAULT (FUSE_SPIEN)
73
74
/* Extended Fuse Byte */
74
#define FUSE_SELFPRGEN ~_BV(0)
75
#define FUSE_SELFPRGEN (unsigned char)~_BV(0)
75
76
#define EFUSE_DEFAULT (0xFF)