Problem with FC5_PIC_FAT16.c
Posted: Thu Feb 02, 2012 3:11 pm
Compil to C OK but error while compiling to HEX.
-1 In MX_UINT8 Scan_Current_Folder:
if (Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
in MX_SINT16 FCD_FAT160_Scan_Current_Folder:
if (Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
instead of:
if (FCD_FAT160_Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
J replace it with:
i = Read_Byte_From_Buffer((Idx) + 2);
if (i == 0x00)
return MX_ACK_FILEEMPTY;
-2 in MX_UINT8 MX_Send_Cmd
RetVal = MX_SPI_BYTE(0xFF); //Wait for response of 1
MX_SPI_BYTE unknown !
J replace it with:
RetVal = %a_SPI_Master_Byte(0xFF);
-1 In MX_UINT8 Scan_Current_Folder:
if (Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
in MX_SINT16 FCD_FAT160_Scan_Current_Folder:
if (Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
instead of:
if (FCD_FAT160_Read_Byte_From_Buffer((Idx) + 2) == 0x00)
return MX_ACK_FILEEMPTY; //Address is empty
J replace it with:
i = Read_Byte_From_Buffer((Idx) + 2);
if (i == 0x00)
return MX_ACK_FILEEMPTY;
-2 in MX_UINT8 MX_Send_Cmd
RetVal = MX_SPI_BYTE(0xFF); //Wait for response of 1
MX_SPI_BYTE unknown !
J replace it with:
RetVal = %a_SPI_Master_Byte(0xFF);