The last version programs

Dependencies:   mbed TrapezoidControl Pulse QEI

Committer:
Ryosei
Date:
Fri Mar 27 14:03:12 2020 +0000
Revision:
30:76b140d176f0
Parent:
22:7d93f79a3686
h

Who changed what in which revision?

UserRevisionLine numberNew 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),
t_yamamoto 0:669ef71cba68 9 };
t_yamamoto 0:669ef71cba68 10
t_yamamoto 0:669ef71cba68 11 namespace EXTERNALINT {
t_yamamoto 0:669ef71cba68 12 void Int::Initialize() {
t_yamamoto 0:669ef71cba68 13 BoardInt[0].mode(PullUp);
t_yamamoto 0:669ef71cba68 14 BoardInt[1].mode(PullUp);
kishibekairohan 16:3f2c2d89372b 15
t_yamamoto 0:669ef71cba68 16 BoardInt[0].fall(int0);
t_yamamoto 0:669ef71cba68 17 BoardInt[1].fall(int1);
t_yamamoto 0:669ef71cba68 18 }
t_yamamoto 0:669ef71cba68 19 }