-
Notifications
You must be signed in to change notification settings - Fork 253
Closed
Labels
Description
I think Rtems OS_timerset() not satisfy it's description in API document
Line 368 in 75beb86
| if ( start_time > 0 ) |
In POSIX API, Call OS_timerSet() with "start_msec = 0" causes timer stop but Rtems just ignore that parameter
I hope to change OSAL rtems api code to
if ( start_time > 0 ) {
OS_UsecsToTicks(start_time, &timeout);
status = rtems_timer_fire_after(OS_timer_table[timer_id].host_timerid,
timeout,
OS_TimerSignalHandler, (void *)timer_id );
if ( status != RTEMS_SUCCESSFUL )
{
return ( OS_TIMER_ERR_INTERNAL);
}
} else {
status = rtems_timer_cancel(OS_timer_table[timer_id].host_timerid);
if ( status != RTEMS_SUCCESSFUL )
{
return ( OS_TIMER_ERR_INTERNAL);
}
}
Reactions are currently unavailable
