hocclk: add BQ24193 temp driver

This commit is contained in:
souldbminersmwc
2026-04-22 16:40:51 -04:00
parent 94b63003ab
commit e6942f95e7
9 changed files with 169 additions and 5 deletions

View File

@@ -32,7 +32,7 @@
#include <pwm.h>
#include "board.hpp"
#include "../soctherm.hpp"
#include "bq24193.hpp"
namespace board {
s32 GetTemperatureMilli(HocClkThermalSensor sensor) {
@@ -82,6 +82,11 @@ namespace board {
}
case HocClkThermalSensor_PLLX: {
millis = temps.pllx;
break;
}
case HocClkThermalSensor_BQ24193: {
millis = bq24193::getBQTemp();
break;
}
default: {
ASSERT_ENUM_VALID(HocClkThermalSensor, sensor);