/* 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"

/* 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 TX1_LED_Pin GPIO_PIN_6
#define TX1_LED_GPIO_Port GPIOE
#define POWER_4V_EN_Pin GPIO_PIN_15
#define POWER_4V_EN_GPIO_Port GPIOF
#define POWER_5V_EN_Pin GPIO_PIN_0
#define POWER_5V_EN_GPIO_Port GPIOG
#define POWER_10V_EN_Pin GPIO_PIN_1
#define POWER_10V_EN_GPIO_Port GPIOG
#define POWER_15V_EN_Pin GPIO_PIN_7
#define POWER_15V_EN_GPIO_Port GPIOE
#define SPI4_NSS_DISPLAY_Pin GPIO_PIN_11
#define SPI4_NSS_DISPLAY_GPIO_Port GPIOE
#define SPI4_SCK_DISPLAY_Pin GPIO_PIN_12
#define SPI4_SCK_DISPLAY_GPIO_Port GPIOE
#define PWM_DISPLAY_LIGHT_Pin GPIO_PIN_13
#define PWM_DISPLAY_LIGHT_GPIO_Port GPIOE
#define SPI4_MOSI_DISPLAY_Pin GPIO_PIN_14
#define SPI4_MOSI_DISPLAY_GPIO_Port GPIOE
#define RST_DISPLAY_Pin GPIO_PIN_15
#define RST_DISPLAY_GPIO_Port GPIOE
#define SD_DETECT_Pin GPIO_PIN_8
#define SD_DETECT_GPIO_Port GPIOA
#define OUTPUT_ON_LED_Pin GPIO_PIN_7
#define OUTPUT_ON_LED_GPIO_Port GPIOD
#define ERROR_LED_Pin GPIO_PIN_9
#define ERROR_LED_GPIO_Port GPIOG
#define CHARGE_LED_Pin GPIO_PIN_10
#define CHARGE_LED_GPIO_Port GPIOG
#define RX2_LED_Pin GPIO_PIN_11
#define RX2_LED_GPIO_Port GPIOG
#define RX1_LED_Pin GPIO_PIN_12
#define RX1_LED_GPIO_Port GPIOG
#define TX2_LED_Pin GPIO_PIN_13
#define TX2_LED_GPIO_Port GPIOG

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
