pse-uisim/fatfs.c
2023-09-09 18:00:24 +02:00

40 lines
929 B
C

#include "fatfs.h"
#include <stdio.h>
FRESULT f_open (
FIL* fp, /* Pointer to the blank file object */
const TCHAR* path, /* Pointer to the file name */
BYTE mode /* Access mode and file open mode flags */
){
printf("file open try\n");
return FR_NO_FILE;
}
FRESULT f_read (
FIL* fp, /* Pointer to the file object */
void* buff, /* Pointer to data buffer */
UINT btr, /* Number of bytes to read */
UINT* br /* Pointer to number of bytes read */
){
printf("file read try\n");
return FR_NO_FILE;
}
FRESULT f_close (
FIL *fp /* Pointer to the file object to be closed */
){
printf("file close try\n");
return FR_NO_FILE;
}
FRESULT f_write (
FIL* fp, /* Pointer to the file object */
const void *buff, /* Pointer to the data to be written */
UINT btw, /* Number of bytes to write */
UINT* bw /* Pointer to number of bytes written */
){
printf("file write try\n");
return FR_NO_FILE;
}