μC/OS-II kernel analysis, porting and driver development