weber
Newbie level 3
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 .
It seems nothing changed since old versions . fflush has not implemented yet for sd card.
m i right?
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?