123456789101112131415161718192021222324 |
- #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
|