/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f3xx_hal.h"
#include "stm32f3xx_ll_adc.h"
#include "stm32f3xx_ll_dma.h"
#include "stm32f3xx_ll_tim.h"
#include "stm32f3xx_ll_system.h"
#include "stm32f3xx_ll_gpio.h"
#include "stm32f3xx_ll_exti.h"
#include "stm32f3xx_ll_bus.h"
#include "stm32f3xx_ll_cortex.h"
#include "stm32f3xx_ll_rcc.h"
#include "stm32f3xx_ll_utils.h"
#include "stm32f3xx_ll_pwr.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "myapp.h"
/* 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 */
extern IWDG_HandleTypeDef hiwdg;
/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define B1_USER_Pin LL_GPIO_PIN_13
#define B1_USER_GPIO_Port GPIOC
#define Iph1_Pin LL_GPIO_PIN_0
#define Iph1_GPIO_Port GPIOC
#define Iph3_Pin LL_GPIO_PIN_2
#define Iph3_GPIO_Port GPIOC
#define ENK_B_Pin LL_GPIO_PIN_1
#define ENK_B_GPIO_Port GPIOA
#define LD2_Pin LL_GPIO_PIN_5
#define LD2_GPIO_Port GPIOA
#define Ud_P_Pin LL_GPIO_PIN_6
#define Ud_P_GPIO_Port GPIOA
#define Ud_N_Pin LL_GPIO_PIN_7
#define Ud_N_GPIO_Port GPIOA
#define AN_I_Pin LL_GPIO_PIN_4
#define AN_I_GPIO_Port GPIOC
#define U_L1_Pin LL_GPIO_PIN_5
#define U_L1_GPIO_Port GPIOC
#define Vpot_Pin LL_GPIO_PIN_1
#define Vpot_GPIO_Port GPIOB
#define Th_h_Pin LL_GPIO_PIN_2
#define Th_h_GPIO_Port GPIOB
#define ENK_INDEX_Pin LL_GPIO_PIN_10
#define ENK_INDEX_GPIO_Port GPIOB
#define PWM_1B_Pin LL_GPIO_PIN_13
#define PWM_1B_GPIO_Port GPIOB
#define PWM_2B_Pin LL_GPIO_PIN_14
#define PWM_2B_GPIO_Port GPIOB
#define PWM_3B_Pin LL_GPIO_PIN_15
#define PWM_3B_GPIO_Port GPIOB
#define DO2_Pin LL_GPIO_PIN_6
#define DO2_GPIO_Port GPIOC
#define PWM_PFC_Pin LL_GPIO_PIN_8
#define PWM_PFC_GPIO_Port GPIOC
#define OverTemp_Pin LL_GPIO_PIN_9
#define OverTemp_GPIO_Port GPIOC
#define PWM_1T_Pin LL_GPIO_PIN_8
#define PWM_1T_GPIO_Port GPIOA
#define PWM_2T_Pin LL_GPIO_PIN_9
#define PWM_2T_GPIO_Port GPIOA
#define PWM_3T_Pin LL_GPIO_PIN_10
#define PWM_3T_GPIO_Port GPIOA
#define PWM_RB_Pin LL_GPIO_PIN_12
#define PWM_RB_GPIO_Port GPIOA
#define ENK_A_Pin LL_GPIO_PIN_15
#define ENK_A_GPIO_Port GPIOA
#define DO1_Pin LL_GPIO_PIN_10
#define DO1_GPIO_Port GPIOC
#define DO0_Pin LL_GPIO_PIN_11
#define DO0_GPIO_Port GPIOC
#define OverCurrent_Pin LL_GPIO_PIN_12
#define OverCurrent_GPIO_Port GPIOC
#define DI0_Pin LL_GPIO_PIN_4
#define DI0_GPIO_Port GPIOB
#define DI1_Pin LL_GPIO_PIN_5
#define DI1_GPIO_Port GPIOB
#define DO3_Pin LL_GPIO_PIN_7
#define DO3_GPIO_Port GPIOB
#define DI2_Pin LL_GPIO_PIN_8
#define DI2_GPIO_Port GPIOB
#define DI3_Pin LL_GPIO_PIN_9
#define DI3_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
