summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-12 23:15:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-12 23:15:30 +0000
commit977f8ff023322fd92b7657f684fd8ff4a4b4899d (patch)
tree4a44e6dba05b67b45c57390f21e5082c84414d6d /nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
parent9e00eb3bb86d291e882db786d39c24fea6935c66 (diff)
downloadpx4-nuttx-977f8ff023322fd92b7657f684fd8ff4a4b4899d.tar.gz
px4-nuttx-977f8ff023322fd92b7657f684fd8ff4a4b4899d.tar.bz2
px4-nuttx-977f8ff023322fd92b7657f684fd8ff4a4b4899d.zip
mostly cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3102 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
index 80a1509e7..f99b06df9 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
@@ -1385,6 +1385,8 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv)
lldbg("Unrecognized mode: %04x\n", phyreg);
return -ENODEV;
}
+#else
+# warning "PHY Unknown: speed and duplex are bogus"
#endif
nlldbg("%dBase-T %s duplex\n",
@@ -1495,7 +1497,7 @@ static inline int lpc17_ethinitialize(int intf)
/* Initialize the driver structure */
- memset(g_ethdrvr, 0, CONFIG_LPC17_NINTERFACES*sizeof(struct lpc17_driver_s));
+ memset(priv, 0, sizeof(struct lpc17_driver_s));
priv->lp_dev.d_ifup = lpc17_ifup; /* I/F down callback */
priv->lp_dev.d_ifdown = lpc17_ifdown; /* I/F up (new IP address) callback */
priv->lp_dev.d_txavail = lpc17_txavail; /* New TX data callback */
@@ -1513,8 +1515,8 @@ static inline int lpc17_ethinitialize(int intf)
/* Create a watchdog for timing polling for and timing of transmisstions */
- priv->lp_txpoll = wd_create(); /* Create periodic poll timer */
- priv->lp_txtimeout = wd_create(); /* Create TX timeout timer */
+ priv->lp_txpoll = wd_create(); /* Create periodic poll timer */
+ priv->lp_txtimeout = wd_create(); /* Create TX timeout timer */
/* Perform minimal, one-time initialization -- just reset the controller and
* leave it disabled. The Ethernet controller will be reset and properly