avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Machine Readable Fuse Database


From: Erik Christiansen
Subject: Re: [avr-gcc-list] Machine Readable Fuse Database
Date: Thu, 21 Jul 2016 22:01:40 +1000
User-agent: Mutt/1.5.21 (2010-09-15)

On 16.07.16 14:33, Paul "LeoNerd" Evans wrote:
> I notice that the AVR libc per-part .h files do know these values, in a
> way.
> 
>  $ grep FUSE_DEFAULT /usr/lib/avr/include/avr/iotn84a.h
>  #define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & \
>    FUSE_SUT0 & FUSE_CKDIV8)
>  #define HFUSE_DEFAULT (FUSE_SPIEN)
>  #define EFUSE_DEFAULT (0xFF)
> 
> It's not *directly* useable as it is, but a C program could read those.
> So technically I could iterate all the .h files and extract default
> values that way. But it feels like quite a long way around.
> 
> Does anyone know of a better source of these?

Given avrdude's fuse "safemode", I thought at first that it might have
the data, but it only checks whether any have changed since program
invocation, AFAICT.

I wouldn't go to the trouble of a C program, but do it with a lot less
lines of awk, but that's just taste.

Erik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]