3509|2

5

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

在helper2416开发板上使用rawos的问题 [复制链接]

在Raw-OS 主推demo板(Helper2416)程序中一开始创建了一个init_task的任务:

void init_task_start()
{


        raw_task_create(&init_task_obj, (RAW_U8  *)"task1", 0,
                                 1, 0,  init_task_stack,
                                 INIT_TASK_STK_SIZE , init_task, 1);
}

而在这个任务里提供了一些测试,比如iic、spi、PWM、ucgui、tftp等。而测试这几个任务是通过终端发命令测试的。
void init_task(void *arg)
{


        raw_page_init((RAW_VOID *)HEAP_ADDRESS_START, (RAW_VOID *)HEAP_ADDRESS_END);
        raw_malloc_init();


        raw_semaphore_create(ð_sem_lock, "ethernet sem lock", 1);
       
        timer_0_init();       
        Uart_0_Init();
       
        print_cpuinfo();


        /**register shell command*/
        rsh_register_command(&iic_shell_cmd, &iic_shell_listitem);
        rsh_register_command(&xTestDemoCommand, &test_register_item);
        rsh_register_command(&xWatchdogCommand, &xWatchdogRegisteredCommands);
        rsh_register_command(&tftp, &tftp_item);
        rsh_register_command(&spi_shell_cmd, &spi_shell_listitem);
        rsh_register_command(&xHsmmcCommand, &xHsmmcRegisteredCommands);
        rsh_register_command(&xFatfsCommand, &xFatfsRegisteredCommands);
        rsh_register_command(&pwmopen, &pwmopen_item);
        rsh_register_command(&pwmclose,&pwmclose_item);
        rsh_register_command(&yaffs_shell_cmd,&yaffs_shell_item);
        rsh_register_command(&reboot_shell_cmd,&reboot_shell_item);       
       
        rsh_register_command(&xUcguiCommand, &xUcguiRegisteredCommands);
       
        raw_task_create(&shell_task_obj, (RAW_U8  *)"testtask", 0,
                         IDLE_PRIORITY - 5, 0, shell_task_stack,
                         SHELL_TASK_STK_SIZE , shell_task, 1);


       
        raw_task_delete(raw_task_identify());


}




现在我想让开发板一上电就自动运行ucgui,应该怎么做呢?谢谢!!

最新回复

代码注意使用git仓库的代码,以保持最新。  详情 回复 发表于 2014-7-9 15:05
点赞 关注

回复
举报

38

帖子

1

TA的资源

一粒金砂(中级)

沙发
 
在init_task();中调用start_ucgui_test();
 
 

回复

420

帖子

0

TA的资源

纯净的硅(初级)

板凳
 
代码注意使用git仓库的代码,以保持最新。
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条
报名最后一周!2025 英飞凌消费、计算与通讯创新大会-北京站
会议时间:3月18日(周二)09:30签到
参会奖励:电动螺丝刀套装、户外登山包、京东卡

查看 »

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表