mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-05-20 00:46:56 +08:00
Detect more startup config errors on Cortex M (#832)
Verify that the application has correctly installed PendSV and SVCall handlers. The application can choose to disable these checks by setting configCHECK_HANDLER_INSTALLATION to 0 in their FreeRTOSConfig.h.
This commit is contained in:
@ -365,6 +365,17 @@
|
||||
#define configPRECONDITION_DEFINED 1
|
||||
#endif
|
||||
|
||||
#ifndef configCHECK_HANDLER_INSTALLATION
|
||||
#define configCHECK_HANDLER_INSTALLATION 1
|
||||
#else
|
||||
|
||||
/* The application has explicitly defined configCHECK_HANDLER_INSTALLATION
|
||||
* to 1. The checks requires configASSERT() to be defined. */
|
||||
#if ( ( configCHECK_HANDLER_INSTALLATION == 1 ) && ( configASSERT_DEFINED == 0 ) )
|
||||
#error You must define configASSERT() when configCHECK_HANDLER_INSTALLATION is 1.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef portMEMORY_BARRIER
|
||||
#define portMEMORY_BARRIER()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user