Re: Machine Readable Fuse Database

Juergen Harms <[email protected]> Thu, 21 Jul 2016 22:52:07 +0200
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
On 2016-07-21 20:15, Paul "LeoNerd" Evans wrote:
> of "please get me values out of system .h files":

You can go quite some ways with grep

- egrep "define [A-Z]FUSE" /usr/avr/include/avr/*.h | grep can

     informs, for instance, about the values for EFUSE, HFUSE and
     LFUSE used for can parts

- grep "#define FUSE_BOOTSZ0" /usr/avr/include/avr/*.h

     for instance, provides you with the definition of BOOTSZ0.
     But you wont get away from investing some time to get
     knowledge about BV, ~ et cie - something you anyhow need for
     understanding how C is used for programming microprocessors.

I would certainly never use C for creating your file - an editor 
allowing to use regular expressions, or - much better - a short perl 
script, would allow to more or less automatically produce the file you need.

Good luck