STAR
Cal STAR — firmware, DAQ server, and engine design
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:

Go to the source code of this file.

Functions

void HAL_TIM_MspPostInit (TIM_HandleTypeDef *htim)
void HAL_MspInit (void)
 Initializes the Global MSP.
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_I2C_MspInit (I2C_HandleTypeDef *hi2c)
 I2C MSP Initialization This function configures the hardware resources used in this example.
void HAL_I2C_MspDeInit (I2C_HandleTypeDef *hi2c)
 I2C MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_RTC_MspInit (RTC_HandleTypeDef *hrtc)
 RTC MSP Initialization This function configures the hardware resources used in this example.
void HAL_RTC_MspDeInit (RTC_HandleTypeDef *hrtc)
 RTC MSP De-Initialization This function freeze the hardware resources used in this example.
void HAL_MMC_MspInit (MMC_HandleTypeDef *hmmc)
 MMC MSP Initialization This function configures the hardware resources used in this example.
void HAL_MMC_MspDeInit (MMC_HandleTypeDef *hmmc)
 MMC 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_PWM_MspInit (TIM_HandleTypeDef *htim_pwm)
 TIM_PWM MSP Initialization This function configures 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_PWM_MspDeInit (TIM_HandleTypeDef *htim_pwm)
 TIM_PWM MSP De-Initialization This function freeze 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.

Detailed Description

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

Attention

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

Function Documentation

◆ HAL_MMC_MspDeInit()

void HAL_MMC_MspDeInit ( MMC_HandleTypeDef * hmmc)

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

Parameters
hmmcMMC handle pointer
Return values
None

SDMMC1 GPIO Configuration PC8 ------> SDMMC1_D0 PC9 ------> SDMMC1_D1 PC10 ------> SDMMC1_D2 PC11 ------> SDMMC1_D3 PC12 ------> SDMMC1_CK PD2 ------> SDMMC1_CMD

Definition at line 395 of file stm32h7xx_hal_msp.c.

References __HAL_RCC_SDMMC1_CLK_DISABLE, EMMC_CLK_Pin, EMMC_CMD_GPIO_Port, EMMC_CMD_Pin, EMMC_D0_Pin, EMMC_D1_Pin, EMMC_D2_Pin, EMMC_D3_Pin, GPIOC, HAL_GPIO_DeInit(), HAL_NVIC_DisableIRQ(), SDMMC1, and SDMMC1_IRQn.

◆ HAL_MMC_MspInit()

void HAL_MMC_MspInit ( MMC_HandleTypeDef * hmmc)

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

Parameters
hmmcMMC handle pointer
Return values
None

Initializes the peripherals clock

SDMMC1 GPIO Configuration PC8 ------> SDMMC1_D0 PC9 ------> SDMMC1_D1 PC10 ------> SDMMC1_D2 PC11 ------> SDMMC1_D3 PC12 ------> SDMMC1_CK PD2 ------> SDMMC1_CMD

Definition at line 331 of file stm32h7xx_hal_msp.c.

References __HAL_RCC_GPIOC_CLK_ENABLE, __HAL_RCC_GPIOD_CLK_ENABLE, __HAL_RCC_SDMMC1_CLK_ENABLE, GPIO_InitTypeDef::Alternate, EMMC_CLK_Pin, EMMC_CMD_GPIO_Port, EMMC_CMD_Pin, EMMC_D0_Pin, EMMC_D1_Pin, EMMC_D2_Pin, EMMC_D3_Pin, Error_Handler(), GPIO_AF12_SDMMC1, GPIO_MODE_AF_PP, GPIO_NOPULL, GPIO_SPEED_FREQ_VERY_HIGH, GPIOC, HAL_GPIO_Init(), HAL_NVIC_EnableIRQ(), HAL_NVIC_SetPriority(), HAL_OK, HAL_RCCEx_PeriphCLKConfig(), GPIO_InitTypeDef::Mode, RCC_PeriphCLKInitTypeDef::PeriphClockSelection, GPIO_InitTypeDef::Pin, GPIO_InitTypeDef::Pull, RCC_PERIPHCLK_SDMMC, RCC_SDMMCCLKSOURCE_PLL, SDMMC1, SDMMC1_IRQn, RCC_PeriphCLKInitTypeDef::SdmmcClockSelection, and GPIO_InitTypeDef::Speed.

◆ HAL_MspInit()

__weak void HAL_MspInit ( void )

Initializes the Global MSP.

Initializes the MSP.

Return values
None

Definition at line 64 of file stm32h7xx_hal_msp.c.

References __HAL_RCC_SYSCFG_CLK_ENABLE, HAL_NVIC_SetPriority(), and PendSV_IRQn.

Referenced by HAL_Init().

◆ HAL_TIM_MspPostInit()