RTEMS | cpukit/shell: Account for tick rate in timeouts (!114)
Chris Johns (@chris)
gitlab at rtems.org
Fri Jul 12 03:36:24 UTC 2024
Merge request https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/114 was reviewed by Chris Johns
--
Chris Johns started a new discussion on cpukit/libmisc/shell/shell.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/114#note_109093
> {
> - int msec = timeout;
> + const int tick_count_max = timeout_ms * 1000 / rtems_configuration_get_microseconds_per_tick();
I would move this into a static function so the logic can be shared between here and below.
Does the time cal need a +1 if the time is less than the tick period?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/114
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240712/c73405b4/attachment.htm>
More information about the bugs
mailing list