RL-FlashFs doesn't support fflush() for SD card.

Status
Not open for further replies.

weber

Newbie level 3
Joined
Jun 9, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
I tried many times fflush function for sd card (MDK ARM 4.20 or 4.53) , then i saw these codes on internet .These codes belongs to old keil version .

Code:
/* * R T L - F l a s h F i l e S y s t e m * *
Name: _FS_FLUSHBUF.C *
Purpose: Low level File Flush Buffer Function *
Rev.: V3.22 * *
This code is part of the RealView Run-Time Library. *
Copyright © 2004-2008 KEIL - An ARM Company. All rights reserved. **/

#include "File_Config.h"
int __flushbuf (int handle) {
 /* Low level file flush function. */ FALLOC alloc; IOB *fcb;
fcb = &_iob[handle];
 if (!(fcb->flags & _IOWRT)) {
 /* File not opened for write */
 fcb->flags |= _IOERR; return (-1); }
[COLOR="#FF0000"] if (fcb->drive == DRV_MCARD) 
{ return (0);[/COLOR]
. .
.

It seems nothing changed since old versions . fflush has not implemented yet for sd card.

m i right?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…