Cosmetic changes for coding style; removal of dangling spaces at the end of lines

This commit is contained in:
Gregory Nutt
2014-04-13 13:18:06 -06:00
parent ce5594d0ed
commit fb4fa33cae
6 changed files with 54 additions and 54 deletions
+9 -9
View File
@@ -211,14 +211,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG FS host interface * each platform that implements the STM32 OTG FS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_FS_HPRT). * control and status register (PPWR bit in OTG_FS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -234,7 +234,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -242,9 +242,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGFS_PWRON, false); stm32_gpiowrite(GPIO_OTGFS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGFS_PWRON, true); stm32_gpiowrite(GPIO_OTGFS_PWRON, true);
} }
} }
+9 -9
View File
@@ -210,14 +210,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG FS host interface * each platform that implements the STM32 OTG FS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_FS_HPRT). * control and status register (PPWR bit in OTG_FS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -233,7 +233,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -241,9 +241,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGFS_PWRON, false); stm32_gpiowrite(GPIO_OTGFS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGFS_PWRON, true); stm32_gpiowrite(GPIO_OTGFS_PWRON, true);
} }
} }
+9 -9
View File
@@ -210,14 +210,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG FS host interface * each platform that implements the STM32 OTG FS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_FS_HPRT). * control and status register (PPWR bit in OTG_FS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -233,7 +233,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -241,9 +241,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGFS_PWRON, false); stm32_gpiowrite(GPIO_OTGFS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGFS_PWRON, true); stm32_gpiowrite(GPIO_OTGFS_PWRON, true);
} }
} }
+9 -9
View File
@@ -210,14 +210,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG FS host interface * each platform that implements the STM32 OTG FS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_FS_HPRT). * control and status register (PPWR bit in OTG_FS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -233,7 +233,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -241,9 +241,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGFS_PWRON, false); stm32_gpiowrite(GPIO_OTGFS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGFS_PWRON, true); stm32_gpiowrite(GPIO_OTGFS_PWRON, true);
} }
} }
+9 -9
View File
@@ -210,14 +210,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG FS host interface * each platform that implements the STM32 OTG FS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_FS_HPRT). * control and status register (PPWR bit in OTG_FS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -233,7 +233,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -241,9 +241,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGFS_PWRON, false); stm32_gpiowrite(GPIO_OTGFS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGFS_PWRON, true); stm32_gpiowrite(GPIO_OTGFS_PWRON, true);
} }
} }
+9 -9
View File
@@ -209,14 +209,14 @@ int stm32_usbhost_initialize(void)
* Enable/disable driving of VBUS 5V output. This function must be provided be * Enable/disable driving of VBUS 5V output. This function must be provided be
* each platform that implements the STM32 OTG HS host interface * each platform that implements the STM32 OTG HS host interface
* *
* "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump * "On-chip 5 V VBUS generation is not supported. For this reason, a charge pump
* or, if 5 V are available on the application board, a basic power switch, must * or, if 5 V are available on the application board, a basic power switch, must
* be added externally to drive the 5 V VBUS line. The external charge pump can * be added externally to drive the 5 V VBUS line. The external charge pump can
* be driven by any GPIO output. When the application decides to power on VBUS * be driven by any GPIO output. When the application decides to power on VBUS
* using the chosen GPIO, it must also set the port power bit in the host port * using the chosen GPIO, it must also set the port power bit in the host port
* control and status register (PPWR bit in OTG_HS_HPRT). * control and status register (PPWR bit in OTG_HS_HPRT).
* *
* "The application uses this field to control power to this port, and the core * "The application uses this field to control power to this port, and the core
* clears this bit on an overcurrent condition." * clears this bit on an overcurrent condition."
* *
* Input Parameters: * Input Parameters:
@@ -232,7 +232,7 @@ int stm32_usbhost_initialize(void)
void stm32_usbhost_vbusdrive(int iface, bool enable) void stm32_usbhost_vbusdrive(int iface, bool enable)
{ {
DEBUGASSERT(iface == 0); DEBUGASSERT(iface == 0);
if (enable) if (enable)
{ {
/* Enable the Power Switch by driving the enable pin low */ /* Enable the Power Switch by driving the enable pin low */
@@ -240,9 +240,9 @@ void stm32_usbhost_vbusdrive(int iface, bool enable)
stm32_gpiowrite(GPIO_OTGHS_PWRON, false); stm32_gpiowrite(GPIO_OTGHS_PWRON, false);
} }
else else
{ {
/* Disable the Power Switch by driving the enable pin high */ /* Disable the Power Switch by driving the enable pin high */
stm32_gpiowrite(GPIO_OTGHS_PWRON, true); stm32_gpiowrite(GPIO_OTGHS_PWRON, true);
} }
} }