/* 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) 2022 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 */
void Fluidization_PROCESS();
/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define MCO_Pin GPIO_PIN_0
#define MCO_GPIO_Port GPIOH
#define PWM_VIBR_Pin GPIO_PIN_0
#define PWM_VIBR_GPIO_Port GPIOA
#define TEMP_SCL_Pin GPIO_PIN_1
#define TEMP_SCL_GPIO_Port GPIOA
#define TEMP_CS_Pin GPIO_PIN_2
#define TEMP_CS_GPIO_Port GPIOA
#define SMPS_EN_Pin GPIO_PIN_4
#define SMPS_EN_GPIO_Port GPIOA
#define SMPS_V1_Pin GPIO_PIN_5
#define SMPS_V1_GPIO_Port GPIOA
#define SMPS_PG_Pin GPIO_PIN_6
#define SMPS_PG_GPIO_Port GPIOA
#define SMPS_SW_Pin GPIO_PIN_7
#define SMPS_SW_GPIO_Port GPIOA
#define ENC_CLK_Pin GPIO_PIN_0
#define ENC_CLK_GPIO_Port GPIOB
#define ENC_DT_Pin GPIO_PIN_1
#define ENC_DT_GPIO_Port GPIOB
#define ENC_SW_Pin GPIO_PIN_2
#define ENC_SW_GPIO_Port GPIOB
#define ENC_SW_EXTI_IRQn EXTI2_IRQn
#define HEATER_SSR_Pin GPIO_PIN_13
#define HEATER_SSR_GPIO_Port GPIOB
#define CAL_SW_Z_Pin GPIO_PIN_14
#define CAL_SW_Z_GPIO_Port GPIOB
#define CAL_SW_X_Pin GPIO_PIN_15
#define CAL_SW_X_GPIO_Port GPIOB
#define ENA_Z_Pin GPIO_PIN_6
#define ENA_Z_GPIO_Port GPIOC
#define ENA_X_Pin GPIO_PIN_7
#define ENA_X_GPIO_Port GPIOC
#define DIR_Z_Pin GPIO_PIN_8
#define DIR_Z_GPIO_Port GPIOC
#define DIR_X_Pin GPIO_PIN_9
#define DIR_X_GPIO_Port GPIOC
#define PWM_Z_Pin GPIO_PIN_8
#define PWM_Z_GPIO_Port GPIOA
#define LCD_SCL_Pin GPIO_PIN_9
#define LCD_SCL_GPIO_Port GPIOA
#define LCD_SDA_Pin GPIO_PIN_10
#define LCD_SDA_GPIO_Port GPIOA
#define PWM_X_Pin GPIO_PIN_11
#define PWM_X_GPIO_Port GPIOA
#define TMS_Pin GPIO_PIN_13
#define TMS_GPIO_Port GPIOA
#define TCK_Pin GPIO_PIN_14
#define TCK_GPIO_Port GPIOA
#define SWO_Pin GPIO_PIN_3
#define SWO_GPIO_Port GPIOB
#define TEMP_MISO_Pin GPIO_PIN_4
#define TEMP_MISO_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
