mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-25 10:37:09 +08:00
Add assert required for linking.
This commit is contained in:
@ -422,3 +422,16 @@ void sys_arch_unprotect(sys_prot_t pval)
|
|||||||
vPortExitCritical();
|
vPortExitCritical();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prints an assertion messages and aborts execution.
|
||||||
|
*/
|
||||||
|
void sys_assert( const char *msg )
|
||||||
|
{
|
||||||
|
/*FSL:only needed for debugging
|
||||||
|
printf(msg);
|
||||||
|
printf("\n\r");
|
||||||
|
*/
|
||||||
|
vPortEnterCritical( );
|
||||||
|
for(;;)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user