-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsysinit.h
More file actions
32 lines (27 loc) · 996 Bytes
/
sysinit.h
File metadata and controls
32 lines (27 loc) · 996 Bytes
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
#ifndef __SYSINIT_H
#define __SYSINIT_H
/*****************************************************************************
Copyright: 2016-2017, Firework.
File name: sysinit.h
Description: 此文件主要完成家庭网关系统按键初始化的相关操作,使用了树莓派中
的wiringPi库作为GPIO控制库
Author: YU SHAO YANG
Version: 1.0
Date: 2016.04.02
History: NONE
*****************************************************************************/
/*四个按键端口号为0,1,2,3(wPi编号下)*/
/*分别对D:\Technology Innovation\enterpreneur project\Intelligent network pro\gateway\sysinit.h应GPIO17,18,27,22(BCM编号下)*/
#define Key1 0
#define Key2 1
#define Key3 2
#define Key4 3
extern void key_interrupt_1(void);
extern void key_interrupt_2(void);
extern void key_interrupt_3(void);
extern void key_interrupt_4(void);
void gateway_init(void);
void delay_us(unsigned int useconds);
void delay_ms(unsigned int mseconds);
void delay_s(unsigned int seconds);
#endif