STM32L4R9I_EVAL BSP User Manual: Exported Constants

STM32L4R9I_EVAL BSP

STM32L4R9I_EVAL BSP User Manual
Exported Constants

Modules

 BSP Audio Out Option
 BSP Audio Sample Rate

Defines

#define AUDIO_SAIx   SAI1_Block_A
#define AUDIO_SAIx_CLK_ENABLE()   __HAL_RCC_SAI1_CLK_ENABLE()
#define AUDIO_SAIx_CLK_DISABLE()   __HAL_RCC_SAI1_CLK_DISABLE()
#define AUDIO_SAIx_MCK_SCK_SD_FS_AF   GPIO_AF13_SAI1
#define AUDIO_SAIx_MCK_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define AUDIO_SAIx_MCK_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define AUDIO_SAIx_MCK_PIN   GPIO_PIN_8
#define AUDIO_SAIx_MCK_GPIO_PORT   GPIOB
#define AUDIO_SAIx_FS_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define AUDIO_SAIx_FS_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define AUDIO_SAIx_FS_PIN   GPIO_PIN_9
#define AUDIO_SAIx_FS_GPIO_PORT   GPIOB
#define AUDIO_SAIx_SCK_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define AUDIO_SAIx_SCK_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define AUDIO_SAIx_SCK_PIN   GPIO_PIN_8
#define AUDIO_SAIx_SCK_GPIO_PORT   GPIOA
#define AUDIO_SAIx_SD_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define AUDIO_SAIx_SD_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define AUDIO_SAIx_SD_PIN   GPIO_PIN_1
#define AUDIO_SAIx_SD_GPIO_PORT   GPIOC
#define AUDIO_SAIx_DMAx_CLK_ENABLE()   __HAL_RCC_DMA2_CLK_ENABLE()
#define AUDIO_SAIx_DMAx_CLK_DISABLE()   __HAL_RCC_DMA2_CLK_DISABLE()
#define AUDIO_SAIx_DMAx_REQUEST   DMA_REQUEST_SAI1_A
#define AUDIO_SAIx_DMAx_CHANNEL   DMA2_Channel2
#define AUDIO_SAIx_DMAx_IRQ   DMA2_Channel2_IRQn
#define AUDIO_SAIx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD
#define AUDIO_SAIx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD
#define DMA_MAX_SZE   (uint32_t)0xFFFF
#define AUDIO_SAIx_DMAx_IRQHandler   DMA2_Channel2_IRQHandler
#define AUDIO_OUT_IRQ_PREPRIO   5 /* Select the preemption priority level(0 is the highest) */
#define AUDIO_SAIx_PLL_DISABLE()   HAL_RCCEx_DisablePLLSAI1()
#define AUDIO_DFSDMx_LEFT_CHANNEL   DFSDM1_Channel4
#define AUDIO_DFSDMx_RIGHT_CHANNEL   DFSDM1_Channel3
#define AUDIO_DFSDMx_LEFT_FILTER   DFSDM1_Filter0
#define AUDIO_DFSDMx_RIGHT_FILTER   DFSDM1_Filter1
#define AUDIO_DFSDMx_CLK_ENABLE()   __HAL_RCC_DFSDM1_CLK_ENABLE()
#define AUDIO_DFSDMx_CLK_DISABLE()   __HAL_RCC_DFSDM1_CLK_DISABLE()
#define AUDIO_DFSDMx_CKOUT_DATIN_AF   GPIO_AF6_DFSDM1
#define AUDIO_DFSDMx_CKOUT_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define AUDIO_DFSDMx_CKOUT_CLK_DISABLE()   __HAL_RCC_GPIOF_CLK_DISABLE()
#define AUDIO_DFSDMx_CKOUT_PIN   GPIO_PIN_10
#define AUDIO_DFSDMx_CKOUT_GPIO_PORT   GPIOF
#define AUDIO_DFSDMx_DATIN_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define AUDIO_DFSDMx_DATIN_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define AUDIO_DFSDMx_DATIN_PIN   GPIO_PIN_0
#define AUDIO_DFSDMx_DATIN_GPIO_PORT   GPIOC
#define AUDIO_DFSDMx_DMAx_CLK_ENABLE()   __HAL_RCC_DMA1_CLK_ENABLE()
#define AUDIO_DFSDMx_DMAx_CLK_DISABLE()   __HAL_RCC_DMA1_CLK_DISABLE()
#define AUDIO_DFSDMx_DMAx_LEFT_CHANNEL   DMA1_Channel4
#define AUDIO_DFSDMx_DMAx_RIGHT_CHANNEL   DMA1_Channel5
#define AUDIO_DFSDMx_DMAx_LEFT_IRQ   DMA1_Channel4_IRQn
#define AUDIO_DFSDMx_DMAx_RIGHT_IRQ   DMA1_Channel5_IRQn
#define AUDIO_DFSDMx_DMAx_LEFT_REQUEST   DMA_REQUEST_DFSDM1_FLT0
#define AUDIO_DFSDMx_DMAx_RIGHT_REQUEST   DMA_REQUEST_DFSDM1_FLT1
#define AUDIO_DFSDMx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_WORD
#define AUDIO_DFSDMx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_WORD
#define AUDIO_DFSDM_DMAx_LEFT_IRQHandler   DMA1_Channel4_IRQHandler
#define AUDIO_DFSDM_DMAx_RIGHT_IRQHandler   DMA1_Channel5_IRQHandler
#define AUDIO_IN_IRQ_PREPRIO   6 /* Select the preemption priority level(0 is the highest) */
#define AUDIODATA_SIZE   2 /* 16-bits audio data size */
#define AUDIO_OK   0
#define AUDIO_ERROR   1
#define AUDIO_TIMEOUT   2
#define DEFAULT_AUDIO_IN_FREQ   BSP_AUDIO_FREQUENCY_16K
#define DEFAULT_AUDIO_IN_BIT_RESOLUTION   16
#define DEFAULT_AUDIO_IN_CHANNEL_NBR   2 /* Mono = 1, Stereo = 2 */
#define DEFAULT_AUDIO_IN_VOLUME   64
#define INTERNAL_BUFF_SIZE   256
#define CODEC_RESET_DELAY   5

Define Documentation

#define AUDIO_DFSDM_DMAx_LEFT_IRQHandler   DMA1_Channel4_IRQHandler

Definition at line 181 of file stm32l4r9i_eval_audio.h.

#define AUDIO_DFSDM_DMAx_RIGHT_IRQHandler   DMA1_Channel5_IRQHandler

Definition at line 182 of file stm32l4r9i_eval_audio.h.

#define AUDIO_DFSDMx_CKOUT_CLK_DISABLE ( )    __HAL_RCC_GPIOF_CLK_DISABLE()

Definition at line 161 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspDeInit().

#define AUDIO_DFSDMx_CKOUT_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 160 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspInit().

#define AUDIO_DFSDMx_CKOUT_DATIN_AF   GPIO_AF6_DFSDM1

Definition at line 159 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspInit().

#define AUDIO_DFSDMx_CKOUT_GPIO_PORT   GPIOF
#define AUDIO_DFSDMx_CKOUT_PIN   GPIO_PIN_10
#define AUDIO_DFSDMx_CLK_DISABLE ( )    __HAL_RCC_DFSDM1_CLK_DISABLE()

Definition at line 158 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspDeInit().

#define AUDIO_DFSDMx_CLK_ENABLE ( )    __HAL_RCC_DFSDM1_CLK_ENABLE()

Definition at line 157 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspInit().

#define AUDIO_DFSDMx_DATIN_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 165 of file stm32l4r9i_eval_audio.h.

#define AUDIO_DFSDMx_DATIN_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 164 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_ChannelMspInit().

#define AUDIO_DFSDMx_DATIN_GPIO_PORT   GPIOC
#define AUDIO_DFSDMx_DATIN_PIN   GPIO_PIN_0
#define AUDIO_DFSDMx_DMAx_CLK_DISABLE ( )    __HAL_RCC_DMA1_CLK_DISABLE()

Definition at line 171 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspDeInit().

#define AUDIO_DFSDMx_DMAx_CLK_ENABLE ( )    __HAL_RCC_DMA1_CLK_ENABLE()

Definition at line 170 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_LEFT_CHANNEL   DMA1_Channel4

Definition at line 172 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_LEFT_IRQ   DMA1_Channel4_IRQn

Definition at line 174 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspDeInit(), and HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_LEFT_REQUEST   DMA_REQUEST_DFSDM1_FLT0

Definition at line 176 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_WORD

Definition at line 179 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_WORD

Definition at line 178 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_RIGHT_CHANNEL   DMA1_Channel5

Definition at line 173 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_RIGHT_IRQ   DMA1_Channel5_IRQn

Definition at line 175 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspDeInit(), and HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_DMAx_RIGHT_REQUEST   DMA_REQUEST_DFSDM1_FLT1

Definition at line 177 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_DFSDMx_LEFT_CHANNEL   DFSDM1_Channel4

Definition at line 153 of file stm32l4r9i_eval_audio.h.

Referenced by AUDIO_DFSDMx_Init().

#define AUDIO_DFSDMx_LEFT_FILTER   DFSDM1_Filter0
#define AUDIO_DFSDMx_RIGHT_CHANNEL   DFSDM1_Channel3

Definition at line 154 of file stm32l4r9i_eval_audio.h.

Referenced by AUDIO_DFSDMx_Init().

#define AUDIO_DFSDMx_RIGHT_FILTER   DFSDM1_Filter1

Definition at line 156 of file stm32l4r9i_eval_audio.h.

Referenced by AUDIO_DFSDMx_Init().

#define AUDIO_IN_IRQ_PREPRIO   6 /* Select the preemption priority level(0 is the highest) */

Definition at line 185 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_DFSDM_FilterMspInit().

#define AUDIO_OUT_IRQ_PREPRIO   5 /* Select the preemption priority level(0 is the highest) */

Definition at line 143 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx   SAI1_Block_A

Definition at line 108 of file stm32l4r9i_eval_audio.h.

Referenced by AUDIO_SAIx_Init(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_CLK_DISABLE ( )    __HAL_RCC_SAI1_CLK_DISABLE()

Definition at line 110 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit().

#define AUDIO_SAIx_CLK_ENABLE ( )    __HAL_RCC_SAI1_CLK_ENABLE()

Definition at line 109 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_CHANNEL   DMA2_Channel2

Definition at line 134 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_CLK_DISABLE ( )    __HAL_RCC_DMA2_CLK_DISABLE()

Definition at line 132 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit().

#define AUDIO_SAIx_DMAx_CLK_ENABLE ( )    __HAL_RCC_DMA2_CLK_ENABLE()

Definition at line 131 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_IRQ   DMA2_Channel2_IRQn

Definition at line 135 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_IRQHandler   DMA2_Channel2_IRQHandler

Definition at line 140 of file stm32l4r9i_eval_audio.h.

#define AUDIO_SAIx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD

Definition at line 137 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD

Definition at line 136 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_DMAx_REQUEST   DMA_REQUEST_SAI1_A

Definition at line 133 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_FS_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 118 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit().

#define AUDIO_SAIx_FS_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 117 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_FS_GPIO_PORT   GPIOB

Definition at line 120 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_FS_PIN   GPIO_PIN_9

Definition at line 119 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_MCK_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 114 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit().

#define AUDIO_SAIx_MCK_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 113 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_MCK_GPIO_PORT   GPIOB

Definition at line 116 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_MCK_PIN   GPIO_PIN_8

Definition at line 115 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_MCK_SCK_SD_FS_AF   GPIO_AF13_SAI1

Definition at line 111 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_PLL_DISABLE ( )    HAL_RCCEx_DisablePLLSAI1()

Definition at line 146 of file stm32l4r9i_eval_audio.h.

Referenced by AUDIO_SAIx_DeInit().

#define AUDIO_SAIx_SCK_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 122 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit().

#define AUDIO_SAIx_SCK_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 121 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_SCK_GPIO_PORT   GPIOA

Definition at line 124 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_SCK_PIN   GPIO_PIN_8

Definition at line 123 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_SD_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 126 of file stm32l4r9i_eval_audio.h.

#define AUDIO_SAIx_SD_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 125 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspInit().

#define AUDIO_SAIx_SD_GPIO_PORT   GPIOC

Definition at line 128 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_SAIx_SD_PIN   GPIO_PIN_1

Definition at line 127 of file stm32l4r9i_eval_audio.h.

Referenced by HAL_SAI_MspDeInit(), and HAL_SAI_MspInit().

#define AUDIO_TIMEOUT   2

Definition at line 196 of file stm32l4r9i_eval_audio.h.

#define AUDIODATA_SIZE   2 /* 16-bits audio data size */

Definition at line 191 of file stm32l4r9i_eval_audio.h.

#define CODEC_RESET_DELAY   5

Definition at line 212 of file stm32l4r9i_eval_audio.h.

Definition at line 200 of file stm32l4r9i_eval_audio.h.

#define DEFAULT_AUDIO_IN_CHANNEL_NBR   2 /* Mono = 1, Stereo = 2 */

Definition at line 201 of file stm32l4r9i_eval_audio.h.

#define DEFAULT_AUDIO_IN_VOLUME   64

Definition at line 202 of file stm32l4r9i_eval_audio.h.

#define DMA_MAX_SZE   (uint32_t)0xFFFF

Definition at line 138 of file stm32l4r9i_eval_audio.h.

#define INTERNAL_BUFF_SIZE   256

Definition at line 205 of file stm32l4r9i_eval_audio.h.

Generated on Thu Oct 12 2017 10:54:00 for STM32L4R9I_EVAL BSP User Manual by   doxygen 1.7.6.1