Removed unused peripherals definitions

This commit is contained in:
2026-08-01 08:59:15 +02:00
parent 985f5bcafe
commit 07783685ce
5 changed files with 11 additions and 17 deletions
-2
View File
@@ -23,12 +23,10 @@
#include "stm32f1xx_ll_system.h"
#include "stm32f1xx_ll_exti.h"
#include "stm32f1xx_ll_cortex.h"
#include "stm32f1xx_ll_crc.h"
#include "stm32f1xx_ll_utils.h"
#include "stm32f1xx_ll_pwr.h"
#include "stm32f1xx_ll_dma.h"
#include "stm32f1xx_ll_gpio.h"
#include "stm32f1xx_ll_wwdg.h"
#ifndef HAL_INTERFACE_H_
+2 -2
View File
@@ -40,7 +40,7 @@
/*#define HAL_CAN_LEGACY_MODULE_ENABLED */
/*#define HAL_CEC_MODULE_ENABLED */
/*#define HAL_CORTEX_MODULE_ENABLED */
#define HAL_CRC_MODULE_ENABLED
/*#define HAL_CRC_MODULE_ENABLED */
/*#define HAL_DAC_MODULE_ENABLED */
/*#define HAL_DMA_MODULE_ENABLED */
/*#define HAL_ETH_MODULE_ENABLED */
@@ -67,7 +67,7 @@
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED
/*#define HAL_USART_MODULE_ENABLED */
#define HAL_WWDG_MODULE_ENABLED
/*#define HAL_WWDG_MODULE_ENABLED */
#define HAL_CORTEX_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
+9 -9
View File
@@ -20,7 +20,7 @@
#include "hal_interface.h"
#include "stm32f1xx_hal_flash_ex.h"
CRC_HandleTypeDef hcrc;
//CRC_HandleTypeDef hcrc;
I2C_HandleTypeDef hi2c1;
I2C_HandleTypeDef hi2c2;
@@ -31,7 +31,7 @@ TIM_HandleTypeDef htim1;
TIM_HandleTypeDef htim2;
TIM_HandleTypeDef htim3;
WWDG_HandleTypeDef hwwdg;
//WWDG_HandleTypeDef hwwdg;
#ifdef DEBUG
UART_HandleTypeDef huart1;
@@ -99,11 +99,11 @@ void SystemClock_Config(void) {
* @param None
* @retval None
*/
static void MX_CRC_Init(void) {
/*static void MX_CRC_Init(void) {
hcrc.Instance = CRC;
if (HAL_CRC_Init(&hcrc) != HAL_OK)
Error_Handler();
}
}*/
/**
* @brief I2C1 Initialization Function
@@ -490,10 +490,10 @@ void HAL_MspInit(void) {
* @param hcrc: CRC handle pointer
* @retval None
*/
void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc) {
/*void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc) {
if(hcrc->Instance==CRC)
__HAL_RCC_CRC_CLK_ENABLE();
}
}*/
/**
* @brief CRC MSP De-Initialization
@@ -501,10 +501,10 @@ void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc) {
* @param hcrc: CRC handle pointer
* @retval None
*/
void HAL_CRC_MspDeInit(CRC_HandleTypeDef* hcrc) {
/*void HAL_CRC_MspDeInit(CRC_HandleTypeDef* hcrc) {
if(hcrc->Instance==CRC)
__HAL_RCC_CRC_CLK_DISABLE();
}
}*/
/**
* @brief I2C MSP Initialization
@@ -898,7 +898,7 @@ HAL_StatusTypeDef HAL_Interface_init(void) {
// Use SRAM backup registers to check if we have soft-reset
HAL_PWR_EnableBkUpAccess();
MX_CRC_Init();
//MX_CRC_Init();
MX_GPIO_Init();
MX_I2C1_Init();
MX_I2C2_Init();
-2
View File
@@ -63,8 +63,6 @@ extern TIM_HandleTypeDef htim1;
extern TIM_HandleTypeDef htim2;
extern TIM_HandleTypeDef htim3;
extern WWDG_HandleTypeDef hwwdg;
#ifdef DEBUG
// Debug UART interface, unused in release to limit consumption mainly
extern UART_HandleTypeDef huart1;
-2
View File
@@ -14,11 +14,9 @@ I2C2.OwnAddress=0
KeepUserPlacement=false
Mcu.CPN=STM32F103R8T6
Mcu.Family=STM32F1
Mcu.IP0=CRC
Mcu.IP1=I2C1
Mcu.IP10=USART1
Mcu.IP11=USART3
Mcu.IP12=WWDG
Mcu.IP2=I2C2
Mcu.IP3=NVIC
Mcu.IP4=RCC