STM32L476G-Discovery BSP User Manual
|
Defines | |
#define | DISCOVERY_SPIx SPI2 |
#define | DISCOVERY_SPIx_CLOCK_ENABLE() __HAL_RCC_SPI2_CLK_ENABLE() |
#define | DISCOVERY_SPIx_CLOCK_DISABLE() __HAL_RCC_SPI2_CLK_DISABLE() |
#define | DISCOVERY_SPIx_GPIO_PORT GPIOD /* GPIOD */ |
#define | DISCOVERY_SPIx_AF GPIO_AF5_SPI2 |
#define | DISCOVERY_SPIx_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | DISCOVERY_SPIx_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | DISCOVERY_SPIx_GPIO_FORCE_RESET() __HAL_RCC_SPI2_FORCE_RESET() |
#define | DISCOVERY_SPIx_GPIO_RELEASE_RESET() __HAL_RCC_SPI2_RELEASE_RESET() |
#define | DISCOVERY_SPIx_SCK_PIN GPIO_PIN_1 /* PD.01*/ |
#define | DISCOVERY_SPIx_MISO_PIN GPIO_PIN_3 /* PD.03 */ |
#define | DISCOVERY_SPIx_MOSI_PIN GPIO_PIN_4 /* PD.04 */ |
#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 | DISCOVERY_I2C1_SCL_GPIO_PORT GPIOB |
#define | DISCOVERY_I2C1_SDA_GPIO_PORT GPIOB |
#define | DISCOVERY_I2C1_SCL_PIN GPIO_PIN_6 |
#define | DISCOVERY_I2C1_SDA_PIN GPIO_PIN_7 |
#define | DISCOVERY_I2C1_SCL_SDA_AF GPIO_AF4_I2C1 |
#define | DISCOVERY_I2C1 I2C1 |
#define | DISCOVERY_I2C1_CLK_ENABLE() __HAL_RCC_I2C1_CLK_ENABLE() |
#define | DISCOVERY_I2C1_CLK_DISABLE() __HAL_RCC_I2C1_CLK_DISABLE() |
#define | DISCOVERY_I2C1_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | DISCOVERY_I2C1_SCL_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | DISCOVERY_I2C1_SDA_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | DISCOVERY_I2C1_SCL_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | DISCOVERY_I2C1_FORCE_RESET() __HAL_RCC_I2C1_FORCE_RESET() |
#define | DISCOVERY_I2C1_RELEASE_RESET() __HAL_RCC_I2C1_RELEASE_RESET() |
#define | DISCOVERY_I2C1_EV_IRQn I2C1_EV_IRQn |
#define | DISCOVERY_I2C1_EV_IRQHandler I2C1_EV_IRQHandler |
#define | DISCOVERY_I2C1_ER_IRQn I2C1_ER_IRQn |
#define | DISCOVERY_I2C1_ER_IRQHandler I2C1_ER_IRQHandler |
#define | AUDIO_I2C_ADDRESS ((uint16_t) 0x94) |
#define | DISCOVERY_I2C1_TIMEOUT_MAX 3000 |
#define | DISCOVERY_I2C2_SCL_PIN GPIO_PIN_10 |
#define | DISCOVERY_I2C2_SCL_GPIO_PORT GPIOB |
#define | DISCOVERY_I2C2_SDA_PIN GPIO_PIN_11 |
#define | DISCOVERY_I2C2_SDA_GPIO_PORT GPIOB |
#define | DISCOVERY_I2C2_SCL_SDA_AF GPIO_AF4_I2C2 |
#define | DISCOVERY_I2C2 I2C2 |
#define | DISCOVERY_I2C2_CLK_ENABLE() __HAL_RCC_I2C2_CLK_ENABLE() |
#define | DISCOVERY_I2C2_CLK_DISABLE() __HAL_RCC_I2C2_CLK_DISABLE() |
#define | DISCOVERY_I2C2_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | DISCOVERY_I2C2_SCL_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | DISCOVERY_I2C2_SDA_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | DISCOVERY_I2C2_SCL_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | DISCOVERY_I2C2_FORCE_RESET() __HAL_RCC_I2C2_FORCE_RESET() |
#define | DISCOVERY_I2C2_RELEASE_RESET() __HAL_RCC_I2C2_RELEASE_RESET() |
#define | DISCOVERY_I2C2_EV_IRQn I2C2_EV_IRQn |
#define | DISCOVERY_I2C2_ER_IRQn I2C2_ER_IRQn |
#define | IDD_I2C_ADDRESS ((uint16_t) 0x84) |
#define | DISCOVERY_I2C2_TIMEOUT_MAX 3000 |
#define | ACCELERO_CS_LOW() HAL_GPIO_WritePin(ACCELERO_CS_GPIO_PORT, ACCELERO_CS_PIN, GPIO_PIN_RESET) |
Accelerometer Chip Select macro definition. | |
#define | ACCELERO_CS_HIGH() HAL_GPIO_WritePin(ACCELERO_CS_GPIO_PORT, ACCELERO_CS_PIN, GPIO_PIN_SET) |
#define | ACCELERO_CS_GPIO_PORT GPIOE /* GPIOE */ |
Accelerometer SPI Interface pins. | |
#define | ACCELERO_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | ACCELERO_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | ACCELERO_CS_PIN GPIO_PIN_0 /* PE.00 */ |
#define | ACCELERO_XLINT_GPIO_PORT GPIOE /* GPIOE */ |
Accelerometer Interrupt pins. | |
#define | ACCELERO_XLINT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | ACCELERO_XLINT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | ACCELERO_XLINT_PIN GPIO_PIN_1 /* PE.01 */ |
#define | ACCELERO_XLINT_EXTI_IRQn EXTI1_IRQn |
#define | MAGNETO_CS_LOW() HAL_GPIO_WritePin(MAGNETO_CS_GPIO_PORT, MAGNETO_CS_PIN, GPIO_PIN_RESET) |
Magnetometer Chip Select macro definition. | |
#define | MAGNETO_CS_HIGH() HAL_GPIO_WritePin(MAGNETO_CS_GPIO_PORT, MAGNETO_CS_PIN, GPIO_PIN_SET) |
#define | MAGNETO_CS_GPIO_PORT GPIOC /* GPIOC */ |
Magnetometer SPI Interface pins. | |
#define | MAGNETO_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | MAGNETO_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | MAGNETO_CS_PIN GPIO_PIN_0 /* PC.00 */ |
#define | MAGNETO_INT_GPIO_PORT GPIOC /* GPIOC */ |
Magnetometer Interrupt pins. | |
#define | MAGNETO_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | MAGNETO_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | MAGNETO_INT1_PIN GPIO_PIN_1 /* PC.01 */ |
#define | MAGNETO_INT1_EXTI_IRQn EXTI1_IRQn |
#define | MAGNETO_DRDY_GPIO_PORT GPIOC /* GPIOC */ |
#define | MAGNETO_DRDY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | MAGNETO_DRDY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | MAGNETO_DRDY_PIN GPIO_PIN_2 /* PC.01 */ |
#define | CODEC_AUDIO_POWER_OFF() HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET) |
Audio codec chip reset definition. | |
#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_GPIOE_CLK_ENABLE() |
#define | AUDIO_RESET_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | AUDIO_RESET_PIN GPIO_PIN_3 |
#define | AUDIO_RESET_GPIO GPIOE |
#define | GYRO_CS_LOW() HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_RESET) |
Gyroscope Chip Select macro definition. | |
#define | GYRO_CS_HIGH() HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET) |
#define | GYRO_CS_GPIO_PORT GPIOD /* GPIOD */ |
Gyroscope SPI Interface pins. | |
#define | GYRO_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | GYRO_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | GYRO_CS_PIN GPIO_PIN_7 /* PD.07 */ |
#define | GYRO_INT1_GPIO_PORT GPIOD /* GPIOD */ |
Gyroscope Interrupt pins. | |
#define | GYRO_INT1_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | GYRO_INT1_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | GYRO_INT1_PIN GPIO_PIN_2 /* PD.02 */ |
#define | GYRO_INT1_EXTI_IRQn EXTI2_IRQn |
#define | GYRO_INT2_GPIO_PORT GPIOB /* GPIOB */ |
#define | GYRO_INT2_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | GYRO_INT2_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | GYRO_INT2_PIN GPIO_PIN_8 /* PB.08 */ |
#define | GYRO_INT2_EXTI_IRQn EXTI9_5_IRQn |
#define | IDD_INT_GPIO_PORT GPIOC /* GPIOC */ |
Idd current measurement interface pins. | |
#define | IDD_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | IDD_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | IDD_INT_PIN GPIO_PIN_13 /* PC.13 */ |
#define | IDD_INT_EXTI_IRQn EXTI15_10_IRQn |
#define | IDD_WAKEUP_GPIO_PORT GPIOA /* GPIOA */ |
#define | IDD_WAKEUP_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | IDD_WAKEUP_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | IDD_WAKEUP_PIN GPIO_PIN_4 /* PA.04 */ |
Define Documentation
#define ACCELERO_CS_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 406 of file stm32l476g_discovery.h.
#define ACCELERO_CS_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 405 of file stm32l476g_discovery.h.
Referenced by ACCELERO_IO_DeInit(), ACCELERO_IO_Init(), and GYRO_IO_Init().
#define ACCELERO_CS_GPIO_PORT GPIOE /* GPIOE */ |
Accelerometer SPI Interface pins.
Definition at line 404 of file stm32l476g_discovery.h.
Referenced by ACCELERO_IO_DeInit(), ACCELERO_IO_Init(), and GYRO_IO_Init().
#define ACCELERO_CS_HIGH | ( | ) | HAL_GPIO_WritePin(ACCELERO_CS_GPIO_PORT, ACCELERO_CS_PIN, GPIO_PIN_SET) |
Definition at line 399 of file stm32l476g_discovery.h.
Referenced by ACCELERO_IO_DeInit(), ACCELERO_IO_Init(), ACCELERO_IO_Read(), ACCELERO_IO_Write(), and GYRO_IO_Init().
#define ACCELERO_CS_LOW | ( | ) | HAL_GPIO_WritePin(ACCELERO_CS_GPIO_PORT, ACCELERO_CS_PIN, GPIO_PIN_RESET) |
Accelerometer Chip Select macro definition.
Definition at line 398 of file stm32l476g_discovery.h.
Referenced by ACCELERO_IO_Read(), and ACCELERO_IO_Write().
#define ACCELERO_CS_PIN GPIO_PIN_0 /* PE.00 */ |
Definition at line 407 of file stm32l476g_discovery.h.
Referenced by ACCELERO_IO_DeInit(), ACCELERO_IO_Init(), and GYRO_IO_Init().
#define ACCELERO_XLINT_EXTI_IRQn EXTI1_IRQn |
Definition at line 416 of file stm32l476g_discovery.h.
#define ACCELERO_XLINT_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 414 of file stm32l476g_discovery.h.
#define ACCELERO_XLINT_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 413 of file stm32l476g_discovery.h.
#define ACCELERO_XLINT_GPIO_PORT GPIOE /* GPIOE */ |
Accelerometer Interrupt pins.
Definition at line 412 of file stm32l476g_discovery.h.
#define ACCELERO_XLINT_PIN GPIO_PIN_1 /* PE.01 */ |
Definition at line 415 of file stm32l476g_discovery.h.
#define AUDIO_I2C_ADDRESS ((uint16_t) 0x94) |
Definition at line 335 of file stm32l476g_discovery.h.
Referenced by AUDIO_CODEC_Reset(), 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 GPIOE |
Definition at line 461 of file stm32l476g_discovery.h.
Referenced by AUDIO_IO_Init().
#define AUDIO_RESET_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 459 of file stm32l476g_discovery.h.
#define AUDIO_RESET_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 458 of file stm32l476g_discovery.h.
Referenced by AUDIO_IO_Init().
#define AUDIO_RESET_PIN GPIO_PIN_3 |
Definition at line 460 of file stm32l476g_discovery.h.
Referenced by AUDIO_IO_Init().
#define CODEC_AUDIO_POWER_OFF | ( | ) | HAL_GPIO_WritePin(AUDIO_RESET_GPIO, AUDIO_RESET_PIN, GPIO_PIN_RESET) |
Audio codec chip reset definition.
Definition at line 454 of file stm32l476g_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 455 of file stm32l476g_discovery.h.
Referenced by AUDIO_IO_Init().
#define DISCOVERY_I2C1 I2C1 |
Definition at line 302 of file stm32l476g_discovery.h.
Referenced by I2C1_Init(), I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_CLK_DISABLE | ( | ) | __HAL_RCC_I2C1_CLK_DISABLE() |
Definition at line 304 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit().
#define DISCOVERY_I2C1_CLK_ENABLE | ( | ) | __HAL_RCC_I2C1_CLK_ENABLE() |
Definition at line 303 of file stm32l476g_discovery.h.
Referenced by I2C1_MspInit().
#define DISCOVERY_I2C1_ER_IRQHandler I2C1_ER_IRQHandler |
Definition at line 316 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C1_ER_IRQn I2C1_ER_IRQn |
Definition at line 315 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_EV_IRQHandler I2C1_EV_IRQHandler |
Definition at line 314 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C1_EV_IRQn I2C1_EV_IRQn |
Definition at line 313 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_FORCE_RESET | ( | ) | __HAL_RCC_I2C1_FORCE_RESET() |
Definition at line 309 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_RELEASE_RESET | ( | ) | __HAL_RCC_I2C1_RELEASE_RESET() |
Definition at line 310 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_SCL_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 308 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C1_SCL_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 306 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_SCL_GPIO_PORT GPIOB |
Definition at line 290 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_SCL_PIN GPIO_PIN_6 |
Definition at line 293 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_SCL_SDA_AF GPIO_AF4_I2C1 |
Definition at line 299 of file stm32l476g_discovery.h.
Referenced by I2C1_MspInit().
#define DISCOVERY_I2C1_SDA_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 307 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C1_SDA_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 305 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_SDA_GPIO_PORT GPIOB |
Definition at line 291 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C1_SDA_PIN GPIO_PIN_7 |
Definition at line 294 of file stm32l476g_discovery.h.
Referenced by I2C1_MspDeInit(), and I2C1_MspInit().
#define DISCOVERY_I2C1_TIMEOUT_MAX 3000 |
Definition at line 342 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C2 I2C2 |
Definition at line 355 of file stm32l476g_discovery.h.
Referenced by I2C2_Init(), I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_CLK_DISABLE | ( | ) | __HAL_RCC_I2C2_CLK_DISABLE() |
Definition at line 357 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit().
#define DISCOVERY_I2C2_CLK_ENABLE | ( | ) | __HAL_RCC_I2C2_CLK_ENABLE() |
Definition at line 356 of file stm32l476g_discovery.h.
Referenced by I2C2_MspInit().
#define DISCOVERY_I2C2_ER_IRQn I2C2_ER_IRQn |
Definition at line 367 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_EV_IRQn I2C2_EV_IRQn |
Definition at line 366 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_FORCE_RESET | ( | ) | __HAL_RCC_I2C2_FORCE_RESET() |
Definition at line 362 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_RELEASE_RESET | ( | ) | __HAL_RCC_I2C2_RELEASE_RESET() |
Definition at line 363 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_SCL_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 361 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C2_SCL_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 359 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_SCL_GPIO_PORT GPIOB |
Definition at line 350 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_SCL_PIN GPIO_PIN_10 |
Definition at line 349 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_SCL_SDA_AF GPIO_AF4_I2C2 |
Definition at line 353 of file stm32l476g_discovery.h.
Referenced by I2C2_MspInit().
#define DISCOVERY_I2C2_SDA_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 360 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C2_SDA_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 358 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_SDA_GPIO_PORT GPIOB |
Definition at line 352 of file stm32l476g_discovery.h.
#define DISCOVERY_I2C2_SDA_PIN GPIO_PIN_11 |
Definition at line 351 of file stm32l476g_discovery.h.
Referenced by I2C2_MspDeInit(), and I2C2_MspInit().
#define DISCOVERY_I2C2_TIMEOUT_MAX 3000 |
Definition at line 391 of file stm32l476g_discovery.h.
#define DISCOVERY_SPIx SPI2 |
Definition at line 257 of file stm32l476g_discovery.h.
Referenced by SPIx_Init().
#define DISCOVERY_SPIx_AF GPIO_AF5_SPI2 |
Definition at line 261 of file stm32l476g_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_CLOCK_DISABLE | ( | ) | __HAL_RCC_SPI2_CLK_DISABLE() |
Definition at line 259 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit().
#define DISCOVERY_SPIx_CLOCK_ENABLE | ( | ) | __HAL_RCC_SPI2_CLK_ENABLE() |
Definition at line 258 of file stm32l476g_discovery.h.
Referenced by SPIx_MspInit().
#define DISCOVERY_SPIx_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 263 of file stm32l476g_discovery.h.
#define DISCOVERY_SPIx_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 262 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit(), and SPIx_MspInit().
#define DISCOVERY_SPIx_GPIO_FORCE_RESET | ( | ) | __HAL_RCC_SPI2_FORCE_RESET() |
Definition at line 264 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit().
#define DISCOVERY_SPIx_GPIO_PORT GPIOD /* GPIOD */ |
Definition at line 260 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit(), and SPIx_MspInit().
#define DISCOVERY_SPIx_GPIO_RELEASE_RESET | ( | ) | __HAL_RCC_SPI2_RELEASE_RESET() |
Definition at line 265 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit().
#define DISCOVERY_SPIx_MISO_PIN GPIO_PIN_3 /* PD.03 */ |
Definition at line 267 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit(), and SPIx_MspInit().
#define DISCOVERY_SPIx_MOSI_PIN GPIO_PIN_4 /* PD.04 */ |
Definition at line 268 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit(), and SPIx_MspInit().
#define DISCOVERY_SPIx_SCK_PIN GPIO_PIN_1 /* PD.01*/ |
Definition at line 266 of file stm32l476g_discovery.h.
Referenced by SPIx_MspDeInit(), and SPIx_MspInit().
#define DUMMY_BYTE ((uint8_t)0x00) |
Definition at line 281 of file stm32l476g_discovery.h.
#define GYRO_CS_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 475 of file stm32l476g_discovery.h.
#define GYRO_CS_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 474 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_CS_GPIO_PORT GPIOD /* GPIOD */ |
Gyroscope SPI Interface pins.
Definition at line 473 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_CS_HIGH | ( | ) | HAL_GPIO_WritePin(GYRO_CS_GPIO_PORT, GYRO_CS_PIN, GPIO_PIN_SET) |
Definition at line 468 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), 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) |
Gyroscope Chip Select macro definition.
Definition at line 467 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Read(), and GYRO_IO_Write().
#define GYRO_CS_PIN GPIO_PIN_7 /* PD.07 */ |
Definition at line 476 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT1_EXTI_IRQn EXTI2_IRQn |
Definition at line 486 of file stm32l476g_discovery.h.
#define GYRO_INT1_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 484 of file stm32l476g_discovery.h.
#define GYRO_INT1_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 483 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT1_GPIO_PORT GPIOD /* GPIOD */ |
Gyroscope Interrupt pins.
Definition at line 482 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT1_PIN GPIO_PIN_2 /* PD.02 */ |
Definition at line 485 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT2_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 491 of file stm32l476g_discovery.h.
#define GYRO_INT2_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 489 of file stm32l476g_discovery.h.
#define GYRO_INT2_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 488 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT2_GPIO_PORT GPIOB /* GPIOB */ |
Definition at line 487 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define GYRO_INT2_PIN GPIO_PIN_8 /* PB.08 */ |
Definition at line 490 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_DeInit(), and GYRO_IO_Init().
#define IDD_I2C_ADDRESS ((uint16_t) 0x84) |
Definition at line 384 of file stm32l476g_discovery.h.
Referenced by BSP_IDD_ClearIT(), BSP_IDD_Config(), BSP_IDD_DeInit(), BSP_IDD_DisableIT(), BSP_IDD_EnableIT(), BSP_IDD_ErrorClearIT(), BSP_IDD_ErrorDisableIT(), BSP_IDD_ErrorEnableIT(), BSP_IDD_ErrorGetCode(), BSP_IDD_ErrorGetITStatus(), BSP_IDD_GetITStatus(), BSP_IDD_GetValue(), BSP_IDD_Init(), BSP_IDD_LowPower(), BSP_IDD_Reset(), BSP_IDD_StartMeasure(), and BSP_IDD_WakeUp().
#define IDD_INT_EXTI_IRQn EXTI15_10_IRQn |
Definition at line 513 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), and MFX_IO_ITConfig().
#define IDD_INT_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 511 of file stm32l476g_discovery.h.
#define IDD_INT_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 510 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), and MFX_IO_ITConfig().
#define IDD_INT_GPIO_PORT GPIOC /* GPIOC */ |
Idd current measurement interface pins.
Definition at line 509 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), and MFX_IO_ITConfig().
#define IDD_INT_PIN GPIO_PIN_13 /* PC.13 */ |
Definition at line 512 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), and MFX_IO_ITConfig().
#define IDD_WAKEUP_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 517 of file stm32l476g_discovery.h.
#define IDD_WAKEUP_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 516 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), and MFX_IO_EnableWakeupPin().
#define IDD_WAKEUP_GPIO_PORT GPIOA /* GPIOA */ |
Definition at line 515 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), MFX_IO_EnableWakeupPin(), and MFX_IO_Wakeup().
#define IDD_WAKEUP_PIN GPIO_PIN_4 /* PA.04 */ |
Definition at line 518 of file stm32l476g_discovery.h.
Referenced by MFX_IO_DeInit(), MFX_IO_EnableWakeupPin(), and MFX_IO_Wakeup().
#define MAGNETO_CS_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 430 of file stm32l476g_discovery.h.
#define MAGNETO_CS_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 429 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Init(), MAGNETO_IO_DeInit(), and MAGNETO_IO_Init().
#define MAGNETO_CS_GPIO_PORT GPIOC /* GPIOC */ |
Magnetometer SPI Interface pins.
Definition at line 428 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Init(), MAGNETO_IO_DeInit(), and MAGNETO_IO_Init().
#define MAGNETO_CS_HIGH | ( | ) | HAL_GPIO_WritePin(MAGNETO_CS_GPIO_PORT, MAGNETO_CS_PIN, GPIO_PIN_SET) |
Definition at line 423 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Init(), MAGNETO_IO_DeInit(), MAGNETO_IO_Init(), MAGNETO_IO_Read(), and MAGNETO_IO_Write().
#define MAGNETO_CS_LOW | ( | ) | HAL_GPIO_WritePin(MAGNETO_CS_GPIO_PORT, MAGNETO_CS_PIN, GPIO_PIN_RESET) |
Magnetometer Chip Select macro definition.
Definition at line 422 of file stm32l476g_discovery.h.
Referenced by MAGNETO_IO_Read(), and MAGNETO_IO_Write().
#define MAGNETO_CS_PIN GPIO_PIN_0 /* PC.00 */ |
Definition at line 431 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Init(), MAGNETO_IO_DeInit(), and MAGNETO_IO_Init().
#define MAGNETO_DRDY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 445 of file stm32l476g_discovery.h.
#define MAGNETO_DRDY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 444 of file stm32l476g_discovery.h.
#define MAGNETO_DRDY_GPIO_PORT GPIOC /* GPIOC */ |
Definition at line 443 of file stm32l476g_discovery.h.
#define MAGNETO_DRDY_PIN GPIO_PIN_2 /* PC.01 */ |
Definition at line 446 of file stm32l476g_discovery.h.
Referenced by MAGNETO_IO_DeInit().
#define MAGNETO_INT1_EXTI_IRQn EXTI1_IRQn |
Definition at line 441 of file stm32l476g_discovery.h.
#define MAGNETO_INT1_PIN GPIO_PIN_1 /* PC.01 */ |
Definition at line 440 of file stm32l476g_discovery.h.
Referenced by MAGNETO_IO_DeInit().
#define MAGNETO_INT_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 439 of file stm32l476g_discovery.h.
#define MAGNETO_INT_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 438 of file stm32l476g_discovery.h.
#define MAGNETO_INT_GPIO_PORT GPIOC /* GPIOC */ |
Magnetometer Interrupt pins.
Definition at line 437 of file stm32l476g_discovery.h.
#define MULTIPLEBYTE_CMD ((uint8_t)0x40) |
Definition at line 279 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Read(), and GYRO_IO_Write().
#define READWRITE_CMD ((uint8_t)0x80) |
Definition at line 277 of file stm32l476g_discovery.h.
Referenced by GYRO_IO_Read().
#define SPIx_TIMEOUT_MAX ((uint32_t)0x1000) |
Definition at line 275 of file stm32l476g_discovery.h.
Generated on Tue Jun 23 2015 17:15:45 for STM32L476G-Discovery BSP User Manual by 1.7.6.1