aa

Dependencies:   mbed TrapezoidControl QEI

Committer:
7ka884
Date:
Mon Sep 10 01:39:15 2018 +0000
Revision:
1:b1219d8ca117
Child:
4:ba9df71868df
Child:
5:3ae504b88679
A

Who changed what in which revision?

UserRevisionLine numberNew contents of line
7ka884 1:b1219d8ca117 1 #include "Rotaryencoder.h"
7ka884 1:b1219d8ca117 2 #include "mbed.h"
7ka884 1:b1219d8ca117 3
7ka884 1:b1219d8ca117 4 #include "../../System/Process/InterruptProcess.h"
7ka884 1:b1219d8ca117 5
7ka884 1:b1219d8ca117 6 InterruptIn BoardRtInt[] = {
7ka884 1:b1219d8ca117 7 InterruptIn(RT11_PIN),
7ka884 1:b1219d8ca117 8 InterruptIn(RT12_PIN),
7ka884 1:b1219d8ca117 9
7ka884 1:b1219d8ca117 10 InterruptIn(RT21_PIN),
7ka884 1:b1219d8ca117 11 InterruptIn(RT22_PIN),
7ka884 1:b1219d8ca117 12 };
7ka884 1:b1219d8ca117 13
7ka884 1:b1219d8ca117 14 namespace ROTARYENCODER {
7ka884 1:b1219d8ca117 15 void Int::Initialize() {
7ka884 1:b1219d8ca117 16 BoardRtInt[0].mode(PullUp);
7ka884 1:b1219d8ca117 17 BoardRtInt[1].mode(PullUp);
7ka884 1:b1219d8ca117 18 BoardRtInt[2].mode(PullUp);
7ka884 1:b1219d8ca117 19 BoardRtInt[3].mode(PullUp);
7ka884 1:b1219d8ca117 20
7ka884 1:b1219d8ca117 21 BoardRtInt[0].fall(int0);
7ka884 1:b1219d8ca117 22 BoardRtInt[1].fall(int1);
7ka884 1:b1219d8ca117 23 BoardRtInt[2].fall(int2);
7ka884 1:b1219d8ca117 24 BoardRtInt[3].fall(int3);
7ka884 1:b1219d8ca117 25 }
7ka884 1:b1219d8ca117 26 }