Analog interrupts in C++

Analog interrupts now work in C++.

The interrupts Resource was moved from a global in DigitalInput
to a static member of SensorBase.

An analog interrupt IT was added, and the digital interrupt one modified
to prevent a linker error.

Change-Id: I9a300daafed15e9666a4ccb405a509615e3dbb06
This commit is contained in:
Thomas Clark
2014-08-04 12:19:31 -04:00
parent f57a2dc5a9
commit d521eb79b9
7 changed files with 89 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ TEST_F(DIOLoopTest, FakeCounter) {
EXPECT_EQ(100, counter.Get()) << "Counter did not count up to 100.";
}
void InterruptHandler(uint32_t interruptAssertedMask, void *param) {
static void InterruptHandler(uint32_t interruptAssertedMask, void *param) {
*(int *)param = 12345;
}