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-16 03:48:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-16 03:48:55 +0000
commit4d176147d29f98d75bcf15c0a377cf92048174e9 (patch)
treeded1359e32f326af42f0b2301e9812f19fc771f1 /nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
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/arch/arm/src/lpc17xx/lpc17_ethernet.c')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c8
1 files changed, 7 insertions, 1 deletions
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);