Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Initialization and de-initialization functions
[SPI Exported Functions]
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_SPI_Init (SPI_HandleTypeDef *hspi) |
Initialize the SPI according to the specified parameters in the SPI_InitTypeDef and initialize the associated handle. | |
HAL_StatusTypeDef | HAL_SPI_DeInit (SPI_HandleTypeDef *hspi) |
DeInitialize the SPI peripheral. | |
__weak void | HAL_SPI_MspInit (SPI_HandleTypeDef *hspi) |
Initialize the SPI MSP. | |
__weak void | HAL_SPI_MspDeInit (SPI_HandleTypeDef *hspi) |
DeInitialize the SPI MSP. |
Detailed Description
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize and de-initialize the SPIx peripheral: (+) User must implement HAL_SPI_MspInit() function in which he configures all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). (+) Call the function HAL_SPI_Init() to configure the selected device with the selected configuration: (++) Mode (++) Direction (++) Data Size (++) Clock Polarity and Phase (++) NSS Management (++) BaudRate Prescaler (++) FirstBit (++) TIMode (++) CRC Calculation (++) CRC Polynomial if CRC enabled (++) CRC Length, used only with Data8 and Data16 (++) FIFO reception threshold (+) Call the function HAL_SPI_DeInit() to restore the default configuration of the selected SPIx peripheral.
Function Documentation
HAL_StatusTypeDef HAL_SPI_DeInit | ( | SPI_HandleTypeDef * | hspi ) |
DeInitialize the SPI peripheral.
- Parameters:
-
hspi,: pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
- Return values:
-
HAL status
Definition at line 298 of file stm32l4xx_hal_spi.c.
HAL_StatusTypeDef HAL_SPI_Init | ( | SPI_HandleTypeDef * | hspi ) |
Initialize the SPI according to the specified parameters in the SPI_InitTypeDef and initialize the associated handle.
- Parameters:
-
hspi,: pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
- Return values:
-
HAL status
Definition at line 194 of file stm32l4xx_hal_spi.c.
__weak void HAL_SPI_MspDeInit | ( | SPI_HandleTypeDef * | hspi ) |
DeInitialize the SPI MSP.
- Parameters:
-
hspi,: pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
- Return values:
-
None
Definition at line 346 of file stm32l4xx_hal_spi.c.
__weak void HAL_SPI_MspInit | ( | SPI_HandleTypeDef * | hspi ) |
Initialize the SPI MSP.
- Parameters:
-
hspi,: pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
- Return values:
-
None
Definition at line 330 of file stm32l4xx_hal_spi.c.
Generated on Tue Jul 12 2022 17:38:54 by
