more c++ification
This commit is contained in:
1 parent
018325747d
commit
062b52c607
17 files changed
+74
-51
No files matched your search
@@ -30,6 +30,7 @@
|
||||
#include "soctherm.hpp"
|
||||
#include "tsensor_common.hpp"
|
||||
|
||||
using namespace nx;
|
||||
|
||||
namespace tsensor {
|
||||
|
||||
@@ -505,7 +506,7 @@ namespace tsensor {
|
||||
}
|
||||
|
||||
/* Wait for HW recalibration */
|
||||
nx::svc::SleepThread(25'000);
|
||||
svc::SleepThread(25'000);
|
||||
|
||||
temps.cpu = TranslateTemp(ReadReg(socthermVa, SENSOR_TEMP1) >> 16);
|
||||
temps.gpu = TranslateTemp(ReadReg(socthermVa, SENSOR_TEMP1) & SENSOR_TEMP1_GPU_TEMP_MASK);
|
||||
@@ -528,7 +529,7 @@ namespace tsensor {
|
||||
|
||||
WriteReg(carVa, CAR_CLK_SOURCE_TSENSOR, CAR_CLK_SOURCE_TSENSOR_VAL);
|
||||
SetBits(carVa, CAR_CLK_OUT_ENB_V, 0x10);
|
||||
nx::svc::SleepThread(2000);
|
||||
svc::SleepThread(2000);
|
||||
|
||||
TSensorSharedCalib sharedCal = {};
|
||||
CalcSharedCal(&tfuse, &sharedCal, fuseVa);
|
||||
|
||||
Reference in new issue
Block a user