We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 962c320 + 058a731 commit ebfc1f2Copy full SHA for ebfc1f2
ports/mimxrt10xx/common-hal/microcontroller/Processor.c
@@ -37,11 +37,13 @@ float common_hal_mcu_processor_get_temperature(void) {
37
tempmon_config_t config;
38
TEMPMON_GetDefaultConfig(&config);
39
40
+ OCOTP_Init(OCOTP, CLOCK_GetFreq(kCLOCK_IpgClk));
41
TEMPMON_Init(TEMPMON, &config);
42
TEMPMON_StartMeasure(TEMPMON);
43
44
const float temp = TEMPMON_GetCurrentTemperature(TEMPMON);
45
TEMPMON_Deinit(TEMPMON);
46
+ OCOTP_Deinit(OCOTP);
47
48
return temp;
49
}
0 commit comments