aa
Dependencies: mbed TrapezoidControl QEI
Input/Encoder/Encoder.cpp
- Committer:
- yabahiro
- Date:
- 2019-10-05
- Revision:
- 47:b6e5a6bfe7ab
- Parent:
- 16:3f2c2d89372b
File content as of revision 47:b6e5a6bfe7ab:
#include "Encoder.h" #include "mbed.h" #include "../../System/Process/InterruptProcess.h" InterruptIn BoardECD[] = { InterruptIn(ECD_A_0), InterruptIn(ECD_A_1), InterruptIn(ECD_A_2), InterruptIn(ECD_A_3), InterruptIn(ECD_B_0), InterruptIn(ECD_B_1), InterruptIn(ECD_B_2), InterruptIn(ECD_B_3), }; namespace ENCODER { void ECD::Initialize() { BoardECD[0].mode(PullUp); BoardECD[1].mode(PullUp); BoardECD[2].mode(PullUp); BoardECD[3].mode(PullUp); BoardECD[0].fall(int2); BoardECD[1].fall(int3); BoardECD[2].fall(int4); BoardECD[3].fall(int5); } }