[hal] Change usage reporting to string-based (#7763)

This commit is contained in:
Peter Johnson
2025-02-07 12:37:23 -08:00
committed by GitHub
parent bfff891b5c
commit 764ada9b66
188 changed files with 637 additions and 2298 deletions

View File

@@ -5,10 +5,10 @@
#include "frc/AddressableLED.h"
#include <hal/AddressableLED.h>
#include <hal/FRCUsageReporting.h>
#include <hal/HALBase.h>
#include <hal/PWM.h>
#include <hal/Ports.h>
#include <hal/UsageReporting.h>
#include <wpi/StackTrace.h>
#include "frc/Errors.h"
@@ -31,7 +31,7 @@ AddressableLED::AddressableLED(int port) : m_port{port} {
HAL_FreePWMPort(m_pwmHandle);
}
HAL_Report(HALUsageReporting::kResourceType_AddressableLEDs, port + 1);
HAL_ReportUsage("IO", port, "AddressableLED");
}
void AddressableLED::SetLength(int length) {