In the example of LPCUSBlib_MassStorageHost in LPCOpen 2.2, it seems to me that there is a minor defect at setting RTC (time will be used in FAT32).
int rtc_initialize (void)
{
...
Chip_RTC_SetFullAlarmTime(LPC_RTC, &rtcTime);
...
}
It should be
int rtc_initialize (void)
{
...
Chip_RTC_SetFullTime(LPC_RTC, &rtcTime);
...
}
已解决! 转到解答。
Hi Jeremy,
yes, you're right.
the rtc function will be used in filesystem. if you create or modify a file, the file's new time stamp will use the rtc values.
thank you!
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jeremy,
yes, you're right.
the rtc function will be used in filesystem. if you create or modify a file, the file's new time stamp will use the rtc values.
thank you!
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------