[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

@@ -59,7 +59,7 @@ HAL_CANHandle HAL_InitializeCAN(int32_t busId, HAL_CANManufacturer manufacturer,
wpi::hal::init::CheckInit();
if (busId < 0 || busId > wpi::hal::kNumCanBuses) {
*status = PARAMETER_OUT_OF_RANGE;
*status = HAL_PARAMETER_OUT_OF_RANGE;
return HAL_INVALID_HANDLE;
}
@@ -68,7 +68,7 @@ HAL_CANHandle HAL_InitializeCAN(int32_t busId, HAL_CANManufacturer manufacturer,
auto handle = canHandles->Allocate(can);
if (handle == HAL_INVALID_HANDLE) {
*status = NO_AVAILABLE_RESOURCES;
*status = HAL_NO_AVAILABLE_RESOURCES;
return HAL_INVALID_HANDLE;
}