Log timestamp from real time clock

Hi,

I have a board with a real time clock IC which is kept alive during power downs. I want the Nordic nrf52840 to read the time from the real time clock and then use this in the logs zephyr produces. I have the driver in place for the RTC but I am not sure how I can get the Zephyr log system to use this time instead of the internal counter as the timestamp. Any advice?

Thanks

Related