mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Moves Interrupts over to Handles instead of pointers (#99)
This commit is contained in:
committed by
Peter Johnson
parent
74fc10999b
commit
046e043c4e
@@ -46,9 +46,6 @@ class InterruptableSensorBase : public SensorBase {
|
||||
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge);
|
||||
|
||||
protected:
|
||||
void* m_interrupt = nullptr;
|
||||
uint32_t m_interruptIndex = std::numeric_limits<uint32_t>::max();
|
||||
HalInterruptHandle m_interrupt = HAL_INVALID_HANDLE;
|
||||
void AllocateInterrupts(bool watcher);
|
||||
|
||||
static std::unique_ptr<Resource> m_interrupts;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user