[hal] Prefix all error #defines with HAL_ (#8780)

This commit is contained in:
Peter Johnson
2026-04-19 16:12:18 -07:00
committed by GitHub
parent b7df267687
commit 14d14e4ebc
40 changed files with 197 additions and 192 deletions

View File

@@ -28,7 +28,7 @@ HAL_CounterHandle HAL_InitializeCounter(int channel, HAL_Bool risingEdge,
int32_t* status) {
wpi::hal::init::CheckInit();
if (channel == INVALID_HANDLE_INDEX || channel >= kNumSmartIo) {
*status = MakeErrorIndexOutOfRange(RESOURCE_OUT_OF_RANGE,
*status = MakeErrorIndexOutOfRange(HAL_RESOURCE_OUT_OF_RANGE,
"Invalid Index for Counter", 0,
kNumSmartIo, channel);
return HAL_INVALID_HANDLE;