A class to access MCU registers

Back from holidays, back to other hobbies. One thing that I hate when programming on MCUs is that you almost always access register directly through macros, masks and bit shifting operations; so, inspired by this talk on Youtube I decided to write my own code to access registers. The result is a couple of templates that makes it possible to access registers in a clean way. First is the Bitfield class: it allows to access some specific bits on a memory address; you can combine many Bitfields Read more [...]