summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-16 03:48:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-16 03:48:55 +0000
commit4d176147d29f98d75bcf15c0a377cf92048174e9 (patch)
treeded1359e32f326af42f0b2301e9812f19fc771f1 /nuttx
parent67cdb00d71d27289fb207e0c23e28ddbab1cb14c (diff)
downloadpx4-nuttx-4d176147d29f98d75bcf15c0a377cf92048174e9.tar.gz
px4-nuttx-4d176147d29f98d75bcf15c0a377cf92048174e9.tar.bz2
px4-nuttx-4d176147d29f98d75bcf15c0a377cf92048174e9.zip
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3115 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_ethernet.c2
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
index af78660e9..bf8e6a8e8 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
@@ -915,7 +915,7 @@ static int lm3s_interrupt(int irq, FAR void *context)
}
/* Enable Ethernet interrupts (perhaps excluding the TX done interrupt if
- * there are no pending transmissions.
+ * there are no pending transmissions).
*/
return OK;
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
index 2b7f1fd21..874ef1c96 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
@@ -1100,9 +1100,15 @@ static void lpc17_txdone(struct lpc17_driver_s *priv)
static int lpc17_interrupt(int irq, void *context)
{
- register struct lpc17_driver_s *priv = &g_ethdrvr[0];
+ register struct lpc17_driver_s *priv;
uint32_t status;
+#if CONFIG_LPC17_NINTERFACES > 1
+# error "A mechanism to associate and interface with an IRQ is needed"
+#else
+ priv = &g_ethdrvr[0];
+#endif
+
/* Get the interrupt status (zero means no interrupts pending). */
status = lpc17_getreg(LPC17_ETH_INTST);