Must set ticksPerSecond before using it!
This commit is contained in:
@@ -266,6 +266,11 @@ Init (rtems_task_argument ignored)
|
||||
rtems_interval ticksPerSecond;
|
||||
rtems_task_priority newpri;
|
||||
|
||||
/*
|
||||
* Get configuration
|
||||
*/
|
||||
rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond);
|
||||
|
||||
/*
|
||||
* Architecture-specific hooks
|
||||
*/
|
||||
@@ -273,11 +278,6 @@ Init (rtems_task_argument ignored)
|
||||
initRemoteGdb(ticksPerSecond);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Get configuration
|
||||
*/
|
||||
rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond);
|
||||
|
||||
/*
|
||||
* Override RTEMS configuration
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user