OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [services/] [tftp.c] - Diff between revs 828 and 833

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 828 Rev 833
Line 210... Line 210...
                         */
                         */
                        break;
                        break;
                }
                }
 
 
                TftpLastBlock = TftpBlock;
                TftpLastBlock = TftpBlock;
                NetSetTimeout (TIMEOUT * IN_CLK, TftpTimeout);
                NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout);
 
 
                store_block (TftpBlock - 1, pkt + 2, len);
                store_block (TftpBlock - 1, pkt + 2, len);
 
 
                /*
                /*
                 *      Acknoledge the block just received, which will prompt
                 *      Acknoledge the block just received, which will prompt
Line 248... Line 248...
        if (++TftpTimeoutCount >= TIMEOUT_COUNT) {
        if (++TftpTimeoutCount >= TIMEOUT_COUNT) {
                printf ("\nRetry count exceeded; starting again\n");
                printf ("\nRetry count exceeded; starting again\n");
                NetStartAgain ();
                NetStartAgain ();
        } else {
        } else {
                printf ("T ");
                printf ("T ");
                NetSetTimeout (TIMEOUT * IN_CLK, TftpTimeout);
                NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout);
                TftpSend ();
                TftpSend ();
        }
        }
}
}
 
 
 
 
Line 298... Line 298...
 
 
        printf ("Load address: 0x%lx\n", global.src_addr);
        printf ("Load address: 0x%lx\n", global.src_addr);
 
 
        printf ("Loading: *\b");
        printf ("Loading: *\b");
 
 
        NetSetTimeout (TIMEOUT * IN_CLK, TftpTimeout);
        NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout);
        NetSetHandler (TftpHandler);
        NetSetHandler (TftpHandler);
 
 
        TftpServerPort = WELL_KNOWN_PORT;
        TftpServerPort = WELL_KNOWN_PORT;
        TftpTimeoutCount = 0;
        TftpTimeoutCount = 0;
        TftpState = STATE_RRQ;
        TftpState = STATE_RRQ;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.