diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-29 14:09:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-29 14:09:31 +0000 |
commit | 667921a4e294fc5b8b9a99c889307c9f6c93ffae (patch) | |
tree | b5f463aca072a26fedfc71804c472e6b9ce18bac /nuttx/arch/arm/src/lm3s/lm3s_ethernet.c | |
parent | 87f04994cfa2431cc09168c47239f47f5a308cdd (diff) | |
download | px4-nuttx-667921a4e294fc5b8b9a99c889307c9f6c93ffae.tar.gz px4-nuttx-667921a4e294fc5b8b9a99c889307c9f6c93ffae.tar.bz2 px4-nuttx-667921a4e294fc5b8b9a99c889307c9f6c93ffae.zip |
Ethernet controller needs different delay with debug disabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1836 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 aa3189c19..1f5e35f27 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c @@ -323,7 +323,6 @@ static void lm3s_ethreset(struct lm3s_driver_s *priv) { irqstate_t flags; uint32 regval; - volatile uint32 delay; #if LM3S_NETHCONTROLLERS > 1 # error "If multiple interfaces are supported, this function would have to be redesigned" @@ -343,9 +342,9 @@ static void lm3s_ethreset(struct lm3s_driver_s *priv) regval |= (SYSCON_SRCR2_EMAC0|SYSCON_SRCR2_EPHY0); putreg32(regval, LM3S_SYSCON_SRCR2); - /* Wait just a bit */ + /* Wait just a bit. This is a much longer delay than necessary */ - for (delay = 0; delay < 16; delay++); + up_mdelay(2); /* Then take the Ethernet controller out of the reset state */ |