Esempio n. 1
0
static FF_T_SINT32 fullfat_readblocks(FF_T_UINT8 *pBuffer, FF_T_UINT32 Address, FF_T_UINT32 Count, void *pParam) {
	BT_FF_MOUNT *pMount = (BT_FF_MOUNT *) pParam;
	BT_ERROR Error;
	BT_u32 ulRead = BT_VolumeRead(pMount->hVolume, Address, Count, pBuffer, &Error);

	return (FF_T_SINT32) ulRead;
}
Esempio n. 2
0
static int ext2_readblocks(unsigned char *pBuffer, unsigned int SectorAddress, unsigned int Count, void *pParam) {
	BT_HANDLE hVolume = (BT_HANDLE)pParam;
	BT_s32 slRead = BT_VolumeRead(hVolume, SectorAddress, Count, pBuffer);
#if DEBUG
	int i, j;
	for(i=0;i<Count;i++) {
		bt_printf("%02d+%02d: ", SectorAddress, i);
		for(j=0;j<SECTOR_SIZE;j++) {
			if((j%16) == 0) bt_printf("\n  ");
			bt_printf("%02x ", pBuffer[j]);
		}
		bt_printf("\n");
	}
#endif
	return (int) slRead;
}