ME 507 Romi++
Cylindrical Differential Drive Robot created for ME 507 at Cal Poly in Spring 2025
|
This file provides code for the MSP Initialization and de-Initialization codes. More...
#include "main.h"
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_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_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_Encoder_MspInit (TIM_HandleTypeDef *htim_encoder) |
TIM_Encoder 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_TIM_Encoder_MspDeInit (TIM_HandleTypeDef *htim_encoder) |
TIM_Encoder 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. |
Variables | |
DMA_HandleTypeDef | hdma_usart2_rx |
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.
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 PB0 ------> ADC1_IN8
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 PB0 ------> ADC1_IN8
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 PB8 ------> I2C1_SCL PB9 ------> I2C1_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 |
I2C1 GPIO Configuration PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA
void HAL_MspInit | ( | void | ) |
Initializes the Global MSP.
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 |
TIM2 GPIO Configuration PA5 ------> TIM2_CH1
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 |
TIM2 GPIO Configuration PA5 ------> TIM2_CH1
void HAL_TIM_Encoder_MspDeInit | ( | TIM_HandleTypeDef * | htim_encoder | ) |
TIM_Encoder MSP De-Initialization This function freeze the hardware resources used in this example.
htim_encoder | TIM_Encoder handle pointer |
None |
TIM3 GPIO Configuration PA6 ------> TIM3_CH1 PA7 ------> TIM3_CH2
TIM4 GPIO Configuration PB6 ------> TIM4_CH1 PB7 ------> TIM4_CH2
void HAL_TIM_Encoder_MspInit | ( | TIM_HandleTypeDef * | htim_encoder | ) |
TIM_Encoder MSP Initialization This function configures the hardware resources used in this example.
htim_encoder | TIM_Encoder handle pointer |
None |
TIM3 GPIO Configuration PA6 ------> TIM3_CH1 PA7 ------> TIM3_CH2
TIM4 GPIO Configuration PB6 ------> TIM4_CH1 PB7 ------> TIM4_CH2
void HAL_TIM_MspPostInit | ( | TIM_HandleTypeDef * | htim | ) |
TIM1 GPIO Configuration PA8 ------> TIM1_CH1 PA9 ------> TIM1_CH2
TIM5 GPIO Configuration PA0-WKUP ------> TIM5_CH1 PA1 ------> TIM5_CH2
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 |
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 |
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 |
USART2 GPIO Configuration PA2 ------> USART2_TX PA3 ------> USART2_RX
USART6 GPIO Configuration PA11 ------> USART6_TX PA12 ------> USART6_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 |
USART2 GPIO Configuration PA2 ------> USART2_TX PA3 ------> USART2_RX
USART6 GPIO Configuration PA11 ------> USART6_TX PA12 ------> USART6_RX