[hal] Remove HAL_GetPort (#7754)

This commit is contained in:
Thad House
2025-01-30 18:59:34 -08:00
committed by GitHub
parent 6e704370b3
commit ad29d45dfb
44 changed files with 84 additions and 272 deletions

View File

@@ -26,8 +26,7 @@ PWM::PWM(int channel, bool registerSendable) {
auto stack = wpi::GetStackTrace(1);
int32_t status = 0;
m_handle =
HAL_InitializePWMPort(HAL_GetPort(channel), stack.c_str(), &status);
m_handle = HAL_InitializePWMPort(channel, stack.c_str(), &status);
FRC_CheckErrorStatus(status, "Channel {}", channel);
m_channel = channel;