update ff.c/h
This commit is contained in:
parent
41af944949
commit
92ee14ff7a
@ -6997,3 +6997,18 @@ FRESULT f_setcp (
|
||||
}
|
||||
#endif /* FF_CODE_PAGE == 0 */
|
||||
|
||||
#include <rtthread.h>
|
||||
#if FF_VOLUMES > 1
|
||||
int elm_get_vol(FATFS *fat)
|
||||
{
|
||||
int vol;
|
||||
|
||||
for (vol = 0; vol < FF_VOLUMES; vol ++)
|
||||
{
|
||||
if (FatFs[vol] == fat) return vol;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtthread.h>
|
||||
#include "ffconf.h" /* FatFs configuration options */
|
||||
|
||||
#if FF_DEFINED != FFCONF_DEF
|
||||
|
Loading…
x
Reference in New Issue
Block a user