HAL
__HAL_SPI_ENABLE is only used within HAL.
 
Symbols
loading...
Files
loading...

__HAL_SPI_ENABLE macro

Enable the SPI peripheral.

Syntax

#define __HAL_SPI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE)

Arguments

__HANDLE__

specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral.

Return value

None

References

LocationText
stm32f4xx_hal_spi.h:454
#define __HAL_SPI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE)
stm32f4xx_hal_spi.c:831
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1008
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1215
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1459
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1554
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1644
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1746
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:1860
__HAL_SPI_ENABLE(hspi);
stm32f4xx_hal_spi.c:2002
__HAL_SPI_ENABLE(hspi);