STM32303E_EVAL BSP User Manual: Exported Constants

STM32303E EVAL BSP Drivers

STM32303E_EVAL BSP User Manual
Exported Constants

Defines

#define AUDIO_I2C_ADDRESS   0x94
#define I2Sx   SPI3
#define I2Sx_CLK_ENABLE()   __HAL_RCC_SPI3_CLK_ENABLE()
#define I2Sx_CLK_DISABLE()   __HAL_RCC_SPI3_CLK_DISABLE()
#define I2Sx_FORCE_RESET()   __HAL_RCC_SPI3_FORCE_RESET()
#define I2Sx_RELEASE_RESET()   __HAL_RCC_SPI3_RELEASE_RESET()
#define I2Sx_WS_PIN   GPIO_PIN_4
#define I2Sx_MCK_PIN   GPIO_PIN_9
#define I2Sx_SCK_PIN   GPIO_PIN_10
#define I2Sx_DIN_PIN   GPIO_PIN_12
#define I2Sx_WS_GPIO_PORT   GPIOA
#define I2Sx_MCK_GPIO_PORT   GPIOA
#define I2Sx_SCK_DIN_GPIO_PORT   GPIOC
#define I2Sx_MCK_WS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define I2Sx_MCK_WS_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define I2Sx_WS_AF   GPIO_AF6_SPI3
#define I2Sx_MCK_AF   GPIO_AF5_SPI3
#define I2Sx_SCK_DIN_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define I2Sx_SCK_DIN_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define I2Sx_SCK_DIN_AF   GPIO_AF6_SPI3
#define I2Sx_DMAx_CLK_ENABLE()   __HAL_RCC_DMA2_CLK_ENABLE()
#define I2Sx_DMAx_CLK_DISABLE()   __HAL_RCC_DMA2_CLK_DISABLE()
#define I2Sx_DMAx_CHANNEL   DMA2_Channel2
#define I2Sx_DMAx_IRQ   DMA2_Channel2_IRQn
#define I2Sx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD
#define I2Sx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD
#define DMA_MAX_SZE   0xFFFF
#define AUDIO_OUT_IRQ_PREPRIO   0x0E /* Select the preemption priority level(0 is the highest) */
#define AUDIO_OUT_IRQ_SUBPRIO   0 /* Select the sub-priority level (0 is the highest) */
#define AUDIODATA_SIZE   2 /* 16-bits audio data size */
#define DMA_MAX(_X_)   (((_X_) <= DMA_MAX_SZE)? (_X_):DMA_MAX_SZE)

Define Documentation

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

Definition at line 120 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define AUDIO_OUT_IRQ_SUBPRIO   0 /* Select the sub-priority level (0 is the highest) */

Definition at line 121 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

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

Definition at line 127 of file stm32303e_eval_audio.h.

#define DMA_MAX (   _X_)    (((_X_) <= DMA_MAX_SZE)? (_X_):DMA_MAX_SZE)

Definition at line 129 of file stm32303e_eval_audio.h.

Referenced by BSP_AUDIO_OUT_Play().

#define DMA_MAX_SZE   0xFFFF

Definition at line 117 of file stm32303e_eval_audio.h.

#define I2Sx   SPI3
#define I2Sx_CLK_DISABLE ( )    __HAL_RCC_SPI3_CLK_DISABLE()

Definition at line 90 of file stm32303e_eval_audio.h.

#define I2Sx_CLK_ENABLE ( )    __HAL_RCC_SPI3_CLK_ENABLE()

Definition at line 89 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DIN_PIN   GPIO_PIN_12

Definition at line 97 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DMAx_CHANNEL   DMA2_Channel2

Definition at line 113 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DMAx_CLK_DISABLE ( )    __HAL_RCC_DMA2_CLK_DISABLE()

Definition at line 112 of file stm32303e_eval_audio.h.

#define I2Sx_DMAx_CLK_ENABLE ( )    __HAL_RCC_DMA2_CLK_ENABLE()

Definition at line 111 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DMAx_IRQ   DMA2_Channel2_IRQn

Definition at line 114 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DMAx_MEM_DATA_SIZE   DMA_MDATAALIGN_HALFWORD

Definition at line 116 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_DMAx_PERIPH_DATA_SIZE   DMA_PDATAALIGN_HALFWORD

Definition at line 115 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_FORCE_RESET ( )    __HAL_RCC_SPI3_FORCE_RESET()

Definition at line 91 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_MCK_AF   GPIO_AF5_SPI3

Definition at line 105 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_MCK_GPIO_PORT   GPIOA

Definition at line 100 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_MCK_PIN   GPIO_PIN_9

Definition at line 95 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_MCK_WS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 103 of file stm32303e_eval_audio.h.

#define I2Sx_MCK_WS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 102 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_RELEASE_RESET ( )    __HAL_RCC_SPI3_RELEASE_RESET()

Definition at line 92 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_SCK_DIN_AF   GPIO_AF6_SPI3

Definition at line 108 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_SCK_DIN_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 107 of file stm32303e_eval_audio.h.

#define I2Sx_SCK_DIN_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 106 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_SCK_DIN_GPIO_PORT   GPIOC

Definition at line 101 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_SCK_PIN   GPIO_PIN_10

Definition at line 96 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_WS_AF   GPIO_AF6_SPI3

Definition at line 104 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_WS_GPIO_PORT   GPIOA

Definition at line 99 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

#define I2Sx_WS_PIN   GPIO_PIN_4

Definition at line 94 of file stm32303e_eval_audio.h.

Referenced by I2Sx_MspInit().

Generated on Wed May 31 2017 11:17:17 for STM32303E_EVAL BSP User Manual by   doxygen 1.7.6.1