Example of using the SDFileSystem library on a K64F to write data to files and also read data into dynamically created arrays.
integer.h
00001 /*-------------------------------------------*/ 00002 /* Integer type definitions for FatFs module */ 00003 /*-------------------------------------------*/ 00004 00005 #ifndef _FF_INTEGER 00006 #define _FF_INTEGER 00007 00008 #ifdef _WIN32 /* Development platform */ 00009 00010 #include <windows.h> 00011 #include <tchar.h> 00012 00013 #else /* Embedded platform */ 00014 00015 /* This type MUST be 8-bit */ 00016 typedef unsigned char BYTE; 00017 00018 /* These types MUST be 16-bit */ 00019 typedef short SHORT; 00020 typedef unsigned short WORD; 00021 typedef unsigned short WCHAR; 00022 00023 /* These types MUST be 16-bit or 32-bit */ 00024 typedef int INT; 00025 typedef unsigned int UINT; 00026 00027 /* These types MUST be 32-bit */ 00028 typedef long LONG; 00029 typedef unsigned long DWORD; 00030 00031 #endif 00032 00033 #endif
Generated on Wed Jul 13 2022 01:25:51 by 1.7.2