avrdudes / avr-libc

The AVR-LibC package provides a subset of the standard C library for AVR 8-bit RISC microcontrollers.
https://avrdudes.github.io/avr-libc/
Other
250 stars 54 forks source link

Not inverted fuse bits #911

Closed stefanrueger closed 1 year ago

stefanrueger commented 1 year ago

Normally fuse bits are defined like

#define FUSE_SOMETHING (unsigned char)~_BV(some_n)

For the list of parts below gcc v12 defines a lot of them without bit inversion ~

atmega1608
atmega1609
atmega3208
atmega3209
atmega4808
atmega4809
atmega808
atmega809
attiny1604
attiny1606
attiny1607
attiny1614
attiny1616
attiny1617
attiny202
attiny204
attiny212
attiny214
attiny3214
attiny3216
attiny3217
attiny402
attiny404
attiny406
attiny412
attiny414
attiny416
attiny417
attiny804
attiny806
attiny807
attiny814
attiny816
attiny817

One example is here: https://github.com/avrdudes/avr-libc/blob/55e8cac69935657bcd3e4d938750960c757844c3/include/avr/iotn1616.h#L5613-L5672

stefanrueger commented 1 year ago

Oops that was submitted twice - closing