diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-23 18:13:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-23 18:13:49 +0000 |
commit | 2373c7a5e5d56b9b8a6184c6f6f716966b87869b (patch) | |
tree | e87f99185fbb508a7547e1281968c0f78dfb8529 /nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | |
parent | 5541ec017e6dbdf6ca9c81ab58401579f94b01ec (diff) | |
download | px4-nuttx-2373c7a5e5d56b9b8a6184c6f6f716966b87869b.tar.gz px4-nuttx-2373c7a5e5d56b9b8a6184c6f6f716966b87869b.tar.bz2 px4-nuttx-2373c7a5e5d56b9b8a6184c6f6f716966b87869b.zip |
Update comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3275 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.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c index 2f2e53fc7..5662ec7c7 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/lpc17xx/lpc17_ethernet.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -1800,7 +1800,20 @@ static int lpc17_phymode(uint8_t phyaddr, uint8_t mode) int32_t timeout; uint16_t phyreg; - /* Disable auto-negotiation and set fixed Speed and Duplex settings */ + /* Disable auto-negotiation and set fixed Speed and Duplex settings: + * + * MII_MCR_UNIDIR 0=Disable unidirectional enable + * MII_MCR_SPEED1000 0=Reserved on 10/100 + * MII_MCR_CTST 0=Disable collision test + * MII_MCR_FULLDPLX ?=Full duplex + * MII_MCR_ANRESTART 0=Don't restart auto negotiation + * MII_MCR_ISOLATE 0=Don't electronically isolate PHY from MII + * MII_MCR_PDOWN 0=Don't powerdown the PHY + * MII_MCR_ANENABLE 0=Disable auto negotiation + * MII_MCR_SPEED100 ?=Select 100Mbps + * MII_MCR_LOOPBACK 0=Disable loopback mode + * MII_MCR_RESET 0=No PHY reset + */ phyreg = 0; if ((mode & LPC17_SPEED_MASK) == LPC17_SPEED_100) |