[wpiutil,hal] Move C++ Handle wrapper to wpiutil (#8935)

Also move WPI_Handle typedef to its own header (util/Handle.h).
This commit is contained in:
Peter Johnson
2026-06-01 13:57:25 -07:00
committed by GitHub
parent 3d982f81dd
commit 3f0d7bc2c4
24 changed files with 126 additions and 127 deletions

View File

@@ -5,8 +5,8 @@
#pragma once
#include "wpi/hal/DIO.h"
#include "wpi/hal/Types.hpp"
#include "wpi/units/time.hpp"
#include "wpi/util/Handle.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
@@ -142,8 +142,8 @@ class DigitalOutput : public wpi::util::Sendable,
private:
int m_channel;
wpi::hal::Handle<HAL_DigitalHandle, HAL_FreeDIOPort> m_handle;
wpi::hal::Handle<HAL_DigitalPWMHandle> m_pwmGenerator;
wpi::util::Handle<HAL_DigitalHandle, HAL_FreeDIOPort> m_handle;
wpi::util::Handle<HAL_DigitalPWMHandle> m_pwmGenerator;
};
} // namespace wpi