/* 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 Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

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

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
void delay_us(uint16_t nus);
/* 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 LED_G_Pin GPIO_PIN_2
#define LED_G_GPIO_Port GPIOE
#define LED_R_Pin GPIO_PIN_3
#define LED_R_GPIO_Port GPIOE
#define FAN_Pin GPIO_PIN_4
#define FAN_GPIO_Port GPIOE
#define BOMA1_Pin GPIO_PIN_6
#define BOMA1_GPIO_Port GPIOE
#define Trig_Pin GPIO_PIN_0
#define Trig_GPIO_Port GPIOF
#define BOMA2_Pin GPIO_PIN_1
#define BOMA2_GPIO_Port GPIOF
#define BOMA3_Pin GPIO_PIN_3
#define BOMA3_GPIO_Port GPIOF
#define BOMA4_Pin GPIO_PIN_5
#define BOMA4_GPIO_Port GPIOF
#define LCD_BL_Pin GPIO_PIN_10
#define LCD_BL_GPIO_Port GPIOF
#define KEY1_Pin GPIO_PIN_0
#define KEY1_GPIO_Port GPIOC
#define KEY2_Pin GPIO_PIN_1
#define KEY2_GPIO_Port GPIOC
#define KEY3_Pin GPIO_PIN_2
#define KEY3_GPIO_Port GPIOC
#define KEY4_Pin GPIO_PIN_3
#define KEY4_GPIO_Port GPIOC
#define drug_state_Pin GPIO_PIN_6
#define drug_state_GPIO_Port GPIOA
#define RC522_RST_Pin GPIO_PIN_1
#define RC522_RST_GPIO_Port GPIOB
#define RC522_CS_Pin GPIO_PIN_12
#define RC522_CS_GPIO_Port GPIOB
#define BEEP_Pin GPIO_PIN_3
#define BEEP_GPIO_Port GPIOG
#define spray_Pin GPIO_PIN_4
#define spray_GPIO_Port GPIOG
#define tip_led_Pin GPIO_PIN_13
#define tip_led_GPIO_Port GPIOG
#define ESP8266_RST_Pin GPIO_PIN_5
#define ESP8266_RST_GPIO_Port GPIOB
#define LED_B_Pin GPIO_PIN_0
#define LED_B_GPIO_Port GPIOE
#define LED_Y_Pin GPIO_PIN_1
#define LED_Y_GPIO_Port GPIOE
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

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