mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
RISC-V-Qemu-virt: Add assert macros in FreeRTOSConfig (#777)
vAssertCalled() is already defined in main.c. We need to set the related macros in FreeRTOSConfig header as well, or the boundary checking through assert could not be executed
This commit is contained in:
parent
1ce4d784cc
commit
0744c28749
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://www.github.com/FreeRTOS
|
||||
* https://github.com/FreeRTOS
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -67,6 +67,11 @@
|
|||
#define configGENERATE_RUN_TIME_STATS 0
|
||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||
|
||||
/* Assert definitions. */
|
||||
void vAssertCalled( void );
|
||||
#define configASSERT_DEFINED 1
|
||||
#define configASSERT( x ) do { if ( !(x) ) vAssertCalled(); } while(0)
|
||||
|
||||
/* Co-routine definitions. */
|
||||
#define configUSE_CO_ROUTINES 0
|
||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue