diff --git a/arch/arm/src/efm32/efm32_usbhost.c b/arch/arm/src/efm32/efm32_usbhost.c index 74d6b9f4157..8b9de50a764 100644 --- a/arch/arm/src/efm32/efm32_usbhost.c +++ b/arch/arm/src/efm32/efm32_usbhost.c @@ -3792,7 +3792,7 @@ static void efm32_txfe_enable(FAR struct efm32_usbhost_s *priv, int chidx) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/lpc17xx/lpc17_usbhost.c b/arch/arm/src/lpc17xx/lpc17_usbhost.c index aad2c487f87..6231c13ab51 100644 --- a/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -1934,7 +1934,7 @@ static int lpc17_usbinterrupt(int irq, void *context, FAR void *arg) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/lpc31xx/lpc31_ehci.c b/arch/arm/src/lpc31xx/lpc31_ehci.c index 6b90a1b2eb1..3efff3c4235 100644 --- a/arch/arm/src/lpc31xx/lpc31_ehci.c +++ b/arch/arm/src/lpc31xx/lpc31_ehci.c @@ -3429,7 +3429,7 @@ static int lpc31_ehci_interrupt(int irq, FAR void *context, FAR void *arg) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/lpc43xx/lpc43_ehci.c b/arch/arm/src/lpc43xx/lpc43_ehci.c index 3908fb1a8ee..7fcef5bc383 100644 --- a/arch/arm/src/lpc43xx/lpc43_ehci.c +++ b/arch/arm/src/lpc43xx/lpc43_ehci.c @@ -3266,7 +3266,7 @@ static int lpc43_ehci_interrupt(int irq, FAR void *context, FAR void *arg) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c index bd87be9f93b..10e942dcad7 100644 --- a/arch/arm/src/sama5/sam_ehci.c +++ b/arch/arm/src/sama5/sam_ehci.c @@ -3266,7 +3266,7 @@ static int sam_uhphs_interrupt(int irq, FAR void *context, FAR void *arg) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index fac941d6862..dcd66b38a36 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -2320,7 +2320,7 @@ static void sam_ohci_bottomhalf(void *arg) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/stm32/stm32_otgfshost.c b/arch/arm/src/stm32/stm32_otgfshost.c index e3efc1ec8fa..121ecf0e02e 100644 --- a/arch/arm/src/stm32/stm32_otgfshost.c +++ b/arch/arm/src/stm32/stm32_otgfshost.c @@ -3821,7 +3821,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/stm32/stm32_otghshost.c b/arch/arm/src/stm32/stm32_otghshost.c index 76e4f1b7ded..e18afcc6cdb 100644 --- a/arch/arm/src/stm32/stm32_otghshost.c +++ b/arch/arm/src/stm32/stm32_otghshost.c @@ -3826,7 +3826,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/stm32f7/stm32_otghost.c b/arch/arm/src/stm32f7/stm32_otghost.c index 834739c08db..8fc332ba775 100644 --- a/arch/arm/src/stm32f7/stm32_otghost.c +++ b/arch/arm/src/stm32f7/stm32_otghost.c @@ -3820,7 +3820,7 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx) * connection related event. * * 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 * 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 diff --git a/arch/arm/src/stm32l4/stm32l4_otgfshost.c b/arch/arm/src/stm32l4/stm32l4_otgfshost.c index 3ad28612a80..8f8c4e82bb8 100644 --- a/arch/arm/src/stm32l4/stm32l4_otgfshost.c +++ b/arch/arm/src/stm32l4/stm32l4_otgfshost.c @@ -3826,7 +3826,7 @@ static void stm32l4_txfe_enable(FAR struct stm32l4_usbhost_s *priv, int chidx) * connection related event. * * 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 * 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 diff --git a/configs/metro-m4/README.txt b/configs/metro-m4/README.txt index 3fdc5488264..a9e81cd70fe 100644 --- a/configs/metro-m4/README.txt +++ b/configs/metro-m4/README.txt @@ -24,8 +24,12 @@ STATUS 2018-07-26: The basic port was merged into master. It is still incomplete and untested. It is missing the clock configuration logic. 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. + 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 ============== diff --git a/drivers/usbhost/usbhost_max3421e.c b/drivers/usbhost/usbhost_max3421e.c index a32d953d99c..190d9b47702 100644 --- a/drivers/usbhost/usbhost_max3421e.c +++ b/drivers/usbhost/usbhost_max3421e.c @@ -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) { - 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. * * 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 * 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 diff --git a/include/nuttx/usb/usbhost.h b/include/nuttx/usb/usbhost.h index 9dc98450da9..a3ffcd5960c 100644 --- a/include/nuttx/usb/usbhost.h +++ b/include/nuttx/usb/usbhost.h @@ -176,7 +176,7 @@ * connection related event. * * 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 * 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