|
在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,应该怎么做呢?谢谢!!
|
|