summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_eth.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-17 16:51:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-17 16:51:56 -0600
commit1e403a4e31a138eb5d47f8ff8738b088ea9d051a (patch)
tree3774dbe8fd5e488dc257976d9709dd22e09b7c59 /nuttx/arch/arm/src/stm32/stm32_eth.c
parent23900a5b4bbc6b32bbc5095f93c02b3b4ad88456 (diff)
downloadpx4-nuttx-1e403a4e31a138eb5d47f8ff8738b088ea9d051a.tar.gz
px4-nuttx-1e403a4e31a138eb5d47f8ff8738b088ea9d051a.tar.bz2
px4-nuttx-1e403a4e31a138eb5d47f8ff8738b088ea9d051a.zip
Change the way PHY interrupts work: disable automatically. Then we have to re-subscribe each time after the interrupt fires
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_eth.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_eth.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_eth.c b/nuttx/arch/arm/src/stm32/stm32_eth.c
index 8b944db77..a4d894fc8 100644
--- a/nuttx/arch/arm/src/stm32/stm32_eth.c
+++ b/nuttx/arch/arm/src/stm32/stm32_eth.c
@@ -2572,7 +2572,12 @@ static int stm32_ioctl(struct net_driver_s *dev, int cmd, long arg)
* Function: stm32_phyintenable
*
* Description:
- * Enable link up/down PHY interrupts
+ * Enable link up/down PHY interrupts. The interrupt protocol is like this:
+ *
+ * - Interrupt status is cleared when the interrupt is enabled.
+ * - Interrupt occurs. Interrupt is disabled (at the processor level) when
+ * is received.
+ * - Interrupt status is cleared when the interrupt is re-enabled.
*
* Parameters:
* priv - A reference to the private driver state structure