106 lines
3.2 KiB
C
106 lines
3.2 KiB
C
/* 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) 2023 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 "stm32h7xx_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 CHARGING_POINT_PWM_Pin GPIO_PIN_5
|
|
#define CHARGING_POINT_PWM_GPIO_Port GPIOE
|
|
#define EV_START_CHARGING_Pin GPIO_PIN_6
|
|
#define EV_START_CHARGING_GPIO_Port GPIOE
|
|
#define STATUS1_Pin GPIO_PIN_6
|
|
#define STATUS1_GPIO_Port GPIOF
|
|
#define STATUS2_Pin GPIO_PIN_7
|
|
#define STATUS2_GPIO_Port GPIOF
|
|
#define STATUS3_Pin GPIO_PIN_8
|
|
#define STATUS3_GPIO_Port GPIOF
|
|
#define WARNING_LED_Pin GPIO_PIN_9
|
|
#define WARNING_LED_GPIO_Port GPIOF
|
|
#define TOUCH_NRST_Pin GPIO_PIN_12
|
|
#define TOUCH_NRST_GPIO_Port GPIOD
|
|
#define TOUCH_INT_Pin GPIO_PIN_13
|
|
#define TOUCH_INT_GPIO_Port GPIOD
|
|
#define UP_DOWN_Pin GPIO_PIN_8
|
|
#define UP_DOWN_GPIO_Port GPIOC
|
|
#define LEFT_RIGHT_Pin GPIO_PIN_10
|
|
#define LEFT_RIGHT_GPIO_Port GPIOC
|
|
#define DISP_RESET_Pin GPIO_PIN_11
|
|
#define DISP_RESET_GPIO_Port GPIOC
|
|
#define STANDBY_Pin GPIO_PIN_12
|
|
#define STANDBY_GPIO_Port GPIOC
|
|
#define RSD_MCU_Pin GPIO_PIN_4
|
|
#define RSD_MCU_GPIO_Port GPIOD
|
|
#define DCFAIL_3V3_Pin GPIO_PIN_5
|
|
#define DCFAIL_3V3_GPIO_Port GPIOD
|
|
#define ACFAIL_3V3_Pin GPIO_PIN_9
|
|
#define ACFAIL_3V3_GPIO_Port GPIOG
|
|
#define CC_STATUS_3V3_Pin GPIO_PIN_11
|
|
#define CC_STATUS_3V3_GPIO_Port GPIOG
|
|
#define OT_STATUS_3V3_Pin GPIO_PIN_12
|
|
#define OT_STATUS_3V3_GPIO_Port GPIOG
|
|
#define LIM_STATUS_3V3_Pin GPIO_PIN_14
|
|
#define LIM_STATUS_3V3_GPIO_Port GPIOG
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|