当前位置:网站首页>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: 算了还是先看别人写的东西对着源码看吧,自己写思路并不清晰
边栏推荐
- 比赛即实战!中国软件杯发布全新产业创新赛项,校企可联合参赛
- ctfshow-web355,356(SSRF)
- 女生适合学产品经理吗?有什么优势?
- 【FPGA帧差】基于VmodCAM摄像头的帧差法目标跟踪FPGA实现
- 未来互联网人才还稀缺吗?哪些技术方向热门?
- MySQL table partition creation method
- EasyNVS云管理平台功能重构:支持新增用户、修改信息等
- The computer has a network, but all browser pages can't be opened. What's the matter?
- Spark入门(一篇就够了)
- C语言实现【扫雷游戏】完整版(实现源码)
猜你喜欢
![[target detection] yolov5, the shoulder of target detection (detailed principle + Training Guide)](/img/47/80d2e92ea7347cc5c7410194d5bf2e.png)
[target detection] yolov5, the shoulder of target detection (detailed principle + Training Guide)
![[recommendation technology] matlab simulation of network information recommendation technology based on collaborative filtering](/img/fb/dc03f97f12488e53d706a05da9faea.png)
[recommendation technology] matlab simulation of network information recommendation technology based on collaborative filtering
![[Tikhonov] image super-resolution reconstruction based on Tikhonov regularization](/img/49/719496e014f4766d22aba44dbed19e.png)
[Tikhonov] image super-resolution reconstruction based on Tikhonov regularization

ctfshow-web351(SSRF)

运维管理系统,人性化操作体验

运维管理有什么实用的技巧吗

LeetCode+ 71 - 75

盘点华为云GaussDB(for Redis)六大秒级能力

1286_FreeRTOS的任务优先级设置实现分析
![[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera](/img/0f/045957961725716435439316078347.png)
[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera
随机推荐
Is it safe to buy funds on the brokerage account
kdtree(kd树)笔记
go-etcd
比赛即实战!中国软件杯发布全新产业创新赛项,校企可联合参赛
女生适合学产品经理吗?有什么优势?
【LINGO】求七个城市最小连线图,使天然气管道价格最低
ctfshow-web355,356(SSRF)
[matlab] solve nonlinear programming
STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
Product learning (III) - demand list
【Tikhonov】基于Tikhonov正则化的图像超分辨率重建
Code practice - build your own diffusion models / score based generic models from scratch
运维管理有什么实用的技巧吗
LeetCode+ 71 - 75
go-etcd
Jax's deep learning and scientific computing
DC-4 target
Solve the problem that the class defined in meta-inf.services cannot be read
继妹变继母,儿子与自己断绝关系,世界首富马斯克,为何这么惨?
Insufficient free space after clearing expired cache entries - consider increasing the maximum cache space