/* 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) 2025 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 DB10_Pin GPIO_PIN_13 #define DB10_GPIO_Port GPIOC #define DB8_Pin GPIO_PIN_14 #define DB8_GPIO_Port GPIOC #define DB6_Pin GPIO_PIN_15 #define DB6_GPIO_Port GPIOC #define DB4_Pin GPIO_PIN_0 #define DB4_GPIO_Port GPIOD #define DB2_Pin GPIO_PIN_1 #define DB2_GPIO_Port GPIOD #define DB0_Pin GPIO_PIN_0 #define DB0_GPIO_Port GPIOA #define DRESET_Pin GPIO_PIN_1 #define DRESET_GPIO_Port GPIOA #define DTE_Pin GPIO_PIN_2 #define DTE_GPIO_Port GPIOA #define DCX_Pin GPIO_PIN_3 #define DCX_GPIO_Port GPIOA #define MCU_CS_Pin GPIO_PIN_4 #define MCU_CS_GPIO_Port GPIOA #define MCU_WR_Pin GPIO_PIN_5 #define MCU_WR_GPIO_Port GPIOA #define DB1_Pin GPIO_PIN_0 #define DB1_GPIO_Port GPIOB #define DB3_Pin GPIO_PIN_1 #define DB3_GPIO_Port GPIOB #define DB5_Pin GPIO_PIN_2 #define DB5_GPIO_Port GPIOB #define DB7_Pin GPIO_PIN_10 #define DB7_GPIO_Port GPIOB #define DB9_Pin GPIO_PIN_11 #define DB9_GPIO_Port GPIOB #define DB11_Pin GPIO_PIN_12 #define DB11_GPIO_Port GPIOB #define DB13_Pin GPIO_PIN_13 #define DB13_GPIO_Port GPIOB #define DB15_Pin GPIO_PIN_14 #define DB15_GPIO_Port GPIOB #define IM0_Pin GPIO_PIN_15 #define IM0_GPIO_Port GPIOB #define IM2_Pin GPIO_PIN_8 #define IM2_GPIO_Port GPIOA #define IM1_Pin GPIO_PIN_9 #define IM1_GPIO_Port GPIOA #define DB14_Pin GPIO_PIN_10 #define DB14_GPIO_Port GPIOA #define A11_Pin GPIO_PIN_11 #define A11_GPIO_Port GPIOA #define A12_Pin GPIO_PIN_12 #define A12_GPIO_Port GPIOA #define DRDX_Pin GPIO_PIN_5 #define DRDX_GPIO_Port GPIOB #define DB12_Pin GPIO_PIN_9 #define DB12_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */