summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-14 12:26:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-14 12:26:49 -0600
commit09c8278b8677125f5160be9593fccfd53286bbfc (patch)
tree3a9ab0b135a77d6f3c97e134afdb1315699cdc56 /nuttx/arch
parentdf4aeab705353232c78e614b56296e585f833fa4 (diff)
downloadpx4-nuttx-09c8278b8677125f5160be9593fccfd53286bbfc.tar.gz
px4-nuttx-09c8278b8677125f5160be9593fccfd53286bbfc.tar.bz2
px4-nuttx-09c8278b8677125f5160be9593fccfd53286bbfc.zip
examples/touchscreen: Add a configuration option to indicate that there is or is not an architecture-specific initialization function
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_otgfshost.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
index b7d39f93f..e43e246a0 100644
--- a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
+++ b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
@@ -640,7 +640,7 @@ static int stm32_chan_alloc(FAR struct stm32_usbhost_s *priv)
/* Search the table of channels */
- for (chidx = 0 ; chidx < STM32_NHOST_CHANNELS ; chidx++)
+ for (chidx = 0; chidx < STM32_NHOST_CHANNELS; chidx++)
{
/* Is this channel available? */
@@ -693,7 +693,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
/* Free all host channels */
- for (chidx = 2; chidx < STM32_NHOST_CHANNELS ; chidx ++)
+ for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
{
stm32_chan_free(priv, chidx);
}
@@ -3232,8 +3232,8 @@ static int stm32_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx)
/* Configure control channels */
- stm32_chan_configure(priv, priv->ep0out) ;
- stm32_chan_configure(priv, priv->ep0in) ;
+ stm32_chan_configure(priv, priv->ep0out);
+ stm32_chan_configure(priv, priv->ep0in);
/* Let the common usbhost_enumerate do all of the real work. Note that the
* FunctionAddress (USB address) is hardcoded to one.
@@ -3412,7 +3412,7 @@ static int stm32_epalloc(FAR struct usbhost_driver_s *drvr,
/* Then configure the endpoint */
- stm32_chan_configure(priv, chidx) ;
+ stm32_chan_configure(priv, chidx);
/* Return the index to the allocated channel as the endpoint "handle" */