当前位置:网站首页>Autosar 学习记录(1) – EcuM_Init
Autosar 学习记录(1) – EcuM_Init
2022-07-01 07:14:00 【wangke2b】
Autosar 学习记录(1) – EcuM_Init
基于开源代码, 没有心得, 随便写点, 作为学习笔记void EcuM_Init(void)
1.set_current_state(ECUM_STATE_STARTUP_ONE);
/* 仅仅做了EcuM_World.current_state = ECUM_STATE_STARTUP_ONE */
2.EcuM_AL_DriverInitZero();
/啥也没做/
3.InitOS();
/需要具体分析 该函数位于Kernel/init.c/
4.下面具体分析下task初始化
task.c中有OsTaskVarType Os_TaskVarList[OS_TASK_CNT];
还有在Os_Cfg.c 中通过配置生成的 const OsTaskConstType Os_TaskConstList[OS_TASK_CNT]
copyPcbParts(tmpPcbPtr,&Os_TaskConstList[i]) /*将Os_TaskConstList中的信息 复制到Os_TaskVarList*/
下面是一个关键的函数Os_TaskContextInit(tmpPcbPtr);
(初始化任务栈,或者说上下文, 需具体分析)
tips: 算了还是先看别人写的东西对着源码看吧,自己写思路并不清晰
边栏推荐
- 【分类模型】Q 型聚类分析
- Is it safe to do fund fixed investment on Great Wall Securities?
- 比赛即实战!中国软件杯发布全新产业创新赛项,校企可联合参赛
- Is it reliable to open an account on the compass with your mobile phone? Is there any potential safety hazard
- JSP - paging
- Record an online interface slow query problem troubleshooting
- 熱烈祝賀五行和合酒成功掛牌
- Understanding of Turing test and Chinese Room
- Système de gestion de l'exploitation et de l'entretien, expérience d'exploitation humanisée
- LeetCode+ 71 - 75
猜你喜欢
【电气介数】电气介数及考虑HVDC和FACTS元件的电气介数计算
The computer has a network, but all browser pages can't be opened. What's the matter?
Operation and maintenance management system, humanized operation experience
(I) apple has open source, but so what?
為什麼這麼多人轉行產品經理?產品經理發展前景如何?
Insufficient free space after clearing expired cache entries - consider increasing the maximum cache space
Will Internet talents be scarce in the future? Which technology directions are popular?
ctfshow-web352,353(SSRF)
Microsoft announces open source (Godel) language model chat robot
Ctfhub port scan (SSRF)
随机推荐
解决kaniko push镜像到harbor时报错(代理导致):unexpected status code 503 Service Unavailable
go-etcd
[the path of system analysts] Chapter 5: software engineering of double disk (reverse clean room and Model Driven Development)
Is it safe to buy funds on the brokerage account
Paging in servlets and JSPS
Servlet 和 JSP 中的分页
Système de gestion de l'exploitation et de l'entretien, expérience d'exploitation humanisée
Webapck packaging principle -- Analysis of startup process
STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
kdtree(kd树)笔记
Introduction to spark (one article is enough)
rclone常用子命令中文解释
Microsoft announces open source (Godel) language model chat robot
Product learning (II) - competitive product analysis
如何画产品架构图?
Using fuseki query when there are multiple models in TDB
We found a huge hole in MySQL: do not judge the number of rows affected by update!!!
Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor
iNFTnews | 从《雪崩》到百度“希壤”,元宇宙30年的16件大事
微软宣布开源 (GODEL) 语言模型聊天机器人