question about rtc command

Gedare Bloom gedare at rtems.org
Mon Jun 4 14:14:47 UTC 2018


Indeed, this 'rtc' shell command seems to be a bit of a misnomer. It
conflates access to two different clocks, the tod and rtc. Probably,
it would be better to provide a separate 'tod' command that
reads/writes the tod values, and refactor this 'rtc' to read/write the
rtc. I'm not quite sure about the correctness of writing to the rtc
without updating the tod, though.

On Mon, May 28, 2018 at 3:22 AM, jameszxj <jameszxj at gmail.com> wrote:
> hi all,
>    rtc command return the current time of day, it seems unreasonable. I
> think it should return the time of real time clock.
> Any other reasons to do so?
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list