当前位置:网站首页>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: 算了还是先看别人写的东西对着源码看吧,自己写思路并不清晰
边栏推荐
- Problem: officeexception: failed to start and connect (III)
- C # read and write customized config file
- go-etcd
- 【目标检测】目标检测界的扛把子YOLOv5(原理详解+修炼指南)
- Image style migration cyclegan principle
- 手机开户选哪个证券公司比较好,哪个更安全
- atguigu----脚手架--02-使用脚手架(2)
- ctfshow-web351(SSRF)
- Servlet 和 JSP 中的分页
- Félicitations pour l'inscription réussie de wuxinghe
猜你喜欢

Fix the problem that the AI video intelligent platform easycvr device video cannot be played

MySQL and redis consistency solution
![[lingo] find the minimum connection diagram of seven cities to minimize the price of natural gas pipelines](/img/34/d2efae5b283cdc130d55f52cdff76d.png)
[lingo] find the minimum connection diagram of seven cities to minimize the price of natural gas pipelines

1286_FreeRTOS的任务优先级设置实现分析

AI视频智能平台EasyCVR设备录像出现无法播放现象的问题修复

Image style migration cyclegan principle

热烈祝贺五行和合酒成功挂牌

Product learning (II) - competitive product analysis

1286_ Implementation analysis of task priority setting in FreeRTOS

Understanding of Turing test and Chinese Room
随机推荐
微软宣布开源 (GODEL) 语言模型聊天机器人
Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor
Jax's deep learning and scientific computing
Subclasses call methods and properties of the parent class with the same name
Rclone configuring Minio and basic operations
Product learning (I) - structure diagram
Paging in servlets and JSPS
1286_FreeRTOS的任务优先级设置实现分析
How to draw a product architecture diagram?
手机开户选哪个证券公司比较好,哪个更安全
Mysql与Redis一致性解决方案
Open source! Wenxin large model Ernie tiny lightweight technology, accurate and fast, full effect
rclone配置minio及基本操作
【FPGA帧差】基于VmodCAM摄像头的帧差法目标跟踪FPGA实现
Easynvs cloud management platform function reconfiguration: support adding users, modifying information, etc
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
LeetCode+ 71 - 75
K8s set up redis cluster
Microsoft announces open source (Godel) language model chat robot
【编程强训3】字符串中找出连续最长的数字串+数组中出现次数超过一半的数字