fileops.h 316 B

123456789101112131415161718
  1. // insert cool lenghty disclaimer here
  2. // fileops.h
  3. #ifndef FILEOPS_H
  4. #define FILEOPS_H
  5. #include "ff.h"
  6. BYTE file_buf[512];
  7. FATFS fatfs;
  8. FIL file_handle;
  9. FRESULT file_res;
  10. void file_init(void);
  11. void file_open(char* filename, BYTE flags);
  12. void file_close(void);
  13. UINT file_read(void);
  14. UINT file_write(void);
  15. #endif