Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Input/ExternalInt/ExternalInt.cpp
- Committer:
- M_souta
- Date:
- 2019-09-17
- Revision:
- 22:7d93f79a3686
- Parent:
- 19:96a462583af9
File content as of revision 22:7d93f79a3686:
#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);
}
}