diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-22 14:45:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-22 14:45:34 +0000 |
commit | 52eb43e1c47814d05a2daeb8dd03472fee672c5f (patch) | |
tree | f59864ab5b4e0713549de772ed98d74140cf15a5 /nuttx/arch/arm/src/lm3s/lm3s_ethernet.c | |
parent | 15c813c4abca809b36756f66efb51ab6532f447f (diff) | |
download | px4-nuttx-52eb43e1c47814d05a2daeb8dd03472fee672c5f.tar.gz px4-nuttx-52eb43e1c47814d05a2daeb8dd03472fee672c5f.tar.bz2 px4-nuttx-52eb43e1c47814d05a2daeb8dd03472fee672c5f.zip |
lm3s ethernet works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1815 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_ethernet.c')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_ethernet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c index 4445af193..963705e6e 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c @@ -580,7 +580,7 @@ static int lm3s_uiptxpoll(struct uip_driver_s *dev) * the field d_len is set to a value > 0. */ - nvdbg("Poll result: d_len=%d\n", priv->dev.d_len); + nvdbg("Poll result: d_len=%d\n", priv->ld_dev.d_len); if (priv->ld_dev.d_len > 0) { /* Send the packet. lm3s_transmit() will return zero if the @@ -769,7 +769,6 @@ static void lm3s_receive(struct lm3s_driver_s *priv) } #endif } - while ( /* FIX ME */ TRUE /* FIX ME */); /* While there are more packets to be processed */ } /**************************************************************************** @@ -1085,7 +1084,7 @@ static int lm3s_ifup(struct uip_driver_s *dev) /* Enable the Ethernet transmitter */ - regval = lm3s_ethin(priv, LM3S_MAC_RCTL_OFFSET); + regval = lm3s_ethin(priv, LM3S_MAC_TCTL_OFFSET); regval |= MAC_TCTL_TXEN; lm3s_ethout(priv, LM3S_MAC_TCTL_OFFSET, regval); |