Giovanni wrote:Hi,
See PMs, suggestions are welcome.
Giovanni
Thank you. Went to read the book.
Giovanni wrote:Hi,
See PMs, suggestions are welcome.
Giovanni
Code: Select all
uint32_t rtcGetTimeTmMilli(RTCDriver *rtcp, struct tm *timp) {
RTCTime timespec = {0,0};
rtcGetTime(rtcp, ×pec);
localtime_r((time_t *)&(timespec.tv_sec), timp);
return timespec.tv_msec;
}wbober wrote:The issue we have is that when you switch off SPI and switch on I2C the later doesn't work properly. To deal with the problem we decided to modify the driver and use IRQs instead of DMA.