question
li fei
talent007_315 at yahoo.com.cn
Sat May 24 06:44:07 UTC 2003
hi
I build a programme with itron api to test the monitor
but it doesn't work as i expect
could you help me ?
there are two source file as follow:
init.c
#include"system.h"
#include<stdio.h>
#include<rtems/monitor.h>
void task(void)
{
er status;
printf("this is the Ta1");
status=rtems_task_wake_after(100);
directive_failed (status,"rtems_task_wake_after");
}
void ITRON_Init(void)
{
ER status;
T_CTSK pk_ctsk;
pk_ctsk.exinf=null;
pk_ctsk.tskatr=TA_HLNG;
pk_ctsk.itskpri=3;
pk_ctsk.task=task;
status=cre_tsk(2,&pk_ctsk);
directive_failed(status,"cre_tsk of ta2");
status=sta_tsk(2,0);
directive_failed(status,"status of task ta1");
rtems_monitor_init(0);
status=rtems_task_delete(RTEMS_SELF);
directive_failed(status,"rtems_task_delete self");
}
system.h
#include<tmacros.h>
#include<itron.h>
void ITRON_Iinit(void);
void task(void);
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_MAXIMUM_ITRON_TASKS 8
#define CONFIGURE_ITRON_INIT_TASK_TABLE
#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
#iniclude<confdefs.h>
during the build there are no error
but the result tell me
RTEMS:COULD NOT CREATE THE MONITOR THREAD(status:too
many)
the result I expect is
show "this is the ta1"
and the monitor command line
could you tell me how to deal with the problem
thank you very much
nick lee
_________________________________________________________
Do You Yahoo!?
相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com/
More information about the users
mailing list