diff --git a/Default/SDCardTemplate_stm32f407vgt6.elf b/Default/SDCardTemplate_stm32f407vgt6.elf index 36cca9d..c308cf3 100755 Binary files a/Default/SDCardTemplate_stm32f407vgt6.elf and b/Default/SDCardTemplate_stm32f407vgt6.elf differ diff --git a/FATFS/diskio.c b/FATFS/diskio.c index 4bd8490..b01a820 100644 --- a/FATFS/diskio.c +++ b/FATFS/diskio.c @@ -18,7 +18,7 @@ /* Get Drive Status */ /*-----------------------------------------------------------------------*/ -DSTATUS disk_status(BYTE pdrv /* Physical drive nmuber to identify the drive */ +DSTATUS disk_status(BYTE pdrv /* Physical drive number to identify the drive */ ) { switch (pdrv) { @@ -33,7 +33,7 @@ DSTATUS disk_status(BYTE pdrv /* Physical drive nmuber to identify the drive */ /* Inidialize a Drive */ /*-----------------------------------------------------------------------*/ -DSTATUS disk_initialize(BYTE pdrv /* Physical drive nmuber to identify the drive */ +DSTATUS disk_initialize(BYTE pdrv /* Physical drive number to identify the drive */ ) { @@ -49,7 +49,7 @@ DSTATUS disk_initialize(BYTE pdrv /* Physical drive nmuber to identify the drive /* Read Sector(s) */ /*-----------------------------------------------------------------------*/ -DRESULT disk_read(BYTE pdrv, /* Physical drive nmuber to identify the drive */ +DRESULT disk_read(BYTE pdrv, /* Physical drive number to identify the drive */ BYTE *buff, /* Data buffer to store read data */ DWORD sector, /* Sector address in LBA */ UINT count /* Number of sectors to read */ @@ -69,7 +69,7 @@ UINT count /* Number of sectors to read */ /*-----------------------------------------------------------------------*/ #if _USE_WRITE -DRESULT disk_write(BYTE pdrv, /* Physical drive nmuber to identify the drive */ +DRESULT disk_write(BYTE pdrv, /* Physical drive number to identify the drive */ const BYTE *buff, /* Data to be written */ DWORD sector, /* Sector address in LBA */ UINT count /* Number of sectors to write */ @@ -88,7 +88,7 @@ UINT count /* Number of sectors to write */ /*-----------------------------------------------------------------------*/ #if _USE_IOCTL -DRESULT disk_ioctl(BYTE pdrv, /* Physical drive nmuber (0..) */ +DRESULT disk_ioctl(BYTE pdrv, /* Physical drive number (0..) */ BYTE cmd, /* Control code */ void *buff /* Buffer to send/receive control data */ ) { diff --git a/FATFS/option/syscall.c b/FATFS/option/syscall.c index 2036cb7..921f57e 100644 --- a/FATFS/option/syscall.c +++ b/FATFS/option/syscall.c @@ -9,7 +9,7 @@ #if _FS_REENTRANT /*------------------------------------------------------------------------*/ -/* Create a Synchronization Object +/* Create a Synchronization Object*/ /*------------------------------------------------------------------------*/ /* This function is called in f_mount() function to create a new / synchronization object, such as semaphore and mutex. When a 0 is returned, diff --git a/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c b/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c index 7251636..c91d324 100644 --- a/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c +++ b/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c @@ -22,6 +22,6 @@ DRESULT SDIO_disk_write(BYTE *buff, DWORD sector, UINT count){ DRESULT SDIO_disk_ioctl(BYTE cmd, void* buff){ return RES_OK; } -DWORD get_fattime(){ +DWORD __attribute__((weak)) get_fattime(){ return 0; }