This illustrates the BasicPI Firmware Stack in progress. What I always do in embedded applications is to make a “standard” main.cpp as follows: void AppInit() { // wire hardware } int main() { AppInit(); // start OS } A team I worked in years ago agreed on this standard so we should…