aaaaaaaaa

Dependencies:   QEI mbed

Fork of MainBoard2018_Auto_Master_A_new by Akihiro Nakabayashi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ExternalInt.cpp Source File

ExternalInt.cpp

00001 #include "ExternalInt.h"
00002 #include "mbed.h"
00003 
00004 #include "../../System/Process/InterruptProcess.h"
00005 
00006 InterruptIn BoardInt[] = {
00007     InterruptIn(INT0_PIN),
00008     InterruptIn(INT1_PIN),
00009 };
00010 
00011 namespace EXTERNALINT {
00012     void Int::Initialize() {
00013         BoardInt[0].mode(PullUp);
00014         BoardInt[1].mode(PullUp);
00015 
00016         BoardInt[0].fall(int0);
00017         BoardInt[1].fall(int1);
00018     }
00019 }