mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
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:
@@ -8,6 +8,7 @@
|
||||
#include "ErrorBase.h"
|
||||
#include <stdio.h>
|
||||
#include "Base.h"
|
||||
#include "Resource.h"
|
||||
|
||||
/**
|
||||
* Base class for all sensors.
|
||||
@@ -51,6 +52,7 @@ protected:
|
||||
static void* m_digital_ports[kDigitalChannels];
|
||||
static void* m_relay_ports[kRelayChannels];
|
||||
static void* m_pwm_ports[kPwmChannels];
|
||||
static Resource *m_interrupts;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(SensorBase);
|
||||
|
||||
Reference in New Issue
Block a user