add ping test and increase the number of timeouts
This commit is contained in:
parent
8a746580b0
commit
bfc5f29620
3 changed files with 9 additions and 2 deletions
|
@ -95,7 +95,7 @@ int STDCALL network_task(void* arg)
|
|||
|
||||
// start echo and ping server
|
||||
echo_init();
|
||||
//ping_init();
|
||||
ping_init();
|
||||
|
||||
while(!done) {
|
||||
rtl8139if_wait(&netif, 0);
|
||||
|
|
|
@ -117,6 +117,8 @@ static int STDCALL join_test(void* arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void ping_send_now();
|
||||
|
||||
int test_init(void)
|
||||
{
|
||||
char* argv[] = {"/bin/tests", NULL};
|
||||
|
@ -135,5 +137,10 @@ int test_init(void)
|
|||
//create_user_task(NULL, "/bin/jacobi", argv);
|
||||
//create_user_task(NULL, "/bin/jacobi", argv);
|
||||
|
||||
#ifdef CONFIG_LWIP
|
||||
// use ping to test LWIP
|
||||
ping_send_now();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts.
|
||||
* (requires NO_SYS==0)
|
||||
*/
|
||||
#define MEMP_NUM_SYS_TIMEOUT 5
|
||||
#define MEMP_NUM_SYS_TIMEOUT 7
|
||||
|
||||
/**
|
||||
* LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from
|
||||
|
|
Loading…
Add table
Reference in a new issue