2 Commits

Author SHA1 Message Date
lishuang.xie
c42c2cea82 update dev_ck_v2.1_feature#1609 to dev_ck_v2.1
1. add error return(inc/err_num.h and osp/inc/err_num.h)
2. change the task init function:
   old: typedef void(*OSP_TASKINIT_FUNC)(void);
   new: typedef int(*OSP_TASKINIT_FUNC)(void);
3. osp_task_create:
   3.1 before create task should call the init function first
   3.2 if the init function return error, don't call the create task, return error
4. Test:
   4.1 spu_case0_arm_case0_cpri:      Pass
   4.2 spu_case14_arm_case20_cpri:    Pass
   4.3 spu_case20_arm_case20_cpri:    Pass
   4.4 spu_case21_arm_case21_cpri:    Pass
   4.5 spu_case34_arm_case5:          Pass
   4.6 spu_case44_arm_case5:         Pass
   4.7 spu_case20_arm_case20_task_ok: Pass
   4.8 spu_case20_arm_case20_task_ng: Pass
2024-01-29 09:54:23 +08:00
chao1.wang
d74566ec2c First commit 2023-07-13 11:27:03 +08:00