Changes

Jump to navigation Jump to search
4 bytes added ,  04:02, 13 January 2017
no edit summary
Line 55: Line 55:  
mmcSelectSpi(spiPORT1, spiREG1);  // Initialize sdcard code to work on mibspi[1]
 
mmcSelectSpi(spiPORT1, spiREG1);  // Initialize sdcard code to work on mibspi[1]
   −
""Read from file""
+
'''Read from file'''
    
FIL file;
 
FIL file;
Line 63: Line 63:  
iFResult = f_read(&file, buffer, sizeof(buffer) - 1, (UINT *)&bytesRead);  // Read one block of data from the file.  bytesRead is populated with the number of bytes read.
 
iFResult = f_read(&file, buffer, sizeof(buffer) - 1, (UINT *)&bytesRead);  // Read one block of data from the file.  bytesRead is populated with the number of bytes read.
   −
""Write to file""
+
'''Write to file'''
    
FIL file;
 
FIL file;
8

edits

Navigation menu