【Record】【read coding】

本文探讨了嵌入式软件中任务控制机制的核心概念,包括使用特定宏和函数进行标志位设置、等待及条件判断的方法。通过分析关键代码片段,如apup_set_flg、apup_wait_flag等函数的应用场景,揭示了任务同步与调度的技术细节。
apup.c
G_apup_evt_flg
apup_set_flg(flg) ?1 why use if 2 why use G_apup_evt |= evt_flg
apup_wait_flag(flg, mutex) ?1 why operate flg
we can see "req_kind = apup_wai_flg(D_APUP_EVT_FLG_ALL, &G_APUP_MUTEX);" appearing in the file,
so we can suppose two points:First, req_kind draw from the apup_wait_flg; Inversely, apup_wait_flg has this auxilary capability.




apup_ctrl.c
structure type symbol as S_, similarly, variable defined as sXXXX
enumeration type symbol as EN_, variable defined as eXXXX
point type variable defined as pXXXX


do{}while(0) later, replaced by the clause try...catch


condation1 ? : condation 2 ? dummy : dummy; VBA sophisticated or regular expression or Automat


in the launch of controler task, Apup_req_verup_func could be register in the CONTEXT or environment. 


sequence diagram, to sync the functions in order and successively


apup_fil.c
Macro Line 82-98
G_fil_sApupDeleteStatus
apup_fil_Rename
apup_fil_DeleteProgress
apup_fil_PreparationLoadingReady?
apup_fil_DeleteFolder 268 298 apup_if_RetResult( psApupParameter, psVerUpFunc_Result )
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值