Rahix / avr-device

Register access crate for AVR microcontrollers
Apache License 2.0
170 stars 66 forks source link

Split INT field into 2 bits for atmega328 and atmega328pb #74

Closed gpgreen closed 3 years ago

gpgreen commented 3 years ago

The INT0 and INT1 fields in the EIMSK register were incorrectly combined into a 2 bit field, split into individual bits Allowed write access to PRR0 and PRR1 in atmega328pb

gpgreen commented 3 years ago

I downloaded the atmega328pb datasheet and compared with the generated svd. It had the same problems with the EIMSK and PRR registers (multiple in this case). So I went ahead and added those also.