Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
spi.c File Reference

This file provides code for the configuration of the SPI instances. More...

#include "spi.h"

Functions

void MX_SPI1_Init (void)
void HAL_SPI_MspInit (SPI_HandleTypeDef *spiHandle)
void HAL_SPI_MspDeInit (SPI_HandleTypeDef *spiHandle)

Variables

SPI_HandleTypeDef hspi1
DMA_HandleTypeDef hdma_spi1_rx
DMA_HandleTypeDef hdma_spi1_tx

Detailed Description

This file provides code for the configuration of the SPI instances.

Attention

Copyright (c) 2023 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ HAL_SPI_MspDeInit()

void HAL_SPI_MspDeInit ( SPI_HandleTypeDef * spiHandle)

SPI1 GPIO Configuration PB4 ------> SPI1_MISO PB3 ------> SPI1_SCK PA7 ------> SPI1_MOSI

◆ HAL_SPI_MspInit()

void HAL_SPI_MspInit ( SPI_HandleTypeDef * spiHandle)

SPI1 GPIO Configuration PB4 ------> SPI1_MISO PB3 ------> SPI1_SCK PA7 ------> SPI1_MOSI