Skip to content

Commit e5d986f

Browse files
committed
chore(wl3): update system source
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9226878 commit e5d986f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎system/STM32WL3x/system_stm32wl3x.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ void SystemInit(void)
191191
if ((RCC->CSR == 0) && ((PWR->IWUF != 0) || (PWR->WUFA != 0) || (PWR->WUFB != 0)))
192192
{
193193
RAM_VR.WakeupFromSleepFlag = 1; /* A wakeup from power save occurred */
194+
#if !defined(NO_CTX_RESTORE)
194195
CPUcontextRestore(); /* Restore the context */
195196
/* if the context restore worked properly, we should never return here */
196197
while(1)
197198
{
198199
NVIC_SystemReset();
199200
}
201+
#endif /* NO_CTX_RESTORE */
200202
}
201203

202204
/* Configure the Vector Table location */

0 commit comments

Comments
 (0)