找回密码
 注册
搜索
查看: 1285|回复: 6

[讨论] 如何在MTK平台中新建一个task

[复制链接]
发表于 2008-9-28 16:09:25 | 显示全部楼层 |阅读模式
在custom_sap.h中加了msg id,如MSG_ID_SLIDE_EINT,然后根据要求增加了SLIDE_EINT.h,在SLIDE_EINT.h里增加了
typedef struct
{
   LOCAL_PARA_HDR
   kal_uint8 slide[100];
   kal_uint16 length;
}

在SLIDE_EINT.C仿照custom1_create.c

但就是行不通,不知道问题在哪?
 楼主| 发表于 2008-9-28 16:11:11 | 显示全部楼层
我看的资料是Creat Primitive Message.pdf

不知道还有什么好的资料呢?
点评回复

使用道具 举报

发表于 2008-10-3 12:02:07 | 显示全部楼层
如果你要新建一个task,那你最好参考mtk自带的那个task,名字忘了, 看看那些地方调用
点评回复

使用道具 举报

 楼主| 发表于 2008-10-7 16:13:35 | 显示全部楼层
自带的?
是哪个啊
点评回复

使用道具 举报

发表于 2008-10-8 00:31:09 | 显示全部楼层
custom_task_indx_type custom_mod_task_g[ MAX_CUSTOM_MODS ] =
{
   INDX_CUSTOM1,        /* MOD_CUSTOM1 */
   INDX_CUSTOM2,        /* MOD_CUSTOM2 */
   INDX_NIL             /* Please end with INDX_NIL element */
};

/*************************************************************************
* Global
*  custom_comp_config_tbl
*
* DESCRIPTION
*   The array contains system component tasks' configuration information
*
* GLOBALS AFFECTED
*
*************************************************************************/
const comptask_info_struct custom_comp_config_tbl[ MAX_CUSTOM_TASKS ] =
{
   /* INDX_CUSTOM1 */
   {"CUST1", "CUST1 Q", 111, 2048, 20, 0,
#ifdef CUSTOM1_EXIST
   custom1_create, KAL_FALSE
#else   
   NULL, KAL_FALSE
#endif
   },

   /* INDX_CUSTOM2 */
   {"CUST2", "CUST2 Q", 112, 2048, 20, 0,
#ifdef CUSTOM2_EXIST
   custom2_create, KAL_FALSE
#else
   NULL, KAL_FALSE
#endif
   },
};

文件custom_config.c
点评回复

使用道具 举报

发表于 2008-10-9 13:56:57 | 显示全部楼层
楼主增加的好像是一个中断吧
点评回复

使用道具 举报

发表于 2009-4-18 11:42:12 | 显示全部楼层
我的task加了,但是没有反应
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-6 10:26 , Processed in 0.057844 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表