aa

Dependencies:   mbed TrapezoidControl QEI

Input/ExternalInt/ExternalInt.cpp

Committer:
M_souta
Date:
2019-07-16
Revision:
19:96a462583af9
Parent:
16:3f2c2d89372b

File content as of revision 19:96a462583af9:

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

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

InterruptIn BoardInt[] = {
    InterruptIn(INT0_PIN),
    InterruptIn(INT1_PIN),
    InterruptIn(INT2_PIN),
    InterruptIn(INT3_PIN),
    InterruptIn(INT4_PIN),
//    InterruptIn(INT5_PIN),
};

namespace EXTERNALINT {
    void Int::Initialize() {
        BoardInt[0].mode(PullUp);
        BoardInt[1].mode(PullUp);
        BoardInt[2].mode(PullUp);
        BoardInt[3].mode(PullUp);
        BoardInt[4].mode(PullUp);
//        BoardInt[5].mode(PullUp);
        
        BoardInt[0].fall(int0);
        BoardInt[1].fall(int1);
        BoardInt[2].fall(int1);
        BoardInt[3].fall(int1);
        BoardInt[4].fall(int1);
//        BoardInt[5].fall(int1);
    }
}