1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
40
41
/* ... */
#include "ff.h"
#include "stm32f4xx_hal.h"
Includes
#define JFILE FIL
#define JMALLOC malloc
#define JFREE free
size_t read_file (JFILE *file, uint8_t *buf, uint32_t sizeofbuf);
size_t write_file (JFILE *file, uint8_t *buf, uint32_t sizeofbuf) ;
#define JFREAD(file,buf,sizeofbuf) \
read_file (file,buf,sizeofbuf)...
#define JFWRITE(file,buf,sizeofbuf) \
write_file (file,buf,sizeofbuf)...