Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top