rtems_timer_create() problem

Sun Shine pengsens at hotmail.com
Fri Mar 24 08:48:58 UTC 2006


Hi, all

I met a problem when using rtems_timer_create() directive.


rtems_task Init(
  rtems_task_argument argument
)
{
  rtems_status_code status;
  rtems_id timer_id;
  rtems_name timer_name = rtems_build_name('C','P','U','T');

  status = rtems_timer_create(timer_name,&timer_id);
  if(status!=RTEMS_SUCCESSFUL)
	  printf("\tCreate timer failed with status code %d!\n",status);
  else
	  printf("\tCreate timer %x successfully!\n",timer_id);

  status = rtems_task_delete( RTEMS_SELF );
}

when I run the app on SPARC, neither "Create timer failed with status code 
*!" nor "Create timer * successfully!" is showed to me, why?

Could anyone tell me how to handle the problem?
Thanks a lot.

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  




More information about the users mailing list