modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
748 stars 132 forks source link

add setter for rcr register #981

Closed victorandrehc closed 1 year ago

victorandrehc commented 1 year ago

As discussed here this PR creates a method to set the RCR register on advanced timers.

On the end I prefered to create it on advanced.hpp because it is where methods changing registers are located.

salkinium commented 1 year ago

You can also add an small example if you want, then the API actually gets tested.