autosar启动流程
时间: 2023-11-30 09:04:10 浏览: 333
Autosar启动流程涉及多个模块,其中EcuM(ECU State Management)模块是关键模块之一,它负责管控ECU的启动、关闭流程。下面是Autosar启动流程的简要介绍:
1. EcuM_Init()接口:在App的main函数中,会调用EcuM_Init()接口,EcuM开始接管ECU的StartUp流程。
2. StartPreOS时序:在StartPreOS时序中,调用StartOS()接口,Os从EcuM临时拿过程序的控制权,之后,Os通过ActivateTask()激活任务。
3. BswM Task:在BswM Task中,通过EcuM_StartupTwo()接口将程序的控制权再交还给EcuM,之后,进一步地执行StartPost Os时序。
4. EcuM_AL_DriverInitOne()接口:在StartPost Os时序中,调用EcuM_AL_DriverInitOne()接口,初始化驱动程序。
5. EcuM_AL_DriverInitTwo()接口:在EcuM_AL_DriverInitOne()接口执行完成后,调用EcuM_AL_DriverInitTwo()接口,进一步初始化驱动程序。
6. EcuM_AL_DriverRestart()接口:在EcuM_AL_DriverInitTwo()接口执行完成后,调用EcuM_AL_DriverRestart()接口,重启驱动程序。
7. EcuM_AL_SetProgrammableInterrupts()接口:在EcuM_AL_DriverRestart()接口执行完成后,调用EcuM_AL_SetProgrammableInterrupts()接口,设置可编程中断。
8. EcuM_AL_SetNonProgrammableInterrupts()接口:在EcuM_AL_SetProgrammableInterrupts()接口执行完成后,调用EcuM_AL_SetNonProgrammableInterrupts()接口,设置不可编程中断。
9. EcuM_AL_DriverInitThree()接口:在EcuM_AL_SetNonProgrammableInterrupts()接口执行完成后,调用EcuM_AL_DriverInitThree()接口,进一步初始化驱动程序。
10. EcuM_AL_DriverInitFour()接口:在EcuM_AL_DriverInitThree()接口执行完成后,调用EcuM_AL_DriverInitFour()接口,进一步初始化驱动程序。
11. EcuM_AL_DriverInitFive()接口:在EcuM_AL_DriverInitFour()接口执行完成后,调用EcuM_AL_DriverInitFive()接口,进一步初始化驱动程序。
12. EcuM_AL_DriverInitSix()接口:在EcuM_AL_DriverInitFive()接口执行完成后,调用EcuM_AL_DriverInitSix()接口,进一步初始化驱动程序。
13. EcuM_AL_DriverInitSeven()接口:在EcuM_AL_DriverInitSix()接口执行完成后,调用EcuM_AL_DriverInitSeven()接口,进一步初始化驱动程序。
14. EcuM_AL_DriverInitEight()接口:在EcuM_AL_DriverInitSeven()接口执行完成后,调用EcuM_AL_DriverInitEight()接口,进一步初始化驱动程序。
15. EcuM_AL_DriverInitNine()接口:在EcuM_AL_DriverInitEight()接口执行完成后,调用EcuM_AL_DriverInitNine()接口,进一步初始化驱动程序。
16. EcuM_AL_DriverInitTen()接口:在EcuM_AL_DriverInitNine()接口执行完成后,调用EcuM_AL_DriverInitTen()接口,进一步初始化驱动程序。
17. EcuM_AL_DriverInitEleven()接口:在EcuM_AL_DriverInitTen()接口执行完成后,调用EcuM_AL_DriverInitEleven()接口,进一步初始化驱动程序。
18. EcuM_AL_DriverInitTwelve()接口:在EcuM_AL_DriverInitEleven()接口执行完成后,调用EcuM_AL_DriverInitTwelve()接口,进一步初始化驱动程序。
19. EcuM_AL_DriverInitThirteen()接口:在EcuM_AL_DriverInitTwelve()接口执行完成后,调用EcuM_AL_DriverInitThirteen()接口,进一步初始化驱动程序。
20. EcuM_AL_DriverInitFourteen()接口:在EcuM_AL_DriverInitThirteen()接口执行完成后,调用EcuM_AL_DriverInitFourteen()接口,进一步初始化驱动程序。
21. EcuM_AL_DriverInitFifteen()接口:在EcuM_AL_DriverInitFourteen()接口执行完成后,调用EcuM_AL_DriverInitFifteen()接口,进一步初始化驱动程序。
阅读全文