/* 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) 2026 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 "stm32l4xx_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 */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define START_Pin GPIO_PIN_13
#define START_GPIO_Port GPIOC
#define STOP_Pin GPIO_PIN_14
#define STOP_GPIO_Port GPIOC
#define MX_DIH_Pin GPIO_PIN_15
#define MX_DIH_GPIO_Port GPIOC
#define R_IN_Pin GPIO_PIN_0
#define R_IN_GPIO_Port GPIOA
#define G_IN_Pin GPIO_PIN_1
#define G_IN_GPIO_Port GPIOA
#define B_IN_Pin GPIO_PIN_2
#define B_IN_GPIO_Port GPIOA
#define BEEP_Pin GPIO_PIN_3
#define BEEP_GPIO_Port GPIOA
#define L_DAC_Pin GPIO_PIN_4
#define L_DAC_GPIO_Port GPIOA
#define D_DAC_Pin GPIO_PIN_5
#define D_DAC_GPIO_Port GPIOA
#define L_IN1_Pin GPIO_PIN_6
#define L_IN1_GPIO_Port GPIOA
#define L_IN2_Pin GPIO_PIN_7
#define L_IN2_GPIO_Port GPIOA
#define VBUS_Pin GPIO_PIN_0
#define VBUS_GPIO_Port GPIOB
#define MX_RP_Pin GPIO_PIN_1
#define MX_RP_GPIO_Port GPIOB
#define MX_GP_Pin GPIO_PIN_2
#define MX_GP_GPIO_Port GPIOB
#define MX_BP_Pin GPIO_PIN_10
#define MX_BP_GPIO_Port GPIOB
#define MX_DV_Pin GPIO_PIN_11
#define MX_DV_GPIO_Port GPIOB
#define MX_RL_Pin GPIO_PIN_12
#define MX_RL_GPIO_Port GPIOB
#define MX_GL_Pin GPIO_PIN_13
#define MX_GL_GPIO_Port GPIOB
#define MX_BL_Pin GPIO_PIN_14
#define MX_BL_GPIO_Port GPIOB
#define MX_DIL_Pin GPIO_PIN_15
#define MX_DIL_GPIO_Port GPIOB
#define MX_RD_Pin GPIO_PIN_8
#define MX_RD_GPIO_Port GPIOA
#define MX_GD_Pin GPIO_PIN_9
#define MX_GD_GPIO_Port GPIOA
#define LCD_BKLT_Pin GPIO_PIN_10
#define LCD_BKLT_GPIO_Port GPIOA
#define USB_DP_Pin GPIO_PIN_12
#define USB_DP_GPIO_Port GPIOA
#define SWDIO_Pin GPIO_PIN_13
#define SWDIO_GPIO_Port GPIOA
#define SWCLK_Pin GPIO_PIN_14
#define SWCLK_GPIO_Port GPIOA
#define LCD_nCS_Pin GPIO_PIN_15
#define LCD_nCS_GPIO_Port GPIOA
#define LCD_SCK_Pin GPIO_PIN_3
#define LCD_SCK_GPIO_Port GPIOB
#define LCD_MISO_Pin GPIO_PIN_4
#define LCD_MISO_GPIO_Port GPIOB
#define LCD_MOSI_Pin GPIO_PIN_5
#define LCD_MOSI_GPIO_Port GPIOB
#define LCD_DC_Pin GPIO_PIN_6
#define LCD_DC_GPIO_Port GPIOB
#define MX_BD_Pin GPIO_PIN_7
#define MX_BD_GPIO_Port GPIOB
#define BOOT0_Pin GPIO_PIN_3
#define BOOT0_GPIO_Port GPIOH
#define P_VSET_Pin GPIO_PIN_8
#define P_VSET_GPIO_Port GPIOB
#define PWR_UP_Pin GPIO_PIN_9
#define PWR_UP_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
