首页 > 其他 > 详细

【小记】FreeRTOS任务创建后但任务中为空时运行错误

时间:2018-06-09 14:19:32      阅读:734      评论:0      收藏:0      [点我收藏+]

FreeRTOS任务创建后但任务中无语句为空时运行错误

 

会死在文件<port.c>中下边函数处

static void prvTaskExitError( void )
{
/* A function that implements a task must not exit or attempt to return to
its caller as there is nothing to return to. If a task wants to exit it
should instead call vTaskDelete( NULL ).

Artificially force an assert() to be triggered if configASSERT() is
defined, then stop here so application writers can catch the error. */
configASSERT( uxCriticalNesting == ~0UL );
portDISABLE_INTERRUPTS();
for( ;; );
}

【小记】FreeRTOS任务创建后但任务中为空时运行错误

原文:https://www.cnblogs.com/skullboyer/p/9159208.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!