rtems_timer_create() problem

Yacine EL KOLLI yacine.elkolli at crf.canon.fr
Fri Mar 24 13:32:55 UTC 2006


Hello,

May be your task is deleted before printf have a chance to output 
characters, you may try to suspend the task rather than killing it.

Hope this help
Yacine.

Sun Shine wrote:
> 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/ 
> 


-- 
=====================================================
EL KOLLI Yacine         | yacine.elkolli at crf.canon.fr
Canon C.R.F.            | Phone: +33.(0)2.99.87.68.79
http://www.crf.canon.fr | FAX: +33.(0)2.99.84.11.30
====================================================




More information about the users mailing list