File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -230,12 +230,13 @@ bool LowPowerPortentaH7::modeWasStop() const
230
230
return PWR->CPUCR & PWR_CPUCR_STOPF;
231
231
}
232
232
233
- // This function uses undocumented features of Mbed to retrieve the number
234
- // of active deep sleep locks. It is experimental and may break at any time,
235
- // but can be handy for some users to debug deep sleep lock problems.
236
- // It uses features of the compiled machine code to find the number of locks.
237
233
uint16_t LowPowerPortentaH7::numberOfDeepSleepLocks () const
238
234
{
235
+ // This function uses undocumented features of Mbed to retrieve the number
236
+ // of active deep sleep locks. It is experimental and may break at any time,
237
+ // but can be handy for some users to debug deep sleep lock problems.
238
+ // It uses features of the compiled machine code to find the number of locks.
239
+
239
240
// clang-format off
240
241
return *((volatile uint16_t *) *((volatile uint32_t *) ((((volatile uint32_t )
241
242
&sleep_manager_can_deep_sleep) & 0xfffffffe ) + 0x10 )));
You can’t perform that action at this time.
0 commit comments