bpmpfw: cleanup makefile and split hpp/cpp
This commit is contained in:
1 parent
e5240d835f
commit
3352dffc39
15 files changed
+464
-266
No files matched your search
@@ -22,13 +22,4 @@ constexpr u32 SocthermBase = 0x700E2000;
|
||||
constexpr u32 SocthermSensorTemp1 = 0x1C8;
|
||||
constexpr u32 SocthermSensorTemp2 = 0x1CC;
|
||||
|
||||
inline s32 TranslateSocthermTemp(u16 val) {
|
||||
s32 t = ((val >> 8) & 0xFF) * 1000;
|
||||
if (val & (1u << 7)) {
|
||||
t += 500;
|
||||
}
|
||||
if (val & (1u << 0)) {
|
||||
t = -t;
|
||||
}
|
||||
return t;
|
||||
}
|
||||
s32 TranslateSocthermTemp(u16 val);
|
||||
Reference in new issue
Block a user