-
Notifications
You must be signed in to change notification settings - Fork 0
/
EXTI_config.h
61 lines (46 loc) · 1.15 KB
/
EXTI_config.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
57
58
59
60
61
/*
* EXTI_config.h
*
* Created on: Oct 20, 2022
* Author: MSAEED99
*/
#ifndef EXTI_CONFIG_H_
#define EXTI_CONFIG_H_
/**********Initializing INT0, INT1 and INT2 Using Pre-build configuration**********/
/* INT0 Options:
* 1- INT0_ENABLE
* 2- INT0_DISABLE
*/
#define INT0_EN_STATE INT0_ENABLE
/*INT0 Sense Control Options
* 1- INT0_LOW_LEVEL
* 2- INT0_ON_CHANGE
* 3- INT0_FALLING_EDGE
* 4- INT0_RISING_EDGE
*/
#define INT0_SENSE_CONTROL INT0_FALLING_EDGE
// =======================================================
/* INT1 Options:
* 1- INT1_ENABLE
* 2- INT1_DISABLE
*/
#define INT1_EN_STATE INT1_ENABLE
/*INT0 Sense Control Options
* 1- INT1_LOW_LEVEL
* 2- INT1_ON_CHANGE
* 3- INT1_FALLING_EDGE
* 4- INT1_RISING_EDGE
*/
#define INT1_SENSE_CONTROL INT1_FALLING_EDGE
// =======================================================
/* INT2 Options:
* 1- INT2_ENABLE
* 2- INT2_DISABLE
*/
#define INT2_EN_STATE INT2_ENABLE
/*INT2 Sense Control Options
* 1- INT2_FALLING_EDGE
* 2- INT2_RISING_EDGE
*/
#define INT2_SENSE_CONTROL INT2_FALLING_EDGE
#endif /* EXTI_CONFIG_H_ */