Avalon Firmware
 
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_SPI2_Init (void)
 
void HAL_SPI_MspInit (SPI_HandleTypeDef *spiHandle)
 
void HAL_SPI_MspDeInit (SPI_HandleTypeDef *spiHandle)
 

Variables

SPI_HandleTypeDef hspi2
 

Detailed Description

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

Attention

Copyright (c) 2024 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)

SPI2 GPIO Configuration PB12 ------> SPI2_NSS PB13 ------> SPI2_SCK PB14 ------> SPI2_MISO PB15 ------> SPI2_MOSI

◆ HAL_SPI_MspInit()

void HAL_SPI_MspInit ( SPI_HandleTypeDef * spiHandle)

SPI2 GPIO Configuration PB12 ------> SPI2_NSS PB13 ------> SPI2_SCK PB14 ------> SPI2_MISO PB15 ------> SPI2_MOSI

◆ MX_SPI2_Init()

void MX_SPI2_Init ( void )

Variable Documentation

◆ hspi2

SPI_HandleTypeDef hspi2