Correct a potential bug (that I encounter) with non allignement problem with LPC copy function.
This commit is contained in:
parent
641edcda89
commit
38cc9162bf
@ -31,7 +31,9 @@
|
||||
|
||||
enum filestates { FILE_OK=0, FILE_ERR, FILE_EOF };
|
||||
|
||||
BYTE file_buf[512];
|
||||
#define GCC_ALIGN_WORKAROUND __attribute__ ((aligned(4)))
|
||||
BYTE file_buf[512] GCC_ALIGN_WORKAROUND;
|
||||
|
||||
FATFS fatfs;
|
||||
FIL file_handle;
|
||||
FRESULT file_res;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user