URL
https://opencores.org/ocsvn/amber/amber/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 80 |
Rev 81 |
Line 180... |
Line 180... |
/* First stage of reboot sequence is to nicely disconnect */
|
/* First stage of reboot sequence is to nicely disconnect */
|
if (reboot_stage_g == 0) {
|
if (reboot_stage_g == 0) {
|
set_timer(reboot_timer_g, 1000);
|
set_timer(reboot_timer_g, 1000);
|
reboot_stage_g = 1;
|
reboot_stage_g = 1;
|
socket = first_socket_g;
|
socket = first_socket_g;
|
|
if (socket != NULL){
|
for(;;){
|
for(;;){
|
socket->tcp_disconnect = 1;
|
socket->tcp_disconnect = 1;
|
if (socket->next!=NULL)
|
if (socket->next!=NULL)
|
socket=socket->next;
|
socket=socket->next;
|
else
|
else
|
break;
|
break;
|
}
|
}
|
}
|
}
|
|
}
|
else {
|
else {
|
/* Second stage of reboot sequence is to turn off ethmac and then jump to restart vector */
|
/* Second stage of reboot sequence is to turn off ethmac and then jump to restart vector */
|
close_link();
|
close_link();
|
reboot();
|
reboot();
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.