mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
fix & update
This commit is contained in:
parent
0557a41f1a
commit
741520fa66
58 changed files with 6620 additions and 6810 deletions
|
|
@ -55,7 +55,6 @@ DRESULT SD_disk_read(BYTE *buff, DWORD sector, UINT count){
|
|||
#if _USE_WRITE == 1
|
||||
DRESULT SD_disk_write(const BYTE *buff, DWORD sector, UINT count){
|
||||
SD_RESULT res;
|
||||
|
||||
res = SD_WriteBlocks(sector, buff, count);
|
||||
|
||||
return interpret_sd_result(res);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
/* To enable fast seek feature, set _USE_FASTSEEK to 1. */
|
||||
|
||||
|
||||
#define _USE_LABEL 0 /* 0:Disable or 1:Enable */
|
||||
#define _USE_LABEL 1 /* 0:Disable or 1:Enable */
|
||||
/* To enable volume label functions, set _USE_LAVEL to 1 */
|
||||
|
||||
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
/ Locale and Namespace Configurations
|
||||
/---------------------------------------------------------------------------*/
|
||||
|
||||
#define _CODE_PAGE 437
|
||||
#define _CODE_PAGE 866 // 437
|
||||
/* The _CODE_PAGE specifies the OEM code page to be used on the target system.
|
||||
/ Incorrect setting of the code page can cause a file open failure.
|
||||
/
|
||||
|
|
|
|||
|
|
@ -2568,7 +2568,6 @@ FRESULT f_read (
|
|||
UINT rcnt, cc;
|
||||
BYTE csect, *rbuff = (BYTE*)buff;
|
||||
|
||||
|
||||
*br = 0; /* Clear read byte counter */
|
||||
|
||||
res = validate(fp); /* Check validity */
|
||||
|
|
@ -2670,9 +2669,10 @@ FRESULT f_write (
|
|||
const BYTE *wbuff = (const BYTE*)buff;
|
||||
BYTE csect;
|
||||
|
||||
|
||||
*bw = 0; /* Clear write byte counter */
|
||||
|
||||
// rtl_printf("f_write(%p, %p, %d) = %d\n", fp, buff, btw);
|
||||
|
||||
res = validate(fp); /* Check validity */
|
||||
if (res != FR_OK) LEAVE_FF(fp->fs, res);
|
||||
if (fp->err) /* Check error */
|
||||
|
|
@ -2773,8 +2773,6 @@ FRESULT f_write (
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------*/
|
||||
/* Synchronize the File */
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue