Closed rumbledethumps closed 7 months ago
I'm going to take a crack at this one.
Some notes... Use the develop branch. Change FF_FS_NORTC in ffconf.h. Make a new device driver: api/rtc.c. Add driver to main.c events. Pi Pico API is called hardware_rtc.
As an exercise in testing my own stuff, I used the new helpers to build a shim for time.h. This has not been tested except for the failure path it takes now. https://github.com/picocomputer/rp6502-sdk/blob/7c9cb84e850aa8d4f68174005c350e3a54ecd865/src/clock.c
The Pi Pico has a RTC but no battery. Just like many classic 8-bit machines. Create an API and connect it to FatFs get_fattime() too.