[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #22510] Macro symbol SELFPRGEN defined twice in iom3
From: |
Norbert Melinat |
Subject: |
[avr-libc-dev] [bug #22510] Macro symbol SELFPRGEN defined twice in iom328p.h |
Date: |
Fri, 07 Mar 2008 18:23:39 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 |
URL:
<http://savannah.nongnu.org/bugs/?22510>
Summary: Macro symbol SELFPRGEN defined twice in iom328p.h
Project: AVR C Runtime Library
Submitted by: nmelinat
Submitted on: Freitag 07.03.2008 um 18:23
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
SELFPRGEN is defined twice in header file iom328p.h.
iom328p.h:
/* $Id: iom328p.h,v 1.3 2007/12/18 21:04:26 arcanum Exp $ */
...
#define SPMCSR _SFR_IO8(0x37)
#define SELFPRGEN 0
...
then redefined later as:
...
/* Extended Fuse Byte */
#define SELFPRGEN ~_BV(0) /* Self Programming Enable */
#define EFUSE_DEFAULT (0xFF)
...
This leads to compiler warning (negative bit-shift) for
statements like this:
SPMCSR |= (1 << SELFPRGEN)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22510>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #22510] Macro symbol SELFPRGEN defined twice in iom328p.h,
Norbert Melinat <=