rtems_timer_create() problem

Joel Sherrill joel.sherrill at oarcorp.com
Fri Mar 24 13:47:07 UTC 2006


You have to configure the maximum number of timersthe application is allowed
to create.

See
http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.6.4/share/rtems/html/c_user/c_user00391.html

--joel

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/





More information about the users mailing list