firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
stm32h7xx_hal_msp.c File Reference

This file provides code for the MSP Initialization and de-Initialization codes. More...

#include "main.h"
Include dependency graph for stm32h7xx_hal_msp.c:

Functions

void HAL_MspInit (void)
void HAL_ADC_MspInit (ADC_HandleTypeDef *hadc)
 ADC MSP Initialization This function configures the hardware resources used in this example.
void HAL_ADC_MspDeInit (ADC_HandleTypeDef *hadc)
 ADC MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_CRC_MspInit (CRC_HandleTypeDef *hcrc)
 CRC MSP Initialization This function configures the hardware resources used in this example.
void HAL_CRC_MspDeInit (CRC_HandleTypeDef *hcrc)
 CRC MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_FDCAN_MspInit (FDCAN_HandleTypeDef *hfdcan)
 FDCAN MSP Initialization This function configures the hardware resources used in this example.
void HAL_FDCAN_MspDeInit (FDCAN_HandleTypeDef *hfdcan)
 FDCAN MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_SPI_MspInit (SPI_HandleTypeDef *hspi)
 SPI MSP Initialization This function configures the hardware resources used in this example.
void HAL_SPI_MspDeInit (SPI_HandleTypeDef *hspi)
 SPI MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_TIM_Base_MspInit (TIM_HandleTypeDef *htim_base)
 TIM_Base MSP Initialization This function configures the hardware resources used in this example.
void HAL_TIM_Base_MspDeInit (TIM_HandleTypeDef *htim_base)
 TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_UART_MspInit (UART_HandleTypeDef *huart)
 UART MSP Initialization This function configures the hardware resources used in this example.
void HAL_UART_MspDeInit (UART_HandleTypeDef *huart)
 UART MSP De-Initialization This function freeze the hardware resources used in this example.

Variables

DMA_HandleTypeDef hdma_adc1
DMA_HandleTypeDef hdma_adc2
DMA_HandleTypeDef hdma_spi4_rx
DMA_HandleTypeDef hdma_spi4_tx
DMA_HandleTypeDef hdma_uart4_rx
DMA_HandleTypeDef hdma_uart4_tx
static uint32_t HAL_RCC_ADC12_CLK_ENABLED = 0
static uint32_t HAL_RCC_FDCAN_CLK_ENABLED = 0

Detailed Description

This file provides code for the MSP Initialization and de-Initialization codes.

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.

Function Documentation

◆ HAL_ADC_MspDeInit()

void HAL_ADC_MspDeInit ( ADC_HandleTypeDef * hadc)

ADC MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
hadcADC handle pointer
Return values
None

ADC1 GPIO Configuration PA6 ------> ADC1_INP3 PF12 ------> ADC1_INP6

ADC2 GPIO Configuration PA4 ------> ADC2_INP18 PA5 ------> ADC2_INP19 PA7 ------> ADC2_INP7

◆ HAL_ADC_MspInit()

void HAL_ADC_MspInit ( ADC_HandleTypeDef * hadc)

ADC MSP Initialization This function configures the hardware resources used in this example.

Parameters
hadcADC handle pointer
Return values
None

ADC1 GPIO Configuration PA6 ------> ADC1_INP3 PF12 ------> ADC1_INP6

ADC2 GPIO Configuration PA4 ------> ADC2_INP18 PA5 ------> ADC2_INP19 PA7 ------> ADC2_INP7

Here is the call graph for this function:

◆ HAL_CRC_MspDeInit()

void HAL_CRC_MspDeInit ( CRC_HandleTypeDef * hcrc)

CRC MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
hcrcCRC handle pointer
Return values
None

◆ HAL_CRC_MspInit()

void HAL_CRC_MspInit ( CRC_HandleTypeDef * hcrc)

CRC MSP Initialization This function configures the hardware resources used in this example.

Parameters
hcrcCRC handle pointer
Return values
None

◆ HAL_FDCAN_MspDeInit()

void HAL_FDCAN_MspDeInit ( FDCAN_HandleTypeDef * hfdcan)

FDCAN MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
hfdcanFDCAN handle pointer
Return values
None

FDCAN1 GPIO Configuration PA11 ------> FDCAN1_RX PA12 ------> FDCAN1_TX

FDCAN2 GPIO Configuration PB12 ------> FDCAN2_RX PB13 ------> FDCAN2_TX

FDCAN3 GPIO Configuration PD12 ------> FDCAN3_RX PD13 ------> FDCAN3_TX

◆ HAL_FDCAN_MspInit()

void HAL_FDCAN_MspInit ( FDCAN_HandleTypeDef * hfdcan)

FDCAN MSP Initialization This function configures the hardware resources used in this example.

Parameters
hfdcanFDCAN handle pointer
Return values
None

FDCAN1 GPIO Configuration PA11 ------> FDCAN1_RX PA12 ------> FDCAN1_TX

FDCAN2 GPIO Configuration PB12 ------> FDCAN2_RX PB13 ------> FDCAN2_TX

FDCAN3 GPIO Configuration PD12 ------> FDCAN3_RX PD13 ------> FDCAN3_TX

◆ HAL_MspInit()

void HAL_MspInit ( void )

Initializes the Global MSP.

◆ HAL_SPI_MspDeInit()

void HAL_SPI_MspDeInit ( SPI_HandleTypeDef * hspi)

SPI MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
hspiSPI handle pointer
Return values
None

SPI4 GPIO Configuration PE2 ------> SPI4_SCK PE5 ------> SPI4_MISO PE6 ------> SPI4_MOSI

◆ HAL_SPI_MspInit()

void HAL_SPI_MspInit ( SPI_HandleTypeDef * hspi)

SPI MSP Initialization This function configures the hardware resources used in this example.

Parameters
hspiSPI handle pointer
Return values
None

Initializes the peripherals clock

SPI4 GPIO Configuration PE2 ------> SPI4_SCK PE5 ------> SPI4_MISO PE6 ------> SPI4_MOSI

Here is the call graph for this function:

◆ HAL_TIM_Base_MspDeInit()

void HAL_TIM_Base_MspDeInit ( TIM_HandleTypeDef * htim_base)

TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
htim_baseTIM_Base handle pointer
Return values
None

◆ HAL_TIM_Base_MspInit()

void HAL_TIM_Base_MspInit ( TIM_HandleTypeDef * htim_base)

TIM_Base MSP Initialization This function configures the hardware resources used in this example.

Parameters
htim_baseTIM_Base handle pointer
Return values
None

◆ HAL_UART_MspDeInit()

void HAL_UART_MspDeInit ( UART_HandleTypeDef * huart)

UART MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
huartUART handle pointer
Return values
None

UART4 GPIO Configuration PD0 ------> UART4_RX PD1 ------> UART4_TX

◆ HAL_UART_MspInit()

void HAL_UART_MspInit ( UART_HandleTypeDef * huart)

UART MSP Initialization This function configures the hardware resources used in this example.

Parameters
huartUART handle pointer
Return values
None

Initializes the peripherals clock

UART4 GPIO Configuration PD0 ------> UART4_RX PD1 ------> UART4_TX

Here is the call graph for this function:

Variable Documentation

◆ HAL_RCC_ADC12_CLK_ENABLED

uint32_t HAL_RCC_ADC12_CLK_ENABLED = 0
static

◆ HAL_RCC_FDCAN_CLK_ENABLED

uint32_t HAL_RCC_FDCAN_CLK_ENABLED = 0
static

◆ hdma_adc1

DMA_HandleTypeDef hdma_adc1
extern

◆ hdma_adc2

DMA_HandleTypeDef hdma_adc2
extern

◆ hdma_spi4_rx

DMA_HandleTypeDef hdma_spi4_rx
extern

◆ hdma_spi4_tx

DMA_HandleTypeDef hdma_spi4_tx
extern

◆ hdma_uart4_rx

DMA_HandleTypeDef hdma_uart4_rx
extern

◆ hdma_uart4_tx

DMA_HandleTypeDef hdma_uart4_tx
extern