aa
Dependencies: mbed TrapezoidControl QEI
Input/ExternalInt/ExternalInt.cpp@16:3f2c2d89372b, 2019-07-01 (annotated)
- Committer:
- kishibekairohan
- Date:
- Mon Jul 01 13:00:20 2019 +0000
- Revision:
- 16:3f2c2d89372b
- Parent:
- 1:b1219d8ca117
- Child:
- 19:96a462583af9
aaa;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
t_yamamoto | 0:669ef71cba68 | 1 | #include "ExternalInt.h" |
t_yamamoto | 0:669ef71cba68 | 2 | #include "mbed.h" |
t_yamamoto | 0:669ef71cba68 | 3 | |
t_yamamoto | 0:669ef71cba68 | 4 | #include "../../System/Process/InterruptProcess.h" |
t_yamamoto | 0:669ef71cba68 | 5 | |
t_yamamoto | 0:669ef71cba68 | 6 | InterruptIn BoardInt[] = { |
t_yamamoto | 0:669ef71cba68 | 7 | InterruptIn(INT0_PIN), |
t_yamamoto | 0:669ef71cba68 | 8 | InterruptIn(INT1_PIN), |
kishibekairohan | 16:3f2c2d89372b | 9 | InterruptIn(INT2_PIN), |
kishibekairohan | 16:3f2c2d89372b | 10 | InterruptIn(INT3_PIN), |
kishibekairohan | 16:3f2c2d89372b | 11 | InterruptIn(INT4_PIN), |
kishibekairohan | 16:3f2c2d89372b | 12 | InterruptIn(INT5_PIN), |
t_yamamoto | 0:669ef71cba68 | 13 | }; |
t_yamamoto | 0:669ef71cba68 | 14 | |
t_yamamoto | 0:669ef71cba68 | 15 | namespace EXTERNALINT { |
t_yamamoto | 0:669ef71cba68 | 16 | void Int::Initialize() { |
t_yamamoto | 0:669ef71cba68 | 17 | BoardInt[0].mode(PullUp); |
t_yamamoto | 0:669ef71cba68 | 18 | BoardInt[1].mode(PullUp); |
kishibekairohan | 16:3f2c2d89372b | 19 | BoardInt[2].mode(PullUp); |
kishibekairohan | 16:3f2c2d89372b | 20 | BoardInt[3].mode(PullUp); |
kishibekairohan | 16:3f2c2d89372b | 21 | BoardInt[4].mode(PullUp); |
kishibekairohan | 16:3f2c2d89372b | 22 | BoardInt[5].mode(PullUp); |
kishibekairohan | 16:3f2c2d89372b | 23 | |
t_yamamoto | 0:669ef71cba68 | 24 | BoardInt[0].fall(int0); |
t_yamamoto | 0:669ef71cba68 | 25 | BoardInt[1].fall(int1); |
kishibekairohan | 16:3f2c2d89372b | 26 | BoardInt[2].fall(int1); |
kishibekairohan | 16:3f2c2d89372b | 27 | BoardInt[3].fall(int1); |
kishibekairohan | 16:3f2c2d89372b | 28 | BoardInt[4].fall(int1); |
kishibekairohan | 16:3f2c2d89372b | 29 | BoardInt[5].fall(int1); |
t_yamamoto | 0:669ef71cba68 | 30 | } |
t_yamamoto | 0:669ef71cba68 | 31 | } |