/**
* @brief 比较源数据与目标数据是否一致
* @param None
* @retval None
*/
void Data_Check(void)
{
uchar i;
uchar errors = 0;
for(i=0;i<sizeof(sourceString);i++)
{
if(sourceString[i] != destString[i])
errors++; //记录错误的数据个数
}
if(errors == 0)
{
UartSend_String("The test of DMA is successful.\n",sizeof("The test of DMA is successful.\n")); //发送数据
LED3=1;//用作指示
}
else
{
UartSend_String("The test of DMA is failed.\n",sizeof("The test of DMA is failed.\n")); //发送数据
}
}
|