
GDS-806/810/820/840 Programming Manual
87
void Delay(int i)
{
int j,k;
for(j=0;j<i;j++){
for(k=0;k<30000;k++)
;
}
}
void ShowIbsta(char c)
{
if(ibsta & ERR){
if(c)
printf("\n\rUnable write to device(ibsta= %x),
(iberr=%x)\n\r",ibsta,iberr);
else
printf("\n\rUnable read from device(ibsta= %x),
(iberr=%x)\n\r",ibsta,iberr);
}
else{
if(c)
printf("\n\rWrite, ibsta= %x",ibsta);
else
printf("\n\rRead, ibsta= %x",ibsta);
}
}
Comentarios a estos manuales