/* 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 "stm32h7xx_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 IN_0_Pin GPIO_PIN_2
#define IN_0_GPIO_Port GPIOE
#define IN_1_Pin GPIO_PIN_3
#define IN_1_GPIO_Port GPIOE
#define IN_2_Pin GPIO_PIN_4
#define IN_2_GPIO_Port GPIOE
#define IN_3_Pin GPIO_PIN_5
#define IN_3_GPIO_Port GPIOE
#define IN_4_Pin GPIO_PIN_6
#define IN_4_GPIO_Port GPIOE
#define IN_5_Pin GPIO_PIN_13
#define IN_5_GPIO_Port GPIOC
#define RST_WDI_Pin GPIO_PIN_0
#define RST_WDI_GPIO_Port GPIOC
#define OUT_0_Pin GPIO_PIN_2
#define OUT_0_GPIO_Port GPIOC
#define OUT_1_Pin GPIO_PIN_3
#define OUT_1_GPIO_Port GPIOC
#define OUT_2_Pin GPIO_PIN_0
#define OUT_2_GPIO_Port GPIOA
#define OUT_3_Pin GPIO_PIN_3
#define OUT_3_GPIO_Port GPIOA
#define OUT_4_Pin GPIO_PIN_4
#define OUT_4_GPIO_Port GPIOA
#define OUT_5_Pin GPIO_PIN_5
#define OUT_5_GPIO_Port GPIOA
#define ETH_RST_Pin GPIO_PIN_6
#define ETH_RST_GPIO_Port GPIOA
#define EEPROM_WP_Pin GPIO_PIN_11
#define EEPROM_WP_GPIO_Port GPIOE
#define EEPROM_SCL_Pin GPIO_PIN_12
#define EEPROM_SCL_GPIO_Port GPIOE
#define EEPROM_SDA_Pin GPIO_PIN_13
#define EEPROM_SDA_GPIO_Port GPIOE
#define RS485_1_DIR_Pin GPIO_PIN_10
#define RS485_1_DIR_GPIO_Port GPIOD
#define RS485_2_DIR_Pin GPIO_PIN_11
#define RS485_2_DIR_GPIO_Port GPIOD
#define RS485_3_DIR_Pin GPIO_PIN_8
#define RS485_3_DIR_GPIO_Port GPIOC
#define RS485_4_DIR_Pin GPIO_PIN_9
#define RS485_4_DIR_GPIO_Port GPIOC
#define E22_RST_Pin GPIO_PIN_10
#define E22_RST_GPIO_Port GPIOC
#define E28_M0_Pin GPIO_PIN_0
#define E28_M0_GPIO_Port GPIOD
#define E28_M1_Pin GPIO_PIN_1
#define E28_M1_GPIO_Port GPIOD
#define E28_M2_Pin GPIO_PIN_3
#define E28_M2_GPIO_Port GPIOD
#define E28_AUX_Pin GPIO_PIN_4
#define E28_AUX_GPIO_Port GPIOD
#define E22_M1_Pin GPIO_PIN_7
#define E22_M1_GPIO_Port GPIOB
#define E22_M0_Pin GPIO_PIN_0
#define E22_M0_GPIO_Port GPIOE
#define E22_AUX_Pin GPIO_PIN_1
#define E22_AUX_GPIO_Port GPIOE
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
