Universal framework for embedded systems