What? The RTC code is to get info from an actual RTC, just strip it and place a hardcoded value in the time variables. There's a reason that's in the main.c file, because it's not part of the library. Like I said, all that code in main.c can be stripped and simplified to a few lines. I'm using an 8 bit micro, not an ARM7 or anything fancy. I think you're looking at it and thinking it's more complex than it really is.
The only thing you need to change in the PIC sample code is to use either FatFS or Tiny FatFS is in the MMC.C function.
- You need to change the SELECT and DESELECT macros to toggle the slave select line.
- You need to update disk_initialize to initialize your SPI hardware block, if it's not already there for your PIC.
- You need to update xmit_spi, and rcvr_spi for your hardware specific SPI write and receive data.
- Get rid of the power functions and the xchng_spi function.
- Replace anything that relies on timers with simple while loops.
Otherwise the main.c can be stripped totally and replaced with just the setup variable and a call to initialize, mount, read or write the disk, then close it. Main.c in the samples is just an overly complex sample application which isn't needed.