We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71810da commit 07495fbCopy full SHA for 07495fb
1 file changed
cores/nRF5/main.cpp
@@ -70,7 +70,9 @@ int main( void )
70
_loopTaskHandle = xTaskCreateStatic(loopTask, "mlt", MAIN_TASK_STACK_SIZE,
71
NULL, 1, _mainStack, &_mainTaskBuffer);
72
73
- SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
+ uint32_t scr = SCB->SCR;
74
+ scr |= SCB_SCR_SLEEPDEEP_Msk;
75
+ SCB->SCR = scr;
76
77
vTaskStartScheduler();
78
0 commit comments