minipix_uart_interface
A library and examples for the MiniPIX UART interface
stm32f4xx_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 stm32f4xx_hal_msp.c:

Functions

void HAL_MspInit (void)
 
void HAL_UART_MspInit (UART_HandleTypeDef *huart)
 UART MSP Initialization This function configures the hardware resources used in this example. More...
 
void HAL_UART_MspDeInit (UART_HandleTypeDef *huart)
 UART MSP De-Initialization This function freeze the hardware resources used in this example. More...
 

Variables

DMA_HandleTypeDef hdma_usart1_rx
 
DMA_HandleTypeDef hdma_usart2_rx
 
DMA_HandleTypeDef hdma_usart6_rx
 

Detailed Description

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

Attention

© Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Function Documentation

◆ HAL_MspInit()

void HAL_MspInit ( void  )

Initializes the Global MSP.

◆ 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

USART2 GPIO Configuration PA2 ---—> USART2_TX PA3 ---—> USART2_RX

USART6 GPIO Configuration PC6 ---—> USART6_TX PC7 ---—> USART6_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

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

USART2 GPIO Configuration PA2 ---—> USART2_TX PA3 ---—> USART2_RX

USART6 GPIO Configuration PC6 ---—> USART6_TX PC7 ---—> USART6_RX

Variable Documentation

◆ hdma_usart1_rx

DMA_HandleTypeDef hdma_usart1_rx

◆ hdma_usart2_rx

DMA_HandleTypeDef hdma_usart2_rx

◆ hdma_usart6_rx

DMA_HandleTypeDef hdma_usart6_rx