~ubuntu-branches/ubuntu/intrepid/avr-libc/intrepid

« back to all changes in this revision

Viewing changes to include/avr/iom88.h

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2008-04-04 17:05:32 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404170532-tiwwl2e2qln7ri0w
Tags: 1:1.6.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
  POSSIBILITY OF SUCH DAMAGE. */
30
30
 
31
 
/* $Id: iom88.h,v 1.2.4.1 2007/10/25 01:15:07 arcanum Exp $ */
 
31
/* $Id: iom88.h,v 1.4.2.2 2008/01/06 19:17:14 arcanum Exp $ */
32
32
 
33
33
#ifndef _AVR_IOM88_H_
34
34
#define _AVR_IOM88_H_ 1
43
43
#define FLASHEND    0x1FFF
44
44
 
45
45
 
 
46
/* Fuses */
 
47
#define FUSE_MEMORY_SIZE 3
 
48
 
 
49
/* Low Fuse Byte */
 
50
#define FUSE_CKSEL0 ~_BV(0)  /* Select Clock Source */
 
51
#define FUSE_CKSEL1 ~_BV(1)  /* Select Clock Source */
 
52
#define FUSE_CKSEL2 ~_BV(2)  /* Select Clock Source */
 
53
#define FUSE_CKSEL3 ~_BV(3)  /* Select Clock Source */
 
54
#define FUSE_SUT0   ~_BV(4)  /* Select start-up time */
 
55
#define FUSE_SUT1   ~_BV(5)  /* Select start-up time */
 
56
#define FUSE_CKOUT  ~_BV(6)  /* Clock output */
 
57
#define FUSE_CKDIV8 ~_BV(7) /* Divide clock by 8 */
 
58
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
 
59
 
 
60
/* High Fuse Byte */
 
61
#define FUSE_BODLEVEL0 ~_BV(0)  /* Brown-out Detector trigger level */
 
62
#define FUSE_BODLEVEL1 ~_BV(1)  /* Brown-out Detector trigger level */
 
63
#define FUSE_BODLEVEL2 ~_BV(2)  /* Brown-out Detector trigger level */
 
64
#define FUSE_EESAVE    ~_BV(3)  /* EEPROM memory is preserved through chip erase */
 
65
#define FUSE_WDTON     ~_BV(4)  /* Watchdog Timer Always On */
 
66
#define FUSE_SPIEN     ~_BV(5)  /* Enable Serial programming and Data Downloading */
 
67
#define FUSE_DWEN      ~_BV(6)  /* debugWIRE Enable */
 
68
#define FUSE_RSTDISBL  ~_BV(7)  /* External reset disable */
 
69
#define HFUSE_DEFAULT (FUSE_SPIEN)
 
70
 
 
71
/* Extended Fuse Byte */
 
72
#define FUSE_BOOTRST ~_BV(0)
 
73
#define FUSE_BOOTSZ0 ~_BV(1)
 
74
#define FUSE_BOOTSZ1 ~_BV(2)
 
75
#define EFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1)
 
76
 
 
77
 
46
78
/* Lock Bits */
47
79
#define __LOCK_BITS_EXIST
48
80
#define __BOOT_LOCK_BITS_0_EXIST