CTS-SAT-1-OBC-Firmware
|
This file provides code for the MSP Initialization and de-Initialization codes. More...
#include "main.h"
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 |
This file provides code for the MSP Initialization and de-Initialization codes.
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.
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 PC2 ------> ADC1_IN3
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 |
Initializes the peripherals clock
ADC1 GPIO Configuration PC2 ------> ADC1_IN3
void HAL_I2C_MspDeInit | ( | I2C_HandleTypeDef * | hi2c | ) |
I2C MSP De-Initialization This function freeze the hardware resources used in this example.
hi2c | I2C handle pointer |
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
void HAL_I2C_MspInit | ( | I2C_HandleTypeDef * | hi2c | ) |
I2C MSP Initialization This function configures the hardware resources used in this example.
hi2c | I2C handle pointer |
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
void HAL_MspInit | ( | void | ) |
Initializes the Global MSP.
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 PE13 ------> SPI1_SCK PE14 ------> SPI1_MISO PE15 ------> SPI1_MOSI
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 |
SPI1 GPIO Configuration PE13 ------> SPI1_SCK PE14 ------> SPI1_MISO PE15 ------> SPI1_MOSI
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 |
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 |
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 |
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
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
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
|
extern |
|
extern |