arch/arm/src/stm32/stm32_i2s: Change the initialize function from

stm32_i2sdev_initialize to stm32_i2sbus_initiliaze, to be consistent
with the way other buses are initialized.
The stm32_i2sdev_initiliaze (similar to stm32_spidev_initialize for
example) is a board specific function that does any necessary
initialization that's board depedent.
This commit is contained in:
Ouss4 2020-06-03 20:43:57 +01:00 committed by Xiang Xiao
parent a30b77cbb9
commit 1ca552716c
4 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@
* is configured.
* 3. Add a calls to up_spiinitialize() in your low level application
* initialization logic
* 4. The handle returned by stm32_i2sdev_initialize() may then be used to
* 4. The handle returned by stm32_i2sbus_initialize() may then be used to
* bind the I2S driver to higher level logic
*
****************************************************************************/
@ -2604,7 +2604,7 @@ static void i2s3_configure(struct stm32_i2s_s *priv)
****************************************************************************/
/****************************************************************************
* Name: stm32_i2sdev_initialize
* Name: stm32_i2sbus_initialize
*
* Description:
* Initialize the selected i2S port
@ -2617,7 +2617,7 @@ static void i2s3_configure(struct stm32_i2s_s *priv)
*
****************************************************************************/
FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port)
FAR struct i2s_dev_s *stm32_i2sbus_initialize(int port)
{
FAR struct stm32_i2s_s *priv = NULL;
irqstate_t flags;

View File

@ -65,7 +65,7 @@ extern "C"
************************************************************************************/
/************************************************************************************
* Name: stm32_i2sdev_initialize
* Name: stm32_i2sbus_initialize
*
* Description:
* Initialize the selected I2S port
@ -78,7 +78,7 @@ extern "C"
*
************************************************************************************/
FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port);
FAR struct i2s_dev_s *stm32_i2sbus_initialize(int port);
#undef EXTERN
#if defined(__cplusplus)

View File

@ -297,7 +297,7 @@ int stm32_cs43l22_initialize(int minor)
}
/* Get an instance of the I2S interface for the CS43L22 data channel */
i2s = stm32_i2sdev_initialize(CS43L22_I2S_BUS);
i2s = stm32_i2sbus_initialize(CS43L22_I2S_BUS);
if (!i2s)
{
auderr("ERROR: Failed to initialize I2S%d\n", CS43L22_I2S_BUS);

View File

@ -438,7 +438,7 @@ void weak_function stm32_spidev_initialize(void);
*
****************************************************************************/
FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port);
void weak_function stm32_i2sdev_initialize(void);
/****************************************************************************
* Name: stm32_bh1750initialize