configs/nucleo-l476rg/src: Make naming of functions consistent: stm32l4_ no stm32_. Inconsistency noted by Phil Coval in Bitbucket PR 864. This commit takes a different approach to resolving the naming inconsistency, however.

This commit is contained in:
Gregory Nutt 2019-04-29 06:53:59 -06:00
parent b3819e8f0d
commit 357641ec74
11 changed files with 26 additions and 24 deletions

View File

@ -312,7 +312,7 @@ void stm32l4_spiinitialize(void);
void stm32l4_usbinitialize(void);
/****************************************************************************
* Name: stm32_gpio_initialize
* Name: stm32l4_gpio_initialize
*
* Description:
* Initialize GPIO drivers for use with /apps/examples/gpio
@ -346,7 +346,7 @@ int stm32l4_can_setup(void);
************************************************************************************/
#ifdef CONFIG_PWM
int stm32_pwm_setup(void);
int stm32l4_pwm_setup(void);
#endif
/************************************************************************************
@ -410,7 +410,7 @@ int stm32l4_qencoder_initialize(FAR const char *devpath, int timer);
#endif
/****************************************************************************
* Name: stm32_cc1101_initialize
* Name: stm32l4_cc1101_initialize
*
* Description:
* Initialize and register the cc1101 radio driver
@ -418,7 +418,7 @@ int stm32l4_qencoder_initialize(FAR const char *devpath, int timer);
****************************************************************************/
#ifdef CONFIG_WL_CC1101
int stm32_cc1101_initialize(void);
int stm32l4_cc1101_initialize(void);
#endif
#endif /* __CONFIGS_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H */

View File

@ -193,7 +193,7 @@ int board_app_initialize(uintptr_t arg)
#ifdef CONFIG_PWM
/* Initialize PWM and register the PWM device. */
ret = stm32_pwm_setup();
ret = stm32l4_pwm_setup();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: stm32l4_pwm_setup() failed: %d\n", ret);
@ -370,11 +370,11 @@ int board_app_initialize(uintptr_t arg)
#ifdef CONFIG_WL_CC1101
/* Initialize and register the cc1101 radio */
ret = stm32_cc1101_initialize();
ret = stm32l4_cc1101_initialize();
if (ret < 0)
{
syslog(LOG_ERR,
"ERROR: stm32_cc1101_initialize failed: %d\n",
"ERROR: stm32l4_cc1101_initialize failed: %d\n",
ret);
return ret;
}

View File

@ -69,7 +69,7 @@
****************************************************************************/
/****************************************************************************
* Name: stm32_can_setup
* Name: stm32l4_can_setup
*
* Description:
* Initialize CAN and register the CAN device
@ -82,7 +82,7 @@ int stm32l4_can_setup(void)
struct can_dev_s *can;
int ret;
/* Call stm32_caninitialize() to get an instance of the CAN interface */
/* Call stm32l4can_initialize() to get an instance of the CAN interface */
can = stm32l4can_initialize(CAN_PORT);
if (can == NULL)

View File

@ -108,14 +108,14 @@ static void cc1101_pwr(FAR struct cc1101_dev_s *dev, bool enable)
****************************************************************************/
/****************************************************************************
* Name: stm32_cc1101_initialize
* Name: stm32l4_cc1101_initialize
*
* Description:
* Initialize and register the cc1101 radio driver
*
****************************************************************************/
int stm32_cc1101_initialize(void)
int stm32l4_cc1101_initialize(void)
{
FAR struct spi_dev_s *spi = NULL;
FAR struct cc1101_dev_s *dev = NULL;

View File

@ -264,7 +264,7 @@ static int gpint_enable(FAR struct gpio_dev_s *dev, bool enable)
****************************************************************************/
/****************************************************************************
* Name: stm32_gpio_initialize
* Name: stm32l4_gpio_initialize
*
* Description:
* Initialize GPIO drivers for use with /apps/examples/gpio

View File

@ -60,7 +60,7 @@
****************************************************************************/
/*****************************************************************************
* Name: stm32_lsm303agr_initialize
* Name: stm32l4_lsm303agr_initialize
*
* Description:
* Initialize I2C-based LSM303AGR.

View File

@ -1,5 +1,5 @@
/*****************************************************************************
* configs/stm32l476rg/src/stm32_lsm6dsl.c
* configs/nucleo-l476rg/src/stm32_lsm6dsl.c
*
* Copyright (C) 2018 Greg Nutt. All rights reserved.
* Author: Alan Carvalho de Assis <acassis@gmail.com>
@ -60,7 +60,7 @@
****************************************************************************/
/*****************************************************************************
* Name: stm32_lsm6dsl_initialize
* Name: stm32l4_lsm6dsl_initialize
*
* Description:
* Initialize I2C-based LSM6DSL.

View File

@ -73,14 +73,14 @@
************************************************************************************/
/************************************************************************************
* Name: stm32_pwm_setup
* Name: stm32l4_pwm_setup
*
* Description:
* Initialize PWM and register the PWM device.
*
************************************************************************************/
int stm32_pwm_setup(void)
int stm32l4_pwm_setup(void)
{
static bool initialized = false;
struct pwm_lowerhalf_s *pwm;

View File

@ -1,5 +1,5 @@
/*****************************************************************************
* configs/stm32f103-minimum/src/stm32_mmcsd.c
* configs/nucleo-l476rg/src/stm32_spimmcsd.c
*
* Copyright (C) 2018 Greg Nutt. All rights reserved.
* Author: Alan Carvalho de Assis <acassis@gmail.com>
@ -81,24 +81,26 @@ static const int SD_SLOT_NO = 0; /* There is only one SD slot */
****************************************************************************/
/*****************************************************************************
* Name: stm32_spi1register
* Name: stm32l4_spi1register
*
* Description:
* Registers media change callback
*
****************************************************************************/
int stm32l4_spi1register(struct spi_dev_s *dev, spi_mediachange_t callback,
void *arg)
void *arg)
{
spiinfo("INFO: Registering spi1 device\n");
return OK;
}
/*****************************************************************************
* Name: stm32_mmcsd_initialize
* Name: stm32l4_mmcsd_initialize
*
* Description:
* Initialize SPI-based SD card and card detect thread.
*
****************************************************************************/
int stm32l4_mmcsd_initialize(int minor)

View File

@ -1,5 +1,5 @@
/****************************************************************************
* config/nucleo-l476rg/src/stm32_timer.c
* configs/nucleo-l476rg/src/stm32_timer.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -197,11 +197,11 @@ void board_userled_all(uint8_t ledset)
}
/****************************************************************************
* Name: stm32_led_pminitialize
* Name: stm32l4_led_pminitialize
****************************************************************************/
#ifdef CONFIG_PM
void stm32_led_pminitialize(void)
void stm32l4_led_pminitialize(void)
{
/* Register to receive power management callbacks */