Rahix / avr-device

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

Add ATmega128RFA1 support #93

Closed the6p4c closed 2 years ago

the6p4c commented 2 years ago

Adds basic ATmega128RFA1 support.

This has been partially tested (GPIO, SPI) with changes I've got pending to avr-hal libraries, but I don't have a good enough development board to test the other peripherals more than ensuring they build.

This PR also adjusts the common USART patches for UCSZ? slightly to work with the ATmega128RFA1's ATDF. The ATDF does specify enum values for the field but the patch was not _replace_enum. I've changed the common patch to use _replace_enum, to make sure the fields are consistent with other micros.

the6p4c commented 2 years ago

Sounds good to me. HAL integration seems fine with those peripherals (GPIO/SPI) so I'd like to say I'm confident with the rest, but fixing when those comes up seems smart :D