当前位置:网站首页>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: 算了还是先看别人写的东西对着源码看吧,自己写思路并不清晰
边栏推荐
- Webapck packaging principle -- Analysis of startup process
- Microsoft announces open source (Godel) language model chat robot
- 【Flutter 问题系列第 72 篇】在 Flutter 中使用 Camera 插件拍的图片被拉伸问题的解决方案
- kdtree(kd树)笔记
- Jax's deep learning and scientific computing
- Is the account opening of GF Securities safe and reliable? How to open GF Securities Account
- 为什么这么多人转行产品经理?产品经理发展前景如何?
- C语言实现【三子棋游戏】(步骤分析和实现源码)
- [lingo] find the shortest path problem of undirected graph
- ctfhub-端口扫描(SSRF)
猜你喜欢
关于图灵测试和中文屋Chinese room的理解
解决kaniko push镜像到harbor时报错(代理导致):unexpected status code 503 Service Unavailable
C语言实现【三子棋游戏】(步骤分析和实现源码)
【MATLAB】求解非线性规划
未来互联网人才还稀缺吗?哪些技术方向热门?
C language implementation [Sanzi chess game] (step analysis and implementation source code)
1286_FreeRTOS的任务优先级设置实现分析
解决无法读取META-INF.services里面定义的类
Microsoft announces open source (Godel) language model chat robot
如何进入互联网行业,成为产品经理?没有项目经验如何转行当上产品经理?
随机推荐
AI视频智能平台EasyCVR设备录像出现无法播放现象的问题修复
Product learning (II) - competitive product analysis
ctfshow-web351(SSRF)
【FPGA帧差】基于VmodCAM摄像头的帧差法目标跟踪FPGA实现
1286_FreeRTOS的任务优先级设置实现分析
Insufficient free space after clearing expired cache entries - consider increasing the maximum cache space
C语言实现【扫雷游戏】完整版(实现源码)
C# Newtonsoft.Json中JObject的使用
Système de gestion de l'exploitation et de l'entretien, expérience d'exploitation humanisée
[recommendation technology] matlab simulation of network information recommendation technology based on collaborative filtering
广发证券开户是安全可靠的么?怎么开广发证券账户
The computer has a network, but all browser pages can't be opened. What's the matter?
Buildreoot override mechanism
Cadence OrCAD Capture “网络名”相同,但是未连接或连接错误的解放方案之nodename的用法
ctfshow-web351(SSRF)
Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor
Chinese explanation of common rclone subcommands
Will Internet talents be scarce in the future? Which technology directions are popular?
Unity2021-Scene视图中物体无法直接选中的解决办法
【LINGO】求七个城市最小连线图,使天然气管道价格最低