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 _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list