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:
parent
a30b77cbb9
commit
1ca552716c
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue