202 lines
5.7 KiB
C
202 lines
5.7 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 in13_Pin GPIO_PIN_4
|
|
#define in13_GPIO_Port GPIOE
|
|
#define in14_Pin GPIO_PIN_5
|
|
#define in14_GPIO_Port GPIOE
|
|
#define in15_Pin GPIO_PIN_6
|
|
#define in15_GPIO_Port GPIOE
|
|
#define in16_Pin GPIO_PIN_13
|
|
#define in16_GPIO_Port GPIOC
|
|
#define in17_Pin GPIO_PIN_14
|
|
#define in17_GPIO_Port GPIOC
|
|
#define in18_Pin GPIO_PIN_15
|
|
#define in18_GPIO_Port GPIOC
|
|
#define in19_Pin GPIO_PIN_0
|
|
#define in19_GPIO_Port GPIOC
|
|
#define in20_Pin GPIO_PIN_1
|
|
#define in20_GPIO_Port GPIOC
|
|
#define in21_Pin GPIO_PIN_2
|
|
#define in21_GPIO_Port GPIOC
|
|
#define in22_Pin GPIO_PIN_3
|
|
#define in22_GPIO_Port GPIOC
|
|
#define in23_Pin GPIO_PIN_0
|
|
#define in23_GPIO_Port GPIOA
|
|
#define in24_Pin GPIO_PIN_1
|
|
#define in24_GPIO_Port GPIOA
|
|
#define run_lamp_Pin GPIO_PIN_2
|
|
#define run_lamp_GPIO_Port GPIOA
|
|
#define comm_lamp_Pin GPIO_PIN_3
|
|
#define comm_lamp_GPIO_Port GPIOA
|
|
#define w5500cs_Pin GPIO_PIN_4
|
|
#define w5500cs_GPIO_Port GPIOA
|
|
#define w5500rst_Pin GPIO_PIN_4
|
|
#define w5500rst_GPIO_Port GPIOC
|
|
#define o24_Pin GPIO_PIN_0
|
|
#define o24_GPIO_Port GPIOB
|
|
#define o23_Pin GPIO_PIN_1
|
|
#define o23_GPIO_Port GPIOB
|
|
#define o22_Pin GPIO_PIN_2
|
|
#define o22_GPIO_Port GPIOB
|
|
#define o21_Pin GPIO_PIN_7
|
|
#define o21_GPIO_Port GPIOE
|
|
#define o20_Pin GPIO_PIN_8
|
|
#define o20_GPIO_Port GPIOE
|
|
#define o19_Pin GPIO_PIN_9
|
|
#define o19_GPIO_Port GPIOE
|
|
#define o18_Pin GPIO_PIN_10
|
|
#define o18_GPIO_Port GPIOE
|
|
#define o17_Pin GPIO_PIN_11
|
|
#define o17_GPIO_Port GPIOE
|
|
#define o16_Pin GPIO_PIN_12
|
|
#define o16_GPIO_Port GPIOE
|
|
#define o15_Pin GPIO_PIN_13
|
|
#define o15_GPIO_Port GPIOE
|
|
#define o14_Pin GPIO_PIN_14
|
|
#define o14_GPIO_Port GPIOE
|
|
#define o13_Pin GPIO_PIN_15
|
|
#define o13_GPIO_Port GPIOE
|
|
#define o12_Pin GPIO_PIN_10
|
|
#define o12_GPIO_Port GPIOB
|
|
#define o11_Pin GPIO_PIN_11
|
|
#define o11_GPIO_Port GPIOB
|
|
#define o10_Pin GPIO_PIN_12
|
|
#define o10_GPIO_Port GPIOB
|
|
#define o9_Pin GPIO_PIN_13
|
|
#define o9_GPIO_Port GPIOB
|
|
#define o8_Pin GPIO_PIN_14
|
|
#define o8_GPIO_Port GPIOB
|
|
#define o7_Pin GPIO_PIN_15
|
|
#define o7_GPIO_Port GPIOB
|
|
#define o6_Pin GPIO_PIN_8
|
|
#define o6_GPIO_Port GPIOD
|
|
#define o5_Pin GPIO_PIN_9
|
|
#define o5_GPIO_Port GPIOD
|
|
#define o4_Pin GPIO_PIN_10
|
|
#define o4_GPIO_Port GPIOD
|
|
#define o3_Pin GPIO_PIN_11
|
|
#define o3_GPIO_Port GPIOD
|
|
#define o2_Pin GPIO_PIN_12
|
|
#define o2_GPIO_Port GPIOD
|
|
#define o1_Pin GPIO_PIN_13
|
|
#define o1_GPIO_Port GPIOD
|
|
#define g2_Pin GPIO_PIN_14
|
|
#define g2_GPIO_Port GPIOD
|
|
#define f2_Pin GPIO_PIN_15
|
|
#define f2_GPIO_Port GPIOD
|
|
#define e2_Pin GPIO_PIN_6
|
|
#define e2_GPIO_Port GPIOC
|
|
#define c2_Pin GPIO_PIN_7
|
|
#define c2_GPIO_Port GPIOC
|
|
#define b2_Pin GPIO_PIN_8
|
|
#define b2_GPIO_Port GPIOC
|
|
#define a2_Pin GPIO_PIN_9
|
|
#define a2_GPIO_Port GPIOC
|
|
#define re485_Pin GPIO_PIN_8
|
|
#define re485_GPIO_Port GPIOA
|
|
#define rstbtn_Pin GPIO_PIN_11
|
|
#define rstbtn_GPIO_Port GPIOA
|
|
#define a1_Pin GPIO_PIN_12
|
|
#define a1_GPIO_Port GPIOC
|
|
#define b1_Pin GPIO_PIN_0
|
|
#define b1_GPIO_Port GPIOD
|
|
#define c1_Pin GPIO_PIN_1
|
|
#define c1_GPIO_Port GPIOD
|
|
#define e1_Pin GPIO_PIN_2
|
|
#define e1_GPIO_Port GPIOD
|
|
#define f1_Pin GPIO_PIN_3
|
|
#define f1_GPIO_Port GPIOD
|
|
#define g1_Pin GPIO_PIN_4
|
|
#define g1_GPIO_Port GPIOD
|
|
#define in12_Pin GPIO_PIN_5
|
|
#define in12_GPIO_Port GPIOD
|
|
#define in11_Pin GPIO_PIN_6
|
|
#define in11_GPIO_Port GPIOD
|
|
#define in10_Pin GPIO_PIN_7
|
|
#define in10_GPIO_Port GPIOD
|
|
#define in9_Pin GPIO_PIN_3
|
|
#define in9_GPIO_Port GPIOB
|
|
#define in8_Pin GPIO_PIN_4
|
|
#define in8_GPIO_Port GPIOB
|
|
#define in7_Pin GPIO_PIN_5
|
|
#define in7_GPIO_Port GPIOB
|
|
#define in6_Pin GPIO_PIN_6
|
|
#define in6_GPIO_Port GPIOB
|
|
#define in5_Pin GPIO_PIN_7
|
|
#define in5_GPIO_Port GPIOB
|
|
#define in4_Pin GPIO_PIN_8
|
|
#define in4_GPIO_Port GPIOB
|
|
#define in3_Pin GPIO_PIN_9
|
|
#define in3_GPIO_Port GPIOB
|
|
#define in2_Pin GPIO_PIN_0
|
|
#define in2_GPIO_Port GPIOE
|
|
#define in1_Pin GPIO_PIN_1
|
|
#define in1_GPIO_Port GPIOE
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|