L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
spi.c File Reference

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

#include "spi.h"
Include dependency graph for spi.c:

Go to the source code of this file.

Functions

void MX_SPI1_Init (void)
 Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX. Sets clock polarity/phase, data size, baud-rate prescaler, and NSS management for communication with the AT25EU0041A external flash chip.
void HAL_SPI_MspInit (SPI_HandleTypeDef *spiHandle)
void HAL_SPI_MspDeInit (SPI_HandleTypeDef *spiHandle)
void MX_SPI1_DeInit (void)
 Deinitialize SPI1 peripheral for low power mode.

Variables

SPI_HandleTypeDef hspi1

Detailed Description

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

Attention

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

Definition in file spi.c.

Function Documentation

◆ HAL_SPI_MspDeInit()

void HAL_SPI_MspDeInit ( SPI_HandleTypeDef * spiHandle)

SPI1 GPIO Configuration PA5 ------> SPI1_SCK PA6 ------> SPI1_MISO PA7 ------> SPI1_MOSI

Definition at line 95 of file spi.c.

◆ HAL_SPI_MspInit()

void HAL_SPI_MspInit ( SPI_HandleTypeDef * spiHandle)

SPI1 GPIO Configuration PA5 ------> SPI1_SCK PA6 ------> SPI1_MISO PA7 ------> SPI1_MOSI

Definition at line 64 of file spi.c.

◆ MX_SPI1_DeInit()

void MX_SPI1_DeInit ( void )

Deinitialize SPI1 peripheral for low power mode.

Deinitialise SPI1 peripheral to reduce current consumption in low-power mode. Call before entering STOP or OFF mode; call MX_SPI1_Init() again after wakeup.

Definition at line 130 of file spi.c.

References hspi1.

Referenced by PWR_EnterOffMode(), and PWR_EnterStopMode().

Here is the caller graph for this function:

◆ MX_SPI1_Init()

void MX_SPI1_Init ( void )

Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX. Sets clock polarity/phase, data size, baud-rate prescaler, and NSS management for communication with the AT25EU0041A external flash chip.

Definition at line 30 of file spi.c.

References Error_Handler(), and hspi1.

Referenced by main(), and PWR_ExitStopMode().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ hspi1

SPI_HandleTypeDef hspi1

Definition at line 27 of file spi.c.

Referenced by MX_SPI1_DeInit(), and MX_SPI1_Init().