/* 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) 2022 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* 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 */ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim); /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ typedef struct { uint8_t force_pause:1; uint32_t pause; // uint8_t // uint16_t }FLAG; /* 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 */ void Millisecond(void); /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ #define IN_06_Pin GPIO_PIN_13 #define IN_06_GPIO_Port GPIOC #define SELEKT_PCH_Pin GPIO_PIN_14 #define SELEKT_PCH_GPIO_Port GPIOC #define IN_05_Pin GPIO_PIN_15 #define IN_05_GPIO_Port GPIOC //#define LED1_Pin GPIO_PIN_2 //#define LED1_GPIO_Port GPIOC //#define LED2_Pin GPIO_PIN_3 #define LED2_GPIO_Port GPIOC #define IN_04_Pin GPIO_PIN_0 #define IN_04_GPIO_Port GPIOA #define IN_03_Pin GPIO_PIN_1 #define IN_03_GPIO_Port GPIOA #define IN_02_Pin GPIO_PIN_2 #define IN_02_GPIO_Port GPIOA #define IN_01_Pin GPIO_PIN_3 #define IN_01_GPIO_Port GPIOA #define IN_14_Pin GPIO_PIN_4 #define IN_14_GPIO_Port GPIOA #define IN_13_Pin GPIO_PIN_5 #define IN_13_GPIO_Port GPIOA //#define J0_Pin GPIO_PIN_7 #define J0_GPIO_Port GPIOA //#define J1_Pin GPIO_PIN_4 //#define J1_GPIO_Port GPIOC //#define J2_Pin GPIO_PIN_5 #define J2_GPIO_Port GPIOC //#define J3_Pin GPIO_PIN_0 //#define J3_GPIO_Port GPIOB //#define IN_12_Pin GPIO_PIN_1 #define IN_12_GPIO_Port GPIOB #define BOOT1_Pin GPIO_PIN_2 #define BOOT1_GPIO_Port GPIOB //#define IN_11_Pin GPIO_PIN_10 #define IN_11_GPIO_Port GPIOB #define IN_10_Pin GPIO_PIN_12 #define IN_10_GPIO_Port GPIOB #define IN_09_Pin GPIO_PIN_13 #define IN_09_GPIO_Port GPIOB #define IN_08_Pin GPIO_PIN_14 #define IN_08_GPIO_Port GPIOB #define IN_07_Pin GPIO_PIN_15 #define IN_07_GPIO_Port GPIOB #define PVT4_Pin GPIO_PIN_6 #define PVT4_GPIO_Port GPIOC #define PVT3_Pin GPIO_PIN_7 #define PVT3_GPIO_Port GPIOC #define PVT2_Pin GPIO_PIN_8 #define PVT2_GPIO_Port GPIOC #define PVT1_Pin GPIO_PIN_9 #define PVT1_GPIO_Port GPIOC /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */