<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dears,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
I configured 4 equal Tasks in RTEMS and the table as follows:<br>
<br>rtems_task_create(<br>Task_name[ 0 ],<br>2,<br>RTEMS_MINIMUM_STACK_SIZE * 2,<br>RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_ASR | RTEMS_INTERRUPT_LEVEL(0),<br>RTEMS_GLOBAL,<br>&Task_id[ 0 ]<br>);<br><br>
</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">They will operate in round-robin.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">#define CONFIGURE_MICROSECONDS_PER_TICK 10000<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">#define CONFIGURE_TICKS_PER_TIME_SLICE 50<br>
</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">The
result should show a timeslice of 500 milisseconds, but what i see in
osciloscope is more then 500ms, exactly 834ms. This code is running in a
ERC32 development kit from Atmel.<br>
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Any ideas what is missing for this extra time?<br><br></div>
Thanks,<br><br></div><div><font style="font-family:arial,helvetica,sans-serif"><b style="color:rgb(0,0,153)">Fernando G. Nicodemos</b></font><br></div>
</div>