This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 60d51f290764c7ad205fc6ab375d8f833a96aa4f
Author: Matias Nitsche <[email protected]>
AuthorDate: Mon May 11 19:27:19 2020 -0300

    nxstyle fixes
---
 boards/arm/stm32/common/include/board_qencoder.h   |  1 -
 .../arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h  | 38 +++++++++++++---------
 .../arm/stm32/mikroe-stm32f4/src/stm32_appinit.c   | 12 ++++---
 3 files changed, 30 insertions(+), 21 deletions(-)

diff --git a/boards/arm/stm32/common/include/board_qencoder.h 
b/boards/arm/stm32/common/include/board_qencoder.h
index 9aee53c..07be357 100644
--- a/boards/arm/stm32/common/include/board_qencoder.h
+++ b/boards/arm/stm32/common/include/board_qencoder.h
@@ -55,7 +55,6 @@ extern "C"
  * Public Function Prototypes
  ****************************************************************************/
 
-
 /****************************************************************************
  * Name: board_qencoder_initialize
  *
diff --git a/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h 
b/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h
index ab46877..920ab84 100644
--- a/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h
+++ b/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h
@@ -47,7 +47,9 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
-/* Configuration 
****************************************************************************/
+
+/* Configuration ************************************************************/
+
 /* How many SPI modules does this chip support? */
 
 #if STM32_NSPI < 1
@@ -61,13 +63,15 @@
 #  undef CONFIG_STM32_SPI3
 #endif
 
-/* Mikroe STM32F4 GPIOs 
**************************************************************************/
-/* LEDs - There are no user LEDs on this board unless you add some manually. */
+/* Mikroe STM32F4 GPIOs *****************************************************/
+
+/* LEDs - There are no user LEDs on this board unless you add some manually */
 
 #define GPIO_LED1       (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\
                          GPIO_OUTPUT_CLEAR|GPIO_PORTD|GPIO_PIN12)
 
 /* BUTTONS -- NOTE that all have EXTI interrupts configured */
+
 /* There are no user buttons on this board unless you add some externally. */
 
 #define MIN_IRQBUTTON   BUTTON_USER
@@ -201,14 +205,15 @@
 #ifndef __ASSEMBLY__
 
 /****************************************************************************
- * Public Functions
+ * Public Function Prototypes
  ****************************************************************************/
 
 /****************************************************************************
  * Name: stm32_spidev_initialize
  *
  * Description:
- *   Called to configure SPI chip select GPIO pins for the mikroe-stm32f4 
board.
+ *   Called to configure SPI chip select GPIO pins for the mikroe-stm32f4
+ *   board.
  *
  ****************************************************************************/
 
@@ -218,8 +223,8 @@ void weak_function stm32_spidev_initialize(void);
  * Name: stm32_usbinitialize
  *
  * Description:
- *   Called from stm32_usbinitialize very early in initialization to setup 
USB-related
- *   GPIO pins for the Mikroe-stm32f4 board.
+ *   Called from stm32_usbinitialize very early in initialization to setup
+ *   USB-related GPIO pins for the Mikroe-stm32f4 board.
  *
  ****************************************************************************/
 
@@ -243,8 +248,9 @@ int stm32_pwm_setup(void);
  * Name: stm32_usbhost_initialize
  *
  * Description:
- *   Called at application startup time to initialize the USB host 
functionality. This function will
- *   start a thread that will monitor for device connection/disconnection 
events.
+ *   Called at application startup time to initialize the USB host
+ *   functionality. This function will start a thread that will monitor
+ *   for device connection/disconnection events.
  *
  ****************************************************************************/
 
@@ -256,8 +262,9 @@ int stm32_pwm_setup(void);
  * Name: stm32_lcdinitialize
  *
  * Description:
- *   Initialize the LCD.  This function should be called early in the boot 
sequendce -- Even if the
- *   LCD is not enabled.  In that case we should at a minimum at least disable 
the LCD backlight.
+ *   Initialize the LCD.  This function should be called early in the boot
+ *   sequendce -- Even if the LCD is not enabled.  In that case we should at
+ *   a minimum at least disable the LCD backlight.
  *
  ****************************************************************************/
 
@@ -269,15 +276,16 @@ void stm32_lcdinitialize(void);
  * Name: stm32_tsc_setup
  *
  * Description:
- *   This function is called by board-bringup logic to configure the 
touchscreen device.  This
- *   function will register the driver as /dev/inputN where N is the minor 
device number.
+ *   This function is called by board-bringup logic to configure the
+ *   touchscreen device.  This function will register the driver as
+ *   /dev/inputN where N is the minor device number.
  *
  * Input Parameters:
  *   minor - The input device minor number
  *
  * Returned Value:
- *   Zero is returned on success.  Otherwise, a negated errno value is 
returned to indicate the
- *   nature of the failure.
+ *   Zero is returned on success.  Otherwise, a negated errno value is
+ *   returned to indicate the nature of the failure.
  *
  ****************************************************************************/
 
diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c 
b/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c
index fb61c4d..63cfaa0 100644
--- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c
+++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c
@@ -118,8 +118,8 @@
 #  undef HAVE_USBMONITOR
 #endif
 
-/* Can't support MMC/SD features if mountpoints are disabled or if SDIO support
- * is not enabled.
+/* Can't support MMC/SD features if mountpoints are disabled or if SDIO
+ * support is not enabled.
  */
 
 #if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_STM32_SPI3)
@@ -209,11 +209,13 @@ int board_app_initialize(uintptr_t arg)
   mtd = m25p_initialize(spi);
   if (!mtd)
     {
-      syslog(LOG_ERR, "ERROR: Failed to bind SPI port 3 to the SPI FLASH 
driver\n");
+      syslog(LOG_ERR, "ERROR: Failed to bind SPI port 3 to the SPI"
+                      " FLASH driver\n");
     }
   else
     {
-      syslog(LOG_INFO, "Successfully bound SPI port 3 to the SPI FLASH 
driver\n");
+      syslog(LOG_INFO, "Successfully bound SPI port 3 to the SPI"
+                       " FLASH driver\n");
 
 #ifdef CONFIG_MIKROE_FLASH_PART
       {
@@ -236,7 +238,7 @@ int board_app_initialize(uintptr_t arg)
             /* Get the partition size */
 
             partsize = atoi(ptr);
-            mtd_part = mtd_partition(mtd, partoffset, (partsize>>2)*16);
+            mtd_part = mtd_partition(mtd, partoffset, (partsize >> 2) * 16);
             partoffset += (partsize >> 2) * 16;
 
 #ifdef CONFIG_MIKROE_FLASH_CONFIG_PART

Reply via email to