Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5487

Advanced users • Re: Reading the RTC

$
0
0
I want to do it from a C program.
What are you trying to achieve? gettimeofday() isn't sufficient?

Linux normally only accesses the RTC at startup and shutdown. It'll read the time at startup and then write the current time at shutdown. The kernel keeps track of time during normal operation.

There is no direct access to the RTC. The PMIC and its internal RTC are handled by the Pi firmware via mailbox calls.

Statistics: Posted by trejan — Tue Jul 02, 2024 2:34 am



Viewing all articles
Browse latest Browse all 5487

Trending Articles