mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 05:47:56 +08:00
2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/sleep_noposix.c: Fix warning and bug.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libcsupport/src/sleep_noposix.c: Fix warning and bug.
|
||||
|
||||
2010-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch
|
||||
|
||||
@@ -40,11 +40,10 @@ unsigned int sleep(
|
||||
{
|
||||
rtems_status_code status;
|
||||
rtems_interval ticks_per_second;
|
||||
rtems_interval ticks;
|
||||
|
||||
ticks_per_second = rtems_clock_get_ticks_per_second() * seconds;
|
||||
|
||||
status = rtems_task_wake_after( ticks );
|
||||
status = rtems_task_wake_after( ticks_per_second );
|
||||
|
||||
/*
|
||||
* Returns the "unslept" amount of time. In RTEMS signals are not
|
||||
|
||||
Reference in New Issue
Block a user