~ubuntu-branches/ubuntu/maverick/avr-libc/maverick

« back to all changes in this revision

Viewing changes to include/avr/iotn26.h

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091031115210-x0mlijnegkce86fk
Tags: 1:1.6.7-1
* New upstream relese (closes: #544030)
* Added lintian overrides (closes: #553265)

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: iotn26.h,v 1.15.2.2 2008/01/06 20:10:47 arcanum Exp $ */
 
31
/* $Id: iotn26.h,v 1.15.2.7 2009/02/11 18:05:32 arcanum Exp $ */
32
32
 
33
33
/* avr/iotn26.h - definitions for ATtiny26 */
34
34
 
342
342
 
343
343
/* Constants */
344
344
#define RAMEND      0xDF
345
 
#define XRAMEND     0xDF
 
345
#define XRAMEND     RAMEND
346
346
#define E2END       0x7F
 
347
#define E2PAGESIZE  4
347
348
#define FLASHEND    0x07FF
348
349
 
349
350
 
352
353
#define FUSE_MEMORY_SIZE 2
353
354
 
354
355
/* Low Fuse Byte */
355
 
#define FUSE_CKSEL0      ~_BV(0)
356
 
#define FUSE_CKSEL1      ~_BV(1)
357
 
#define FUSE_CKSEL2      ~_BV(2)
358
 
#define FUSE_CKSEL3      ~_BV(3)
359
 
#define FUSE_SUT0        ~_BV(4)
360
 
#define FUSE_SUT1        ~_BV(5)
361
 
#define FUSE_CKOPT       ~_BV(6)
362
 
#define FUSE_PLLCK       ~_BV(7)
363
 
#define LFUSE_DEFAULT (FUSE_CKSEL1 & FUSE_CKSEL2)
 
356
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
357
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
358
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
359
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
360
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
361
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
362
#define FUSE_CKOPT       (unsigned char)~_BV(6)
 
363
#define FUSE_PLLCK       (unsigned char)~_BV(7)
 
364
#define LFUSE_DEFAULT (FUSE_CKSEL1 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0)
364
365
 
365
366
/* High Fuse Byte */
366
 
#define FUSE_BODEN       ~_BV(0)
367
 
#define FUSE_BODLEVEL    ~_BV(1)
368
 
#define FUSE_EESAVE      ~_BV(2)
369
 
#define FUSE_SPIEN       ~_BV(3)
370
 
#define FUSE_RSTDISBL    ~_BV(4)
 
367
#define FUSE_BODEN       (unsigned char)~_BV(0)
 
368
#define FUSE_BODLEVEL    (unsigned char)~_BV(1)
 
369
#define FUSE_EESAVE      (unsigned char)~_BV(2)
 
370
#define FUSE_SPIEN       (unsigned char)~_BV(3)
 
371
#define FUSE_RSTDISBL    (unsigned char)~_BV(4)
371
372
#define HFUSE_DEFAULT (FUSE_SPIEN)
372
373
 
373
374
 
375
376
#define __LOCK_BITS_EXIST
376
377
 
377
378
 
 
379
/* Signature */
 
380
#define SIGNATURE_0 0x1E
 
381
#define SIGNATURE_1 0x91
 
382
#define SIGNATURE_2 0x09
 
383
 
 
384
 
378
385
#endif  /* _AVR_IOTN26_H_ */