Update PIC32 Ethernet driver

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4469 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-03-09 22:05:14 +00:00
parent 693538e0d7
commit dccd03f6fb
8 changed files with 53 additions and 32 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
* net/uip/uip_icmpinput.c
* Handling incoming ICMP/ICMP6 input
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Adapted for NuttX from logic in uIP which also has a BSD-like license:
*
+5 -4
View File
@@ -1,8 +1,8 @@
/****************************************************************************
* net/uip/uip_icmpping.c
*
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* Copyright (C) 2008-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -214,7 +214,7 @@ static uint16_t ping_interrupt(struct uip_driver_s *dev, void *conn,
if (dev->d_sndlen <= 0 && /* Packet available */
(flags & UIP_NEWDATA) == 0 && /* No incoming data */
!pstate->png_sent) /* Request not sent */
{
{
struct uip_icmpip_hdr *picmp = ICMPBUF;
/* We can send the ECHO request now.
@@ -243,7 +243,8 @@ static uint16_t ping_interrupt(struct uip_driver_s *dev, void *conn,
*/
nlldbg("Send ECHO request: seqno=%d\n", pstate->png_seqno);
dev->d_sndlen= pstate->png_datlen + 4;
dev->d_sndlen = pstate->png_datlen + 4;
uip_icmpsend(dev, &pstate->png_addr);
pstate->png_sent = true;
return flags;
+2 -2
View File
@@ -1,8 +1,8 @@
/****************************************************************************
* net/uip/uip_icmpsend.c
*
* Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* Copyright (C) 2008-2010, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
+1
View File
@@ -161,6 +161,7 @@ static uint8_t uip_reass(void)
uip_reassflags = 0;
/* Clear the bitmap. */
memset(uip_reassbitmap, 0, sizeof(uip_reassbitmap));
}