F439_CPP_MPL3115A2_Project_01 1.0
STM32F439 MPL3115A2 pressure and temperature tutorial
Loading...
Searching...
No Matches
stm32f4xx_hal_msp.c File Reference

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

#include "main.h"
#include <stdio.h>

Go to the source code of this file.

Functions

void HAL_MspInit (void)
 
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_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 stm32f4xx_hal_msp.c.

Function Documentation

◆ HAL_I2C_MspDeInit()

void HAL_I2C_MspDeInit ( I2C_HandleTypeDef * hi2c)

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

Parameters
hi2cI2C handle pointer
Return values
None

I2C1 GPIO Configuration PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA

Definition at line 123 of file stm32f4xx_hal_msp.c.

◆ HAL_I2C_MspInit()

void HAL_I2C_MspInit ( I2C_HandleTypeDef * hi2c)

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

Parameters
hi2cI2C handle pointer
Return values
None

I2C1 GPIO Configuration PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA

Definition at line 86 of file stm32f4xx_hal_msp.c.

◆ HAL_MspInit()

void HAL_MspInit ( void )

Initializes the Global MSP.

Definition at line 63 of file stm32f4xx_hal_msp.c.

◆ 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

USART1 GPIO Configuration PA9 ------> USART1_TX PA10 ------> USART1_RX

Definition at line 191 of file stm32f4xx_hal_msp.c.

◆ 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

USART1 GPIO Configuration PA9 ------> USART1_TX PA10 ------> USART1_RX

Definition at line 154 of file stm32f4xx_hal_msp.c.