[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] fuse API on the xmega16a4
From: |
Galen Seitz |
Subject: |
Re: [avr-libc-dev] fuse API on the xmega16a4 |
Date: |
Sat, 13 Mar 2010 11:36:29 -0800 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090625) |
Weddington, Eric wrote:
Please let me know if you have any further suggestions or patches.
OK, since you asked, it appears that bit field information for the
fuses is being duplicated in the iox*.h files. For example, in
iox16a4.h the fuse bits are first defined with macros like this:
#define NVM_FUSES_BODLVL1_bm (1<<1)
Then later a similar, but inverted version is defined:
#define FUSE_BODLVL1 (unsigned char)~_BV(1))
If both of these are automatically derived from the XML file, then I
suppose there's no problem. But if one of them is added by hand, then
it seems that the hand added macro should be defined in terms of the
other, automatically derived one.
Also, what is the origin of the fuse default values? I'm not certain
they are correct for the devices I'm working with.
--
Galen Seitz
address@hidden