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 <james...@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@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel