[hal,wpilib] Rename I2C constants to all caps

This commit is contained in:
Peter Johnson
2026-03-14 11:51:53 -07:00
parent b68fbb1adc
commit 261a0ebbd7
14 changed files with 38 additions and 32 deletions

View File

@@ -23,11 +23,11 @@ class I2C {
/**
* I2C connection ports.
*/
enum Port {
enum class Port {
/// I2C Port 0.
kPort0 = 0,
PORT_0 = 0,
/// I2C Port 1.
kPort1
PORT_1
};
/**
@@ -154,7 +154,7 @@ class I2C {
bool VerifySensor(int registerAddress, int count, const uint8_t* expected);
private:
wpi::hal::Handle<HAL_I2CPort, HAL_CloseI2C, HAL_I2C_kInvalid> m_port;
wpi::hal::Handle<HAL_I2CPort, HAL_CloseI2C, HAL_I2C_PORT_INVALID> m_port;
int m_deviceAddress;
};