Skip to content

Commit

Permalink
Working on the http code...
Browse files Browse the repository at this point in the history
  • Loading branch information
reprappro committed Sep 24, 2013
1 parent cc3200b commit 3c5ada0
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions Lwip/lwip/src/sam/netif/ethernetif.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,38 +376,57 @@ static struct pbuf *low_level_input(struct netif *netif)
* \param pv_parameters the lwip network interface structure for this
* ethernetif.
*/

void ethernetif_input(void * pvParameters)
{

struct netif *netif = (struct netif *)pvParameters;
struct pbuf *p;

/* move received packet into a new pbuf */
p = low_level_input( netif );
if( p == NULL )
return;

if( ERR_OK != netif->input( p, netif ) )
{
pbuf_free(p);
p = NULL;
}
}


//void ethernetif_input(void * pvParameters)
//{
//
// struct netif *netif = (struct netif *)pvParameters;
// struct pbuf *p;
//
//#ifdef FREERTOS_USED
// for( ;; ) {
// do {
//#endif
/* move received packet into a new pbuf */
p = low_level_input( netif );
if( p == NULL ) {
// /* move received packet into a new pbuf */
// p = low_level_input( netif );
// if( p == NULL ) {
//#ifdef FREERTOS_USED
// /* No packet could be read. Wait a for an interrupt to tell us
// there is more data available. */
// vTaskDelay(100);
// }
// }while( p == NULL );
//#else
return;
}
// return;
// }
//#endif

if( ERR_OK != netif->input( p, netif ) ) {
pbuf_free(p);
p = NULL;
}
//
// if( ERR_OK != netif->input( p, netif ) ) {
// pbuf_free(p);
// p = NULL;
// }
//#ifdef FREERTOS_USED
// }
//#endif
}
//}



Expand Down

0 comments on commit 3c5ada0

Please sign in to comment.