-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio_exti.h
56 lines (40 loc) · 1.38 KB
/
gpio_exti.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*********************************************************************
* Filename: gpio_exti.h
*
* Description:
*
* Author: Bright Pan <[email protected]>
* Created at: 2013-04-27
*
* Change Log:
*
* Copyright (C) 2013 Yuettak Co.,Ltd
********************************************************************/
#ifndef _GPIO_EXTI_H_
#define _GPIO_EXTI_H_
#include <rthw.h>
#include <rtthread.h>
#include <stm32f10x.h>
#include "gpio.h"
#include "alarm.h"
#define DEVICE_NAME_LOCK_SHELL "lk_shell"// length <= 8
#define DEVICE_NAME_LOCK_TEMPERATRUE "lk_temp"
#define DEVICE_NAME_GATE_TEMPERATRUE "gt_temp"
#define DEVICE_NAME_LOCK_GATE "lk_gate"
#define DEVICE_NAME_CAMERA_COVER "cm_cover"
#define DEVICE_NAME_CAMERA_IRDASENSOR "cm_irda"
#define DEVICE_NAME_GSM_RING "g_ring"
//#define DEVICE_NAME_MOTOR_STATUS "mt_stat"
#define DEVICE_NAME_RFID_KEY_DETECT "rf_kdet"
#define DEVICE_NAME_BATTERY_SWITCH "bat_sw" /* BATTERY DEVICE NAME */
void rt_hw_lock_shell_register(void);
void rt_hw_lock_temperature_register(void);
void rt_hw_lock_gate_register(void);
void rt_hw_gate_temperature_register(void);
void rt_hw_camera_photosensor_register(void);
void rt_hw_camera_irdasensor_register(void);
void rt_hw_rfid_key_detect_register(void);
void rt_hw_gsm_ring_register(void);
void rt_hw_battery_switch_register(void);
void rt_hw_key2_register(void);
#endif