/* 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 "stm32h7xx_hal.h" #include "stm32h7xx_ll_usart.h" #include "stm32h7xx_ll_rcc.h" #include "stm32h7xx_ll_bus.h" #include "stm32h7xx_ll_cortex.h" #include "stm32h7xx_ll_system.h" #include "stm32h7xx_ll_utils.h" #include "stm32h7xx_ll_pwr.h" #include "stm32h7xx_ll_gpio.h" #include "stm32h7xx_ll_dma.h" #include "stm32h7xx_ll_exti.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 BUZZER_Pin GPIO_PIN_2 #define BUZZER_GPIO_Port GPIOE #define DIO12_I3_Pin GPIO_PIN_6 #define DIO12_I3_GPIO_Port GPIOA #define Headlight_Detect_Pin GPIO_PIN_7 #define Headlight_Detect_GPIO_Port GPIOA #define K15_Detect_Pin GPIO_PIN_4 #define K15_Detect_GPIO_Port GPIOC #define EEPROM_WC_Pin GPIO_PIN_15 #define EEPROM_WC_GPIO_Port GPIOE #define I2C2_EEPROM_SCL_Pin GPIO_PIN_10 #define I2C2_EEPROM_SCL_GPIO_Port GPIOB #define I2C2_EEPROM_SDA_Pin GPIO_PIN_11 #define I2C2_EEPROM_SDA_GPIO_Port GPIOB #define DIO12_L4_Pin GPIO_PIN_10 #define DIO12_L4_GPIO_Port GPIOD #define DIO12_L3_Pin GPIO_PIN_11 #define DIO12_L3_GPIO_Port GPIOD #define K15_OUT_Pin GPIO_PIN_13 #define K15_OUT_GPIO_Port GPIOD #define DIO12_L2_Pin GPIO_PIN_14 #define DIO12_L2_GPIO_Port GPIOD #define MLZR_IT1_Pin GPIO_PIN_15 #define MLZR_IT1_GPIO_Port GPIOD #define MLZR_IT2_Pin GPIO_PIN_6 #define MLZR_IT2_GPIO_Port GPIOC #define SDMMC_DET_Pin GPIO_PIN_15 #define SDMMC_DET_GPIO_Port GPIOA #define Periph_Power_Pin GPIO_PIN_5 #define Periph_Power_GPIO_Port GPIOB #define I2C1_INA_SDA_Pin GPIO_PIN_7 #define I2C1_INA_SDA_GPIO_Port GPIOB #define I2C1_INA_SCL_Pin GPIO_PIN_8 #define I2C1_INA_SCL_GPIO_Port GPIOB #define CLS_POWER_Pin GPIO_PIN_0 #define CLS_POWER_GPIO_Port GPIOE /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */