Merged in alinjerpelea/nuttx (pull request #1003)

arm: stm32: codestyle fixes

* arm: stm32f0l0g0: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: stm32f7: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: stm32h7: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: stm32l4: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: stm32: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Alin Jerpelea
2019-08-19 15:16:08 +00:00
committed by Gregory Nutt
parent 39d1a02c6d
commit d42fc094fa
1136 changed files with 6808 additions and 6650 deletions
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/include/board.h
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h
* include/arch/board/board.h
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
@@ -34,8 +34,8 @@
*
****************************************************************************/
#ifndef __BOARDS_ARM_B_L072Z_LRWAN1_INCLUDE_BOARD_H
#define __BOARDS_ARM_B_L072Z_LRWAN1_INCLUDE_BOARD_H
#ifndef __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H
#define __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
@@ -109,6 +109,7 @@
/* TODO: timers */
/* LED definitions **********************************************************/
/* The Nucleo LO73RZ board has three LEDs. Two of these are controlled by
* logic on the board and are not available for software control:
*
@@ -162,6 +163,7 @@
#define LED_PANIC 1
/* Button definitions *******************************************************/
/* The Nucleo LO73RZ supports two buttons; only one button is controllable
* by software:
*
@@ -254,8 +256,9 @@
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_2 /* PB8 */
/* DMA channels *************************************************************/
/* ADC */
#define ADC1_DMA_CHAN DMACHAN_ADC1_1 /* DMA1_CH1 */
#endif /* __BOARDS_ARM_NUCLEO_LO73RZ_INCLUDE_BOARD_H */
#endif /* __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H */
@@ -1,5 +1,5 @@
############################################################################
# boards/b-l072z-lrwan1/scripts/Make.defs
# boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs
#
# Copyright (C) 2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/scripts/ld.script
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
############################################################################
# boards/b-l072z-lrwan1/src/Makefile
# boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile
#
# Copyright (C) 2018 Gregory Nutt. All rights reserved.
# Author: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/b-l072z-lrwan1.h
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H
#define __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H
#ifndef __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H
#define __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H
/****************************************************************************
* Included Files
@@ -47,6 +47,7 @@
****************************************************************************/
/* LED definitions **********************************************************/
/* The Nucleo L073RZ board has three LEDs. Two of these are controlled by
* logic on the board and are not available for software control:
*
@@ -76,6 +77,7 @@
#define LED_DRIVER_PATH "/dev/userleds"
/* Button definitions *******************************************************/
/* The Nucleo L073RZ supports two buttons; only one button is controllable
* by software:
*
@@ -126,7 +128,7 @@
* Public Function Prototypes
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Name: stm32_bringup
*
* Description:
@@ -138,17 +140,17 @@
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
************************************************************************************/
****************************************************************************/
int stm32_bringup(void);
/************************************************************************************
/****************************************************************************
* Name: stm32_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the Nucleo-H743ZI board.
*
************************************************************************************/
****************************************************************************/
#ifdef CONFIG_STM32F0L0G0_SPI
void stm32_spidev_initialize(void);
@@ -165,16 +167,16 @@ void stm32_spidev_initialize(void);
int stm32_lpwaninitialize(void);
#endif
/************************************************************************************
/****************************************************************************
* Name: stm32_adc_setup
*
* Description:
* Initialize ADC and register the ADC driver.
*
************************************************************************************/
****************************************************************************/
#ifdef CONFIG_ADC
int stm32_adc_setup(void);
#endif
#endif /* __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H */
#endif /* __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_adc.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_appinitialize.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinitialize.c
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_autoleds.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_boot.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -91,7 +91,7 @@ void stm32_boardinitialize(void)
#endif
}
/************************************************************************************
/****************************************************************************
* Name: board_late_initialize
*
* Description:
@@ -102,7 +102,7 @@ void stm32_boardinitialize(void)
* This additional initialization phase may be used, for example, to initialize
* board-specific device drivers.
*
************************************************************************************/
****************************************************************************/
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_bringup.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_spi.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Mateusz Szafoni <raiden00@railab.me>
@@ -76,13 +76,13 @@
* Public Functions
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Name: stm32_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the Nucleo-144 board.
*
************************************************************************************/
****************************************************************************/
void stm32_spidev_initialize(void)
{
@@ -1,5 +1,5 @@
/****************************************************************************
* config/b-l072z-lrwan1/src/stm32_ssd1306.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Mateusz Szafoni <raiden00@railab.me>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/b-l072z-lrwan1/src/stm32_boot.c
* boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Authors: Mateusz Szafoni <raiden00@railab.me>
@@ -287,4 +287,3 @@ int stm32_lpwaninitialize(void)
errout:
return ret;
}