еще добавлю файл main.h
PHP код:
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.h
* @brief : Header for main.c file.
* This file contains the common defines of the application.
******************************************************************************
* @attention
*
* Copyright (c) 2023 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.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
#define LB4_B_Pin GPIO_PIN_2
#define LB4_B_GPIO_Port GPIOE
#define LB5_A_Pin GPIO_PIN_3
#define LB5_A_GPIO_Port GPIOE
#define SB5_Pin GPIO_PIN_4
#define SB5_GPIO_Port GPIOE
#define PLA7_Pin GPIO_PIN_5
#define PLA7_GPIO_Port GPIOA
#define Mut3_Pin GPIO_PIN_6
#define Mut3_GPIO_Port GPIOA
#define Mut2_Pin GPIO_PIN_7
#define Mut2_GPIO_Port GPIOA
#define RECLED7_Pin GPIO_PIN_4
#define RECLED7_GPIO_Port GPIOC
#define PLA6_Pin GPIO_PIN_5
#define PLA6_GPIO_Port GPIOC
#define Mut1_Pin GPIO_PIN_0
#define Mut1_GPIO_Port GPIOB
#define RECLED6_Pin GPIO_PIN_1
#define RECLED6_GPIO_Port GPIOB
#define PLA5_Pin GPIO_PIN_7
#define PLA5_GPIO_Port GPIOE
#define Mut4_Pin GPIO_PIN_8
#define Mut4_GPIO_Port GPIOE
#define RECLED5_Pin GPIO_PIN_9
#define RECLED5_GPIO_Port GPIOE
#define PLA4_Pin GPIO_PIN_10
#define PLA4_GPIO_Port GPIOE
#define RECLED4_Pin GPIO_PIN_11
#define RECLED4_GPIO_Port GPIOE
#define PLA3_Pin GPIO_PIN_12
#define PLA3_GPIO_Port GPIOE
#define PRD2_Pin GPIO_PIN_14
#define PRD2_GPIO_Port GPIOE
#define PRD4_Pin GPIO_PIN_15
#define PRD4_GPIO_Port GPIOE
#define PRD3_Pin GPIO_PIN_10
#define PRD3_GPIO_Port GPIOB
#define Pedal_Pin GPIO_PIN_11
#define Pedal_GPIO_Port GPIOB
#define RECLED3_Pin GPIO_PIN_12
#define RECLED3_GPIO_Port GPIOB
#define PLA2_Pin GPIO_PIN_13
#define PLA2_GPIO_Port GPIOB
#define RECLED2_Pin GPIO_PIN_14
#define RECLED2_GPIO_Port GPIOB
#define PLA1_Pin GPIO_PIN_15
#define PLA1_GPIO_Port GPIOB
#define RECLED1_Pin GPIO_PIN_8
#define RECLED1_GPIO_Port GPIOD
#define PRD_SDPS_Pin GPIO_PIN_10
#define PRD_SDPS_GPIO_Port GPIOD
#define SD2_Pin GPIO_PIN_11
#define SD2_GPIO_Port GPIOD
#define LD2_B_Pin GPIO_PIN_12
#define LD2_B_GPIO_Port GPIOD
#define SD4_Pin GPIO_PIN_13
#define SD4_GPIO_Port GPIOD
#define LD4_B_Pin GPIO_PIN_14
#define LD4_B_GPIO_Port GPIOD
#define SD6_Pin GPIO_PIN_15
#define SD6_GPIO_Port GPIOD
#define LD6_B_Pin GPIO_PIN_6
#define LD6_B_GPIO_Port GPIOC
#define LD6_A_Pin GPIO_PIN_7
#define LD6_A_GPIO_Port GPIOC
#define LD4_A_Pin GPIO_PIN_8
#define LD4_A_GPIO_Port GPIOC
#define LD2_A_Pin GPIO_PIN_9
#define LD2_A_GPIO_Port GPIOC
#define LD1_B_Pin GPIO_PIN_8
#define LD1_B_GPIO_Port GPIOA
#define LD3_B_Pin GPIO_PIN_9
#define LD3_B_GPIO_Port GPIOA
#define LD5_B_Pin GPIO_PIN_10
#define LD5_B_GPIO_Port GPIOA
#define LD5_A_Pin GPIO_PIN_11
#define LD5_A_GPIO_Port GPIOA
#define SD5_Pin GPIO_PIN_12
#define SD5_GPIO_Port GPIOA
#define LD3_A_Pin GPIO_PIN_11
#define LD3_A_GPIO_Port GPIOC
#define SD3_Pin GPIO_PIN_12
#define SD3_GPIO_Port GPIOC
#define LD1_A_Pin GPIO_PIN_0
#define LD1_A_GPIO_Port GPIOD
#define SD1_Pin GPIO_PIN_1
#define SD1_GPIO_Port GPIOD
#define LB5_B_Pin GPIO_PIN_2
#define LB5_B_GPIO_Port GPIOD
#define SB1_Pin GPIO_PIN_3
#define SB1_GPIO_Port GPIOD
#define LB1_A_Pin GPIO_PIN_4
#define LB1_A_GPIO_Port GPIOD
#define LB1_B_Pin GPIO_PIN_5
#define LB1_B_GPIO_Port GPIOD
#define LB2_A_Pin GPIO_PIN_6
#define LB2_A_GPIO_Port GPIOD
#define LB2_B_Pin GPIO_PIN_7
#define LB2_B_GPIO_Port GPIOD
#define LB3_A_Pin GPIO_PIN_4
#define LB3_A_GPIO_Port GPIOB
#define SB3_Pin GPIO_PIN_5
#define SB3_GPIO_Port GPIOB
#define LB3_B_Pin GPIO_PIN_6
#define LB3_B_GPIO_Port GPIOB
#define SB2_Pin GPIO_PIN_7
#define SB2_GPIO_Port GPIOB
#define LB4_A_Pin GPIO_PIN_9
#define LB4_A_GPIO_Port GPIOB
#define SB4_Pin GPIO_PIN_1
#define SB4_GPIO_Port GPIOE
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
#ifdef __cplusplus
}
#endif
#endif /* __MAIN_H */