Revert C++ libnx bindings and call-site conversion
This commit is contained in:
1 parent
fb46ac4199
commit
5f973f60b2
44 files changed
+246
-34097
No files matched your search
@@ -17,7 +17,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <i2c.hpp>
|
||||
#include <i2c.h>
|
||||
|
||||
#include "../board/board.hpp"
|
||||
#include "../i2c/i2cDrv.h"
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "soctherm.hpp"
|
||||
#include "tsensor_common.hpp"
|
||||
|
||||
using namespace nx;
|
||||
|
||||
namespace tsensor {
|
||||
|
||||
@@ -506,7 +505,7 @@ namespace tsensor {
|
||||
}
|
||||
|
||||
/* Wait for HW recalibration */
|
||||
svc::SleepThread(25'000);
|
||||
svcSleepThread(25'000);
|
||||
|
||||
temps.cpu = TranslateTemp(ReadReg(socthermVa, SENSOR_TEMP1) >> 16);
|
||||
temps.gpu = TranslateTemp(ReadReg(socthermVa, SENSOR_TEMP1) & SENSOR_TEMP1_GPU_TEMP_MASK);
|
||||
@@ -529,7 +528,7 @@ namespace tsensor {
|
||||
|
||||
WriteReg(carVa, CAR_CLK_SOURCE_TSENSOR, CAR_CLK_SOURCE_TSENSOR_VAL);
|
||||
SetBits(carVa, CAR_CLK_OUT_ENB_V, 0x10);
|
||||
svc::SleepThread(2000);
|
||||
svcSleepThread(2000);
|
||||
|
||||
TSensorSharedCalib sharedCal = {};
|
||||
CalcSharedCal(&tfuse, &sharedCal, fuseVa);
|
||||
|
||||
Reference in new issue
Block a user