mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
drivers/usbhost/usbhost_max3421e.c: Fix an error in reading the pending interrupts. Aos fix a number of typos and update a README.
This commit is contained in:
@@ -3792,7 +3792,7 @@ static void efm32_txfe_enable(FAR struct efm32_usbhost_s *priv, int chidx)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -1934,7 +1934,7 @@ static int lpc17_usbinterrupt(int irq, void *context, FAR void *arg)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3429,7 +3429,7 @@ static int lpc31_ehci_interrupt(int irq, FAR void *context, FAR void *arg)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3266,7 +3266,7 @@ static int lpc43_ehci_interrupt(int irq, FAR void *context, FAR void *arg)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3266,7 +3266,7 @@ static int sam_uhphs_interrupt(int irq, FAR void *context, FAR void *arg)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -2320,7 +2320,7 @@ static void sam_ohci_bottomhalf(void *arg)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3821,7 +3821,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3826,7 +3826,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3820,7 +3820,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -3826,7 +3826,7 @@ static void stm32l4_txfe_enable(FAR struct stm32l4_usbhost_s *priv, int chidx)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -24,8 +24,12 @@ STATUS
|
|||||||
2018-07-26: The basic port was merged into master. It is still
|
2018-07-26: The basic port was merged into master. It is still
|
||||||
incomplete and untested. It is missing the clock configuration logic.
|
incomplete and untested. It is missing the clock configuration logic.
|
||||||
There is a placeholder from the SAML21, but it is currently stubbed out
|
There is a placeholder from the SAML21, but it is currently stubbed out
|
||||||
in the Make.defs file). Configuration options in the board.h header
|
in the Make.defs file. Configuration options in the board.h header
|
||||||
file are bogus and also just cloned from the SAML21.
|
file are bogus and also just cloned from the SAML21.
|
||||||
|
2018-07-29: Clock configuration logic now complete. board.h
|
||||||
|
configuration options still need to be verified. Unverified SERCOM
|
||||||
|
USART, SPI, I2C, Port configuration, and DMA support have been added.
|
||||||
|
I still have no hardware in hand to test.
|
||||||
|
|
||||||
Serial Console
|
Serial Console
|
||||||
==============
|
==============
|
||||||
|
|||||||
@@ -3201,7 +3201,7 @@ static inline void max3421e_int_disable(FAR struct max3421e_usbhost_s *priv,
|
|||||||
|
|
||||||
static inline uint8_t max3421e_int_status(FAR struct max3421e_usbhost_s *priv)
|
static inline uint8_t max3421e_int_status(FAR struct max3421e_usbhost_s *priv)
|
||||||
{
|
{
|
||||||
return max3421e_getreg(priv, MAX3421E_USBHOST_HIEN) & priv->irqset;
|
return max3421e_getreg(priv, MAX3421E_USBHOST_HIRQ) & priv->irqset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -3217,7 +3217,7 @@ static inline uint8_t max3421e_int_status(FAR struct max3421e_usbhost_s *priv)
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
* connection related event.
|
* connection related event.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success when a device in connected or
|
* Zero (OK) is returned on success when a device is connected or
|
||||||
* disconnected. This function will not return until either (1) a device is
|
* disconnected. This function will not return until either (1) a device is
|
||||||
* connected or disconnect to/from any hub port or until (2) some failure
|
* connected or disconnect to/from any hub port or until (2) some failure
|
||||||
* occurs. On a failure, a negated errno value is returned indicating the
|
* occurs. On a failure, a negated errno value is returned indicating the
|
||||||
|
|||||||
Reference in New Issue
Block a user