mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add an assert to catch register overflow (#1265)
This commit is contained in:
parent
03db672b8f
commit
4ee6a1f22f
7 changed files with 16 additions and 4 deletions
|
@ -415,6 +415,8 @@
|
|||
* number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__
|
||||
* )" or it can simple disable interrupts and sit in a loop to halt all
|
||||
* execution on the failing line for viewing in a debugger. */
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#define configASSERT( x ) \
|
||||
if( ( x ) == 0 ) \
|
||||
{ \
|
||||
|
@ -422,6 +424,7 @@
|
|||
for( ; ; ) \
|
||||
; \
|
||||
}
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/******************************************************************************/
|
||||
/* FreeRTOS MPU specific definitions. *****************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue