mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +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:
@@ -17,6 +17,7 @@ const uint32_t SensorBase::kPwmChannels;
|
||||
const uint32_t SensorBase::kRelayChannels;
|
||||
const uint32_t SensorBase::kPDPChannels;
|
||||
const uint32_t SensorBase::kChassisSlots;
|
||||
Resource *SensorBase::m_interrupts = NULL;
|
||||
SensorBase *SensorBase::m_singletonList = NULL;
|
||||
|
||||
static bool portsInitialized = false;
|
||||
@@ -54,6 +55,8 @@ SensorBase::SensorBase()
|
||||
wpi_setErrorWithContext(status, getHALErrorMessage(status));
|
||||
}
|
||||
}
|
||||
|
||||
Resource::CreateResourceObject(&m_interrupts, interrupt_kNumSystems);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user