![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
This file provides code for the MSP Initialization and de-Initialization codes. More...
#include "main.h"
Go to the source code of this file.
Functions | |
| void | HAL_TIM_MspPostInit (TIM_HandleTypeDef *htim) |
| 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_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_QSPI_MspInit (QSPI_HandleTypeDef *hqspi) |
| QSPI MSP Initialization This function configures the hardware resources used in this example. | |
| void | HAL_QSPI_MspDeInit (QSPI_HandleTypeDef *hqspi) |
| QSPI 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. | |
| void | HAL_PCD_MspInit (PCD_HandleTypeDef *hpcd) |
| PCD MSP Initialization This function configures the hardware resources used in this example. | |
| void | HAL_PCD_MspDeInit (PCD_HandleTypeDef *hpcd) |
| PCD MSP De-Initialization This function freeze the hardware resources used in this example. | |
Variables | |
| MDMA_HandleTypeDef | hmdma_quadspi_fifo_th |
| DMA_HandleTypeDef | hdma_usart1_rx |
| DMA_HandleTypeDef | hdma_usart1_tx |
| static uint32_t | HAL_RCC_ADC12_CLK_ENABLED =0 |
This file provides code for the MSP Initialization and de-Initialization codes.
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.
Definition in file stm32h7xx_hal_msp.c.
| void HAL_ADC_MspDeInit | ( | ADC_HandleTypeDef * | hadc | ) |
ADC MSP De-Initialization This function freeze the hardware resources used in this example.
| hadc | ADC handle pointer |
| None |
ADC1 GPIO Configuration PC1 ---—> ADC1_INP11 PC5 ---—> ADC1_INP8
ADC2 GPIO Configuration PB0 ---—> ADC2_INP9
ADC3 GPIO Configuration PC1 ---—> ADC3_INP11
Definition at line 178 of file stm32h7xx_hal_msp.c.
References HAL_RCC_ADC12_CLK_ENABLED.
| void HAL_ADC_MspInit | ( | ADC_HandleTypeDef * | hadc | ) |
ADC MSP Initialization This function configures the hardware resources used in this example.
| hadc | ADC handle pointer |
| None |
ADC1 GPIO Configuration PC1 ---—> ADC1_INP11 PC5 ---—> ADC1_INP8
ADC2 GPIO Configuration PB0 ---—> ADC2_INP9
ADC3 GPIO Configuration PC1 ---—> ADC3_INP11
Definition at line 96 of file stm32h7xx_hal_msp.c.
References HAL_RCC_ADC12_CLK_ENABLED.
| void HAL_FDCAN_MspDeInit | ( | FDCAN_HandleTypeDef * | hfdcan | ) |
FDCAN MSP De-Initialization This function freeze the hardware resources used in this example.
| hfdcan | FDCAN handle pointer |
| None |
FDCAN1 GPIO Configuration PB8 ---—> FDCAN1_RX PB9 ---—> FDCAN1_TX
Definition at line 295 of file stm32h7xx_hal_msp.c.
| void HAL_FDCAN_MspInit | ( | FDCAN_HandleTypeDef * | hfdcan | ) |
FDCAN MSP Initialization This function configures the hardware resources used in this example.
| hfdcan | FDCAN handle pointer |
| None |
Initializes the peripherals clock
FDCAN1 GPIO Configuration PB8 ---—> FDCAN1_RX PB9 ---—> FDCAN1_TX
Definition at line 247 of file stm32h7xx_hal_msp.c.
References Error_Handler(), and HAL_OK.

| void HAL_MspInit | ( | void | ) |
Initializes the Global MSP.
Definition at line 70 of file stm32h7xx_hal_msp.c.
| void HAL_PCD_MspDeInit | ( | PCD_HandleTypeDef * | hpcd | ) |
PCD MSP De-Initialization This function freeze the hardware resources used in this example.
| hpcd | PCD handle pointer |
| None |
USB_OTG_FS GPIO Configuration PA11 ---—> USB_OTG_FS_DM PA12 ---—> USB_OTG_FS_DP
Definition at line 1114 of file stm32h7xx_hal_msp.c.
| void HAL_PCD_MspInit | ( | PCD_HandleTypeDef * | hpcd | ) |
PCD MSP Initialization This function configures the hardware resources used in this example.
| hpcd | PCD handle pointer |
| None |
Initializes the peripherals clock
Enable USB Voltage detector
USB_OTG_FS GPIO Configuration PA11 ---—> USB_OTG_FS_DM PA12 ---—> USB_OTG_FS_DP
Definition at line 1063 of file stm32h7xx_hal_msp.c.
References Error_Handler(), and HAL_OK.

| void HAL_QSPI_MspDeInit | ( | QSPI_HandleTypeDef * | hqspi | ) |
QSPI MSP De-Initialization This function freeze the hardware resources used in this example.
| hqspi | QSPI handle pointer |
| None |
QUADSPI GPIO Configuration PB2 ---—> QUADSPI_CLK PE7 ---—> QUADSPI_BK2_IO0 PE8 ---—> QUADSPI_BK2_IO1 PE9 ---—> QUADSPI_BK2_IO2 PE10 ---—> QUADSPI_BK2_IO3 PC11 ---—> QUADSPI_BK2_NCS
Definition at line 424 of file stm32h7xx_hal_msp.c.
References hqspi.
| void HAL_QSPI_MspInit | ( | QSPI_HandleTypeDef * | hqspi | ) |
QSPI MSP Initialization This function configures the hardware resources used in this example.
| hqspi | QSPI handle pointer |
| None |
Initializes the peripherals clock
QUADSPI GPIO Configuration PB2 ---—> QUADSPI_CLK PE7 ---—> QUADSPI_BK2_IO0 PE8 ---—> QUADSPI_BK2_IO1 PE9 ---—> QUADSPI_BK2_IO2 PE10 ---—> QUADSPI_BK2_IO3 PC11 ---—> QUADSPI_BK2_NCS
Definition at line 324 of file stm32h7xx_hal_msp.c.
References Error_Handler(), HAL_OK, hmdma_quadspi_fifo_th, and hqspi.

| void HAL_SPI_MspDeInit | ( | SPI_HandleTypeDef * | hspi | ) |
SPI MSP De-Initialization This function freeze the hardware resources used in this example.
| hspi | SPI handle pointer |
| None |
SPI1 GPIO Configuration PA5 ---—> SPI1_SCK PA6 ---—> SPI1_MISO PA7 ---—> SPI1_MOSI
SPI2 GPIO Configuration PB13 ---—> SPI2_SCK PB14 ---—> SPI2_MISO PB15 ---—> SPI2_MOSI
SPI3 GPIO Configuration PB3 (JTDO/TRACESWO) ---—> SPI3_SCK PB4 (NJTRST) ---—> SPI3_MISO PB5 ---—> SPI3_MOSI
Definition at line 591 of file stm32h7xx_hal_msp.c.
| void HAL_SPI_MspInit | ( | SPI_HandleTypeDef * | hspi | ) |
SPI MSP Initialization This function configures the hardware resources used in this example.
| hspi | SPI handle pointer |
| None |
Initializes the peripherals clock
SPI1 GPIO Configuration PA5 ---—> SPI1_SCK PA6 ---—> SPI1_MISO PA7 ---—> SPI1_MOSI
Initializes the peripherals clock
SPI2 GPIO Configuration PB13 ---—> SPI2_SCK PB14 ---—> SPI2_MISO PB15 ---—> SPI2_MOSI
Initializes the peripherals clock
SPI3 GPIO Configuration PB3 (JTDO/TRACESWO) ---—> SPI3_SCK PB4 (NJTRST) ---—> SPI3_MISO PB5 ---—> SPI3_MOSI
Definition at line 466 of file stm32h7xx_hal_msp.c.
References Error_Handler(), and HAL_OK.

| void HAL_TIM_Base_MspDeInit | ( | TIM_HandleTypeDef * | htim_base | ) |
TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example.
| htim_base | TIM_Base handle pointer |
| None |
Definition at line 824 of file stm32h7xx_hal_msp.c.
| void HAL_TIM_Base_MspInit | ( | TIM_HandleTypeDef * | htim_base | ) |
TIM_Base MSP Initialization This function configures the hardware resources used in this example.
| htim_base | TIM_Base handle pointer |
| None |
Definition at line 692 of file stm32h7xx_hal_msp.c.
| void HAL_TIM_MspPostInit | ( | TIM_HandleTypeDef * | htim | ) |
TIM2 GPIO Configuration PA2 ---—> TIM2_CH3
TIM15 GPIO Configuration PE6 ---—> TIM15_CH2
Definition at line 739 of file stm32h7xx_hal_msp.c.
Referenced by MX_TIM15_Init(), and MX_TIM2_Init().

| void HAL_TIM_PWM_MspDeInit | ( | TIM_HandleTypeDef * | htim_pwm | ) |
TIM_PWM MSP De-Initialization This function freeze the hardware resources used in this example.
| htim_pwm | TIM_PWM handle pointer |
| None |
Definition at line 791 of file stm32h7xx_hal_msp.c.
| void HAL_TIM_PWM_MspInit | ( | TIM_HandleTypeDef * | htim_pwm | ) |
TIM_PWM MSP Initialization This function configures the hardware resources used in this example.
| htim_pwm | TIM_PWM handle pointer |
| None |
Definition at line 659 of file stm32h7xx_hal_msp.c.
| void HAL_UART_MspDeInit | ( | UART_HandleTypeDef * | huart | ) |
UART MSP De-Initialization This function freeze the hardware resources used in this example.
| huart | UART handle pointer |
| None |
UART4 GPIO Configuration PD0 ---—> UART4_RX PD1 ---—> UART4_TX
USART1 GPIO Configuration PA8 ---—> USART1_CK PA9 ---—> USART1_TX PA10 ---—> USART1_RX
Definition at line 1009 of file stm32h7xx_hal_msp.c.
| void HAL_UART_MspInit | ( | UART_HandleTypeDef * | huart | ) |
UART MSP Initialization This function configures the hardware resources used in this example.
| huart | UART handle pointer |
| None |
Initializes the peripherals clock
UART4 GPIO Configuration PD0 ---—> UART4_RX PD1 ---—> UART4_TX
Initializes the peripherals clock
USART1 GPIO Configuration PA8 ---—> USART1_CK PA9 ---—> USART1_TX PA10 ---—> USART1_RX
Definition at line 877 of file stm32h7xx_hal_msp.c.
References Error_Handler(), HAL_OK, hdma_usart1_rx, and hdma_usart1_tx.

|
static |
Definition at line 88 of file stm32h7xx_hal_msp.c.
Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().
|
extern |
Definition at line 73 of file main.c.
Referenced by HAL_UART_MspInit().
|
extern |
Definition at line 74 of file main.c.
Referenced by HAL_UART_MspInit().
|
extern |
Definition at line 59 of file main.c.
Referenced by HAL_QSPI_MspInit().