C++ framework for different microcontrollers