mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 01:08:32 +03:00
cstartup: (re-)enable interrupts before calling main()
This commit is contained in:
@@ -184,12 +184,12 @@ void ResetException( void )
|
|||||||
SCB->VTOR |= 1 << SCB_VTOR_TBLBASE_Pos ;
|
SCB->VTOR |= 1 << SCB_VTOR_TBLBASE_Pos ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Branch to main function */
|
|
||||||
main() ;
|
|
||||||
|
|
||||||
/* App should have disabled interrupts during the transition */
|
/* App should have disabled interrupts during the transition */
|
||||||
__enable_irq();
|
__enable_irq();
|
||||||
|
|
||||||
|
/* Branch to main function */
|
||||||
|
main() ;
|
||||||
|
|
||||||
/* Infinite loop */
|
/* Infinite loop */
|
||||||
while ( 1 ) ;
|
while ( 1 ) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user