From af8619d37a4fc057a9b4422dfd540e76ca9d8767 Mon Sep 17 00:00:00 2001 From: Shino Amakusa Date: Sat, 2 May 2015 11:17:35 +0200 Subject: [PATCH] Done some work. Nothing special --- Default/SDCardTemplate_stm32f407vgt6.elf | Bin 488976 -> 488976 bytes FATFS/diskio.c | 10 +++++----- FATFS/option/syscall.c | 2 +- .../shimatta_sdio-driver.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Default/SDCardTemplate_stm32f407vgt6.elf b/Default/SDCardTemplate_stm32f407vgt6.elf index 36cca9d94253d32367ec9b63c8f05a63631ee92c..c308cf313241d49ed886ca9d0bcec25f8863a47c 100755 GIT binary patch delta 31 ncmbR6Ms~s**@hOz7N!>F7M2#)7Pc+y3z8U>wl7R#&ld&&!WRnz delta 31 ncmbR6Ms~s**@hOz7N!>F7M2#)7Pc+y3z8Uxwl7R#&ld&&!KVuI 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; }