Added api/api_main_loop.c+h board/board_main_loop.c + h  and added one time switch to RUN state.
Added api/api_processing.c + h .