46 lines
822 B
C
46 lines
822 B
C
/*
|
|
******************************************************************************
|
|
*
|
|
* @file hall.h
|
|
* @brief hall module
|
|
*
|
|
*
|
|
* @version 1.0
|
|
* @date 2023/05/12 09:59:40
|
|
* @author Alex Xu
|
|
*
|
|
* Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd.
|
|
* All Rights Reserved
|
|
*
|
|
* History:
|
|
* Revision Date Author Desc
|
|
* 1.0.0 2023/07/12 Alex build this file
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __HALL_H__
|
|
#define __HALL_H__
|
|
|
|
#include "define.h"
|
|
|
|
#ifdef HALL_ENABLE
|
|
|
|
typedef enum{
|
|
|
|
CLOSE = 0,
|
|
OPEN = !CLOSE
|
|
|
|
} CoverStatus_E;
|
|
|
|
extern CoverStatus_E CoverStatus;
|
|
|
|
extern bit CoverEvent_Flg;
|
|
extern bit CoverEvent_Flg_led;
|
|
|
|
extern void Hall_Handler(void);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|