daad

Dependencies:   mbed TrapezoidControl QEI

Input/ExternalInt/ExternalInt.cpp

Committer:
7ka884
Date:
2018-09-10
Revision:
1:b1219d8ca117
Parent:
0:669ef71cba68
Child:
16:3f2c2d89372b

File content as of revision 1:b1219d8ca117:

#include "ExternalInt.h"
#include "mbed.h"

#include "../../System/Process/InterruptProcess.h"

InterruptIn BoardInt[] = {
    InterruptIn(INT0_PIN),
    InterruptIn(INT1_PIN),
};

namespace EXTERNALINT {
    void Int::Initialize() {
        BoardInt[0].mode(PullUp);
        BoardInt[1].mode(PullUp);

        BoardInt[0].fall(int0);
        BoardInt[1].fall(int1);
    }
}