#ifndef __POWER_KEY_H #define __POWER_KEY_H #include "stm32f1xx_hal.h" #define POWER_ON_TIME (uint16_t)1000 //开机延时 #define POWER_OFF_TIME (uint16_t)200 //关机延时 typedef enum { Power_KeyStatus_Init = 0x00, Power_KeyStatus_OnCheck, Power_KeyStatus_OnEnd, Power_KeyStatus_OffCheck, Power_KeyStatus_Off }Power_KeyStatus_Struct_t; extern Power_KeyStatus_Struct_t Power_KeyStatus; extern uint32_t Power_KeyCheck_TimeDelay; void Power_Key_Init(void); void Power_OnOff_Process(void); #endif