STM32F411E-Discovery BSP User Manual
|
Defines | |
#define | DISCOVERY_I2Cx I2C1 |
#define | DISCOVERY_I2Cx_CLOCK_ENABLE() __HAL_RCC_I2C1_CLK_ENABLE() |
#define | DISCOVERY_I2Cx_GPIO_PORT GPIOB /* GPIOB */ |
#define | DISCOVERY_I2Cx_SCL_PIN GPIO_PIN_6 /* PB.06 */ |
#define | DISCOVERY_I2Cx_SDA_PIN GPIO_PIN_9 /* PB.09 */ |
#define | DISCOVERY_I2Cx_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | DISCOVERY_I2Cx_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | DISCOVERY_I2Cx_AF GPIO_AF4_I2C1 |
#define | DISCOVERY_I2Cx_FORCE_RESET() __HAL_RCC_I2C1_FORCE_RESET() |
#define | DISCOVERY_I2Cx_RELEASE_RESET() __HAL_RCC_I2C1_RELEASE_RESET() |
#define | DISCOVERY_I2Cx_EV_IRQn I2C1_EV_IRQn |
#define | DISCOVERY_I2Cx_ER_IRQn I2C1_ER_IRQn |
#define | I2Cx_TIMEOUT_MAX 0xA000 /*<! The value of the maximal timeout for I2C waiting loops */ |
#define | I2Cx_MAX_COMMUNICATION_FREQ ((uint32_t) 100000) |
#define | DISCOVERY_SPIx SPI1 |
#define | DISCOVERY_SPIx_CLOCK_ENABLE() __HAL_RCC_SPI1_CLK_ENABLE() |
#define | DISCOVERY_SPIx_GPIO_PORT GPIOA /* GPIOA */ |
#define | DISCOVERY_SPIx_AF GPIO_AF5_SPI1 |
#define | DISCOVERY_SPIx_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | DISCOVERY_SPIx_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | DISCOVERY_SPIx_SCK_PIN GPIO_PIN_5 /* PA.05 */ |
#define | DISCOVERY_SPIx_MISO_PIN GPIO_PIN_6 /* PA.06 */ |
#define | DISCOVERY_SPIx_MOSI_PIN GPIO_PIN_7 /* PA.07 */ |
#define | SPIx_TIMEOUT_MAX ((uint32_t)0x1000) |
#define | READWRITE_CMD ((uint8_t)0x80) |
#define | MULTIPLEBYTE_CMD ((uint8_t)0x40) |
#define | DUMMY_BYTE ((uint8_t)0x00) |
#define | GYRO_CS_LOW() HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_RESET) |
#define | GYRO_CS_HIGH() HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET) |
#define | GYRO_CS_GPIO_PORT GPIOE /* GPIOE */ |
GYRO SPI Interface pins. | |
#define | GYRO_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | GYRO_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | GYRO_CS_PIN GPIO_PIN_3 /* PE.03 */ |
#define | GYRO_INT_GPIO_PORT GPIOE /* GPIOE */ |
#define | GYRO_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | GYRO_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | GYRO_INT1_PIN GPIO_PIN_0 /* PE.00 */ |
#define | GYRO_INT1_EXTI_IRQn EXTI0_IRQn |
#define | GYRO_INT2_PIN GPIO_PIN_1 /* PE.01 */ |
#define | GYRO_INT2_EXTI_IRQn EXTI1_IRQn |
#define | AUDIO_I2C_ADDRESS 0x94 |
AUDIO I2C Interface pins. | |
#define | CODEC_AUDIO_POWER_OFF() HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET) |
#define | CODEC_AUDIO_POWER_ON() HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_SET) |
#define | AUDIO_RESET_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | AUDIO_RESET_PIN GPIO_PIN_4 |
#define | AUDIO_RESET_GPIO GPIOD |
Define Documentation
#define AUDIO_I2C_ADDRESS 0x94 |
AUDIO I2C Interface pins.
Definition at line 238 of file stm32f411e_discovery.h.
Referenced by BSP_AUDIO_OUT_Init(), BSP_AUDIO_OUT_Pause(), BSP_AUDIO_OUT_Play(), BSP_AUDIO_OUT_Resume(), BSP_AUDIO_OUT_SetMute(), BSP_AUDIO_OUT_SetOutputMode(), BSP_AUDIO_OUT_SetVolume(), and BSP_AUDIO_OUT_Stop().
#define AUDIO_RESET_GPIO GPIOD |
Definition at line 247 of file stm32f411e_discovery.h.
Referenced by AUDIO_IO_Init(), and BSP_AUDIO_OUT_Stop().
#define AUDIO_RESET_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 245 of file stm32f411e_discovery.h.
Referenced by AUDIO_IO_Init().
#define AUDIO_RESET_PIN GPIO_PIN_4 |
Definition at line 246 of file stm32f411e_discovery.h.
Referenced by AUDIO_IO_Init(), and BSP_AUDIO_OUT_Stop().
#define CODEC_AUDIO_POWER_OFF | ( | ) | HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET) |
Definition at line 241 of file stm32f411e_discovery.h.
Referenced by AUDIO_IO_Init().
#define CODEC_AUDIO_POWER_ON | ( | ) | HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_SET) |
Definition at line 242 of file stm32f411e_discovery.h.
Referenced by AUDIO_IO_Init().
#define DISCOVERY_I2Cx I2C1 |
Definition at line 168 of file stm32f411e_discovery.h.
Referenced by I2Cx_Init().
#define DISCOVERY_I2Cx_AF GPIO_AF4_I2C1 |
Definition at line 175 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_CLOCK_ENABLE | ( | ) | __HAL_RCC_I2C1_CLK_ENABLE() |
Definition at line 169 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_ER_IRQn I2C1_ER_IRQn |
Definition at line 182 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_EV_IRQn I2C1_EV_IRQn |
Definition at line 181 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_FORCE_RESET | ( | ) | __HAL_RCC_I2C1_FORCE_RESET() |
Definition at line 177 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 174 of file stm32f411e_discovery.h.
#define DISCOVERY_I2Cx_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 173 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_GPIO_PORT GPIOB /* GPIOB */ |
Definition at line 170 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_RELEASE_RESET | ( | ) | __HAL_RCC_I2C1_RELEASE_RESET() |
Definition at line 178 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_SCL_PIN GPIO_PIN_6 /* PB.06 */ |
Definition at line 171 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_I2Cx_SDA_PIN GPIO_PIN_9 /* PB.09 */ |
Definition at line 172 of file stm32f411e_discovery.h.
Referenced by I2Cx_MspInit().
#define DISCOVERY_SPIx SPI1 |
Definition at line 189 of file stm32f411e_discovery.h.
Referenced by SPIx_Init().
#define DISCOVERY_SPIx_AF GPIO_AF5_SPI1 |
Definition at line 192 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_CLOCK_ENABLE | ( | ) | __HAL_RCC_SPI1_CLK_ENABLE() |
Definition at line 190 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 194 of file stm32f411e_discovery.h.
#define DISCOVERY_SPIx_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 193 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_GPIO_PORT GPIOA /* GPIOA */ |
Definition at line 191 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_MISO_PIN GPIO_PIN_6 /* PA.06 */ |
Definition at line 196 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_MOSI_PIN GPIO_PIN_7 /* PA.07 */ |
Definition at line 197 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_SCK_PIN GPIO_PIN_5 /* PA.05 */ |
Definition at line 195 of file stm32f411e_discovery.h.
Referenced by SPIx_MspInit().
#define DUMMY_BYTE ((uint8_t)0x00) |
Definition at line 211 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Read().
#define GYRO_CS_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 222 of file stm32f411e_discovery.h.
#define GYRO_CS_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 221 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_CS_GPIO_PORT GPIOE /* GPIOE */ |
GYRO SPI Interface pins.
Definition at line 220 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_CS_HIGH | ( | ) | HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET) |
Definition at line 215 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init(), GYRO_IO_Read(), and GYRO_IO_Write().
#define GYRO_CS_LOW | ( | ) | HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_RESET) |
Definition at line 214 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Read(), and GYRO_IO_Write().
#define GYRO_CS_PIN GPIO_PIN_3 /* PE.03 */ |
Definition at line 223 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_INT1_EXTI_IRQn EXTI0_IRQn |
Definition at line 229 of file stm32f411e_discovery.h.
#define GYRO_INT1_PIN GPIO_PIN_0 /* PE.00 */ |
Definition at line 228 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_INT2_EXTI_IRQn EXTI1_IRQn |
Definition at line 231 of file stm32f411e_discovery.h.
#define GYRO_INT2_PIN GPIO_PIN_1 /* PE.01 */ |
Definition at line 230 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_INT_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 227 of file stm32f411e_discovery.h.
#define GYRO_INT_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 226 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define GYRO_INT_GPIO_PORT GPIOE /* GPIOE */ |
Definition at line 225 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Init().
#define I2Cx_MAX_COMMUNICATION_FREQ ((uint32_t) 100000) |
Definition at line 186 of file stm32f411e_discovery.h.
Referenced by I2Cx_Init().
#define I2Cx_TIMEOUT_MAX 0xA000 /*<! The value of the maximal timeout for I2C waiting loops */ |
Definition at line 185 of file stm32f411e_discovery.h.
#define MULTIPLEBYTE_CMD ((uint8_t)0x40) |
Definition at line 209 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Read(), and GYRO_IO_Write().
#define READWRITE_CMD ((uint8_t)0x80) |
Definition at line 207 of file stm32f411e_discovery.h.
Referenced by GYRO_IO_Read().
#define SPIx_TIMEOUT_MAX ((uint32_t)0x1000) |
Definition at line 203 of file stm32f411e_discovery.h.
Generated on Fri Jan 20 2017 11:38:17 for STM32F411E-Discovery BSP User Manual by 1.7.6.1