mirror of
https://gitea.ecohim.ru:3000/RS485_BSV/RS485_BSV_fw.git
synced 2025-08-04 07:27:06 +03:00
100 lines
2.9 KiB
C
100 lines
2.9 KiB
C
/* 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) 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.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
/* 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 LED_ACT_Pin GPIO_PIN_1
|
|
#define LED_ACT_GPIO_Port GPIOC
|
|
#define U_CTRL_Pin GPIO_PIN_4
|
|
#define U_CTRL_GPIO_Port GPIOA
|
|
#define I_CTRL_Pin GPIO_PIN_5
|
|
#define I_CTRL_GPIO_Port GPIOA
|
|
#define U_MON_Pin GPIO_PIN_6
|
|
#define U_MON_GPIO_Port GPIOA
|
|
#define I_MON_Pin GPIO_PIN_7
|
|
#define I_MON_GPIO_Port GPIOA
|
|
#define HVS_15V_Pin GPIO_PIN_4
|
|
#define HVS_15V_GPIO_Port GPIOC
|
|
#define HVS_24V_Pin GPIO_PIN_5
|
|
#define HVS_24V_GPIO_Port GPIOC
|
|
#define HVS_ENABLE_Pin GPIO_PIN_7
|
|
#define HVS_ENABLE_GPIO_Port GPIOC
|
|
#define HVS_OVERLOAD_Pin GPIO_PIN_8
|
|
#define HVS_OVERLOAD_GPIO_Port GPIOC
|
|
#define HVS_OVERHEAT_Pin GPIO_PIN_9
|
|
#define HVS_OVERHEAT_GPIO_Port GPIOC
|
|
#define HVS_NOLINK_Pin GPIO_PIN_8
|
|
#define HVS_NOLINK_GPIO_Port GPIOA
|
|
#define HVS_XRAYON_Pin GPIO_PIN_9
|
|
#define HVS_XRAYON_GPIO_Port GPIOA
|
|
#define HVS_READY_Pin GPIO_PIN_10
|
|
#define HVS_READY_GPIO_Port GPIOA
|
|
#define HVS_CONN_Pin GPIO_PIN_11
|
|
#define HVS_CONN_GPIO_Port GPIOA
|
|
#define TXEN_Pin GPIO_PIN_5
|
|
#define TXEN_GPIO_Port GPIOB
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|