Skip to content

Commit 9249242

Browse files
author
Daniel Campora
committed
cc3200: Remove unneeded loops in the FreeRTOS hooks.
1 parent 641a3d3 commit 9249242

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

cc3200/misc/FreeRTOSHooks.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ void vApplicationMallocFailedHook (void)
7070
__asm volatile ("bkpt #0 \n");
7171
#endif
7272

73-
for ( ; ; )
74-
{
75-
__fatal_error("FreeRTOS malloc failed!");
76-
}
73+
__fatal_error("FreeRTOS malloc failed!");
7774
}
7875

7976
//*****************************************************************************
@@ -92,10 +89,7 @@ void vApplicationStackOverflowHook (OsiTaskHandle *pxTask, signed char *pcTaskNa
9289
__asm volatile ("bkpt #0 \n");
9390
#endif
9491

95-
for ( ; ; )
96-
{
97-
__fatal_error("Stack overflow!");
98-
}
92+
__fatal_error("Stack overflow!");
9993
}
10094

10195
//*****************************************************************************

0 commit comments

Comments
 (0)