da

Dependencies:   mbed TrapezoidControl QEI

Committer:
t_yamamoto
Date:
Sat Sep 08 06:05:22 2018 +0000
Revision:
0:669ef71cba68
Child:
1:b1219d8ca117
???????

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 InterruptIn(INT2_PIN),
t_yamamoto 0:669ef71cba68 10 InterruptIn(INT3_PIN),
t_yamamoto 0:669ef71cba68 11 InterruptIn(INT4_PIN),
t_yamamoto 0:669ef71cba68 12 InterruptIn(INT5_PIN),
t_yamamoto 0:669ef71cba68 13 InterruptIn(INT6_PIN),
t_yamamoto 0:669ef71cba68 14 InterruptIn(INT7_PIN),
t_yamamoto 0:669ef71cba68 15 InterruptIn(INT8_PIN),
t_yamamoto 0:669ef71cba68 16 InterruptIn(INT9_PIN),
t_yamamoto 0:669ef71cba68 17 InterruptIn(INT10_PIN),
t_yamamoto 0:669ef71cba68 18 InterruptIn(INT11_PIN),
t_yamamoto 0:669ef71cba68 19 InterruptIn(INT12_PIN),
t_yamamoto 0:669ef71cba68 20 InterruptIn(INT13_PIN),
t_yamamoto 0:669ef71cba68 21 InterruptIn(INT14_PIN),
t_yamamoto 0:669ef71cba68 22 };
t_yamamoto 0:669ef71cba68 23
t_yamamoto 0:669ef71cba68 24 namespace EXTERNALINT {
t_yamamoto 0:669ef71cba68 25 void Int::Initialize() {
t_yamamoto 0:669ef71cba68 26 BoardInt[0].mode(PullUp);
t_yamamoto 0:669ef71cba68 27 BoardInt[1].mode(PullUp);
t_yamamoto 0:669ef71cba68 28 BoardInt[2].mode(PullUp);
t_yamamoto 0:669ef71cba68 29 BoardInt[3].mode(PullUp);
t_yamamoto 0:669ef71cba68 30 BoardInt[4].mode(PullUp);
t_yamamoto 0:669ef71cba68 31 BoardInt[5].mode(PullUp);
t_yamamoto 0:669ef71cba68 32 BoardInt[6].mode(PullUp);
t_yamamoto 0:669ef71cba68 33 BoardInt[7].mode(PullUp);
t_yamamoto 0:669ef71cba68 34 BoardInt[8].mode(PullUp);
t_yamamoto 0:669ef71cba68 35 BoardInt[9].mode(PullUp);
t_yamamoto 0:669ef71cba68 36 BoardInt[10].mode(PullUp);
t_yamamoto 0:669ef71cba68 37 BoardInt[11].mode(PullUp);
t_yamamoto 0:669ef71cba68 38 BoardInt[12].mode(PullUp);
t_yamamoto 0:669ef71cba68 39 BoardInt[13].mode(PullUp);
t_yamamoto 0:669ef71cba68 40 BoardInt[14].mode(PullUp);
t_yamamoto 0:669ef71cba68 41
t_yamamoto 0:669ef71cba68 42 BoardInt[0].fall(int0);
t_yamamoto 0:669ef71cba68 43 BoardInt[1].fall(int1);
t_yamamoto 0:669ef71cba68 44 BoardInt[2].fall(int2);
t_yamamoto 0:669ef71cba68 45 BoardInt[3].fall(int3);
t_yamamoto 0:669ef71cba68 46 BoardInt[4].fall(int4);
t_yamamoto 0:669ef71cba68 47 BoardInt[5].fall(int5);
t_yamamoto 0:669ef71cba68 48 BoardInt[6].fall(int6);
t_yamamoto 0:669ef71cba68 49 BoardInt[7].fall(int7);
t_yamamoto 0:669ef71cba68 50 BoardInt[8].fall(int8);
t_yamamoto 0:669ef71cba68 51 BoardInt[9].fall(int9);
t_yamamoto 0:669ef71cba68 52 BoardInt[10].fall(int10);
t_yamamoto 0:669ef71cba68 53 BoardInt[11].fall(int11);
t_yamamoto 0:669ef71cba68 54 BoardInt[12].fall(int12);
t_yamamoto 0:669ef71cba68 55 BoardInt[13].fall(int13);
t_yamamoto 0:669ef71cba68 56 BoardInt[14].fall(int14);
t_yamamoto 0:669ef71cba68 57 }
t_yamamoto 0:669ef71cba68 58 }