Rahix / avr-device

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

Need write access to PRR register in atmega328p #72

Closed gpgreen closed 3 years ago

gpgreen commented 3 years ago

The vendor provided svd for atmega328p lists the PRR register as read only. The access needs to be read/write so that the peripherals can be powered down.

I will create a pull request to fix this issue, however it is not ready to go yet. I am getting an error in the build when i try to use it, and am not experienced enough in rust to decipher it yet.

Rahix commented 3 years ago

Please post error messages, otherwise I have no clue what might be going on :)