Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by scrts ( 14 years ago )
unsigned char wait_for_link(void){
unsigned char i = 0;
while(((struct ethernetif *) alteraTseNetif.state)->link_alive != 1) {
tse_mac_init(0, alteraTseNetif.state);
if(i>5) {
return 0;
}
i++;
mSdelay(1000);
}
return 1;
}
Revise this Paste