CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
stm32l4xx_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 stm32l4xx_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_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.
 
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.
 

Variables

DMA_HandleTypeDef hdma_uart4_rx
 
DMA_HandleTypeDef hdma_usart1_rx
 

Detailed Description

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

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_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 PC2 ------> ADC1_IN3

◆ 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

Initializes the peripherals clock

ADC1 GPIO Configuration PC2 ------> ADC1_IN3

Here is the call graph for this function:

◆ 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 PG13 ------> I2C1_SDA PG14 ------> I2C1_SCL

I2C2 GPIO Configuration PF0 ------> I2C2_SDA PF1 ------> I2C2_SCL

I2C3 GPIO Configuration PC0 ------> I2C3_SCL PC1 ------> I2C3_SDA

I2C4 GPIO Configuration PD12 ------> I2C4_SCL PD13 ------> I2C4_SDA

◆ 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

Initializes the peripherals clock

I2C1 GPIO Configuration PG13 ------> I2C1_SDA PG14 ------> I2C1_SCL

Initializes the peripherals clock

I2C2 GPIO Configuration PF0 ------> I2C2_SDA PF1 ------> I2C2_SCL

Initializes the peripherals clock

I2C3 GPIO Configuration PC0 ------> I2C3_SCL PC1 ------> I2C3_SDA

Initializes the peripherals clock

I2C4 GPIO Configuration PD12 ------> I2C4_SCL PD13 ------> I2C4_SDA

Here is the call graph for this function:

◆ 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

SPI1 GPIO Configuration PE13 ------> SPI1_SCK PE14 ------> SPI1_MISO PE15 ------> SPI1_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

SPI1 GPIO Configuration PE13 ------> SPI1_SCK PE14 ------> SPI1_MISO PE15 ------> SPI1_MOSI

◆ 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

LPUART1 GPIO Configuration PG7 ------> LPUART1_TX PG8 ------> LPUART1_RX

UART4 GPIO Configuration PA0 ------> UART4_TX PA1 ------> UART4_RX

UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX

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

USART2 GPIO Configuration PD5 ------> USART2_TX PD6 ------> USART2_RX

USART3 GPIO Configuration PC4 ------> USART3_TX PC5 ------> USART3_RX

◆ 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

LPUART1 GPIO Configuration PG7 ------> LPUART1_TX PG8 ------> LPUART1_RX

Initializes the peripherals clock

UART4 GPIO Configuration PA0 ------> UART4_TX PA1 ------> UART4_RX

Initializes the peripherals clock

UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX

Initializes the peripherals clock

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

Initializes the peripherals clock

USART2 GPIO Configuration PD5 ------> USART2_TX PD6 ------> USART2_RX

Initializes the peripherals clock

USART3 GPIO Configuration PC4 ------> USART3_TX PC5 ------> USART3_RX

Here is the call graph for this function:

Variable Documentation

◆ hdma_uart4_rx

DMA_HandleTypeDef hdma_uart4_rx
extern

◆ hdma_usart1_rx

DMA_HandleTypeDef hdma_usart1_rx
extern