/* 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) 2025 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 "stm32f4xx_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 DAC_PWR_Pin GPIO_PIN_13
#define DAC_PWR_GPIO_Port GPIOC
#define RELE_LV_Pin GPIO_PIN_0
#define RELE_LV_GPIO_Port GPIOC
#define ADC_BAT_Pin GPIO_PIN_1
#define ADC_BAT_GPIO_Port GPIOC
#define ADC_HV_Pin GPIO_PIN_2
#define ADC_HV_GPIO_Port GPIOC
#define ADC_PWR_Pin GPIO_PIN_3
#define ADC_PWR_GPIO_Port GPIOC
#define BUT_1_Pin GPIO_PIN_0
#define BUT_1_GPIO_Port GPIOA
#define ECG_RV_Pin GPIO_PIN_1
#define ECG_RV_GPIO_Port GPIOA
#define ECG_RA_Pin GPIO_PIN_2
#define ECG_RA_GPIO_Port GPIOA
#define ECG_LV_Pin GPIO_PIN_3
#define ECG_LV_GPIO_Port GPIOA
#define DAC_OUT1_Pin GPIO_PIN_4
#define DAC_OUT1_GPIO_Port GPIOA
#define DAC_OUT2_Pin GPIO_PIN_5
#define DAC_OUT2_GPIO_Port GPIOA
#define HV_DIS_Pin GPIO_PIN_7
#define HV_DIS_GPIO_Port GPIOA
#define HV_PWR_EN_Pin GPIO_PIN_4
#define HV_PWR_EN_GPIO_Port GPIOC
#define HV_N_1_Pin GPIO_PIN_5
#define HV_N_1_GPIO_Port GPIOC
#define HV_P_1_Pin GPIO_PIN_0
#define HV_P_1_GPIO_Port GPIOB
#define HV_P_2_Pin GPIO_PIN_1
#define HV_P_2_GPIO_Port GPIOB
#define HV_N_2_Pin GPIO_PIN_2
#define HV_N_2_GPIO_Port GPIOB
#define ECG_PWR_Pin GPIO_PIN_10
#define ECG_PWR_GPIO_Port GPIOB
#define ECG_CS_Pin GPIO_PIN_12
#define ECG_CS_GPIO_Port GPIOB
#define ECG_INT_Pin GPIO_PIN_7
#define ECG_INT_GPIO_Port GPIOC
#define ECG_INT_EXTI_IRQn EXTI9_5_IRQn
#define BLE_PWRC_Pin GPIO_PIN_9
#define BLE_PWRC_GPIO_Port GPIOC
#define BLE_PWR_Pin GPIO_PIN_8
#define BLE_PWR_GPIO_Port GPIOA
#define SD_PWR_Pin GPIO_PIN_15
#define SD_PWR_GPIO_Port GPIOA
#define SD_DET_Pin GPIO_PIN_10
#define SD_DET_GPIO_Port GPIOC
#define SPI_CS_2_Pin GPIO_PIN_11
#define SPI_CS_2_GPIO_Port GPIOC
#define SPI_CS_1_Pin GPIO_PIN_4
#define SPI_CS_1_GPIO_Port GPIOB
#define SPI1_PWR_Pin GPIO_PIN_6
#define SPI1_PWR_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
