Software architecture of embedded system