Correct a potential bug (that I encounter) with non allignement problem with LPC copy function.

This commit is contained in:
Godzil 2012-04-16 23:28:41 +02:00
parent 641edcda89
commit 38cc9162bf

View File

@ -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;