/* Check if some error occurs when SDIOH transfer.  */
u32 SDIOH_CheckTxError(u16 *status)
/* Check if some error occurs when SDIOH transfer.  */
u32 SDIOH_CheckTxError(u16 *status)
{
	SDIOH_TypeDef *psdioh = SDIOH_BASE;
	if(psdioh->SD_TRANSFER & SDIOH_ERR_OCCUR) {
		if(status != NULL)
			*status = psdioh->SD_STATUS1 | (psdioh->SD_STATUS2 << 8);
		return HAL_ERR_UNKNOWN;
	} else
		return HAL_OK;
}