simplegui/Transplant/MiniDevCore/BSP/inc/trigger_flags.h
Meco Man 795c5b44ca 代码格式整理
将tab键替换为空格
删除每行末尾无用的空格
2021-04-13 23:10:27 +08:00

42 lines
824 B
C

#ifndef _INCLUDE_TRIGGER_FLAGS_H_
#define _INCLUDE_TRIGGER_FLAGS_H_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "usart.h"
#include "keyboard.h"
#include "rtc.h"
typedef union
{
uint8_t uiByte[2];
uint16_t uiKeyCode;
}KEY_VALUE;
typedef struct
{
KEY_VALUE unKeyValue;
__IO bool bIsTriggered;
__IO bool bHalfRev;
}USART_INPUT;
void USARTReceiveProc(USART_INT_REASON eReason, uint8_t uiReceiveData);
bool UsartIsReceived(void);
uint16_t GetReceivedCode(void);
void UsartTriggerReset(void);
void TimerInterruptProc(void);
bool BaseTimerIsTrigger(void);
void BaseTimerTriggerReset(void);
void RTCInterruptProc(uint32_t uiTimeStamp);
bool RTCTimerIsTrigger(void);
void RTCTimerTriggerReset(void);
void KeyEventProc(uint16_t uiKeyCode, KEY_EVENT eEvent);
#endif