mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Update compiler version and add configASSERT() to PIC32 MPLAB X project.
This commit is contained in:
parent
ad8fa53043
commit
25310a6796
9 changed files with 103 additions and 83 deletions
|
@ -231,3 +231,21 @@ void _general_exception_handler( unsigned long ulCause, unsigned long ulStatus )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vAssertCalled( const char * pcFile, unsigned long ulLine )
|
||||
{
|
||||
volatile unsigned long ul = 0;
|
||||
|
||||
( void ) pcFile;
|
||||
( void ) ulLine;
|
||||
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
/* Set ul to a non-zero value using the debugger to step out of this
|
||||
function. */
|
||||
while( ul == 0 )
|
||||
{
|
||||
portNOP();
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue