aa
Dependencies: mbed TrapezoidControl QEI
Input/ExternalInt/ExternalInt.cpp@19:96a462583af9, 2019-07-16 (annotated)
- Committer:
- M_souta
- Date:
- Tue Jul 16 06:48:51 2019 +0000
- Revision:
- 19:96a462583af9
- Parent:
- 16:3f2c2d89372b
test
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), |
M_souta | 19:96a462583af9 | 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); |
M_souta | 19:96a462583af9 | 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); |
M_souta | 19:96a462583af9 | 29 | // BoardInt[5].fall(int1); |
t_yamamoto | 0:669ef71cba68 | 30 | } |
t_yamamoto | 0:669ef71cba68 | 31 | } |