diff --git a/packages/ti/osal/src/freertos/Utils_freertos.c b/packages/ti/osal/src/freertos/Utils_freertos.c
index 13f913ff8af6c8617cdc9ba78189ad348af56538..c5c9e264aafaad712bb09e5d8c5b67267ffb6796 100644 (file)
#include <ti/osal/TaskP.h>
#include <FreeRTOS.h>
+#include <task.h>
/* External Clock should be defined under osal_soc.h
* if SOC is not supporting it, set to -1
{
osalThreadType = Osal_ThreadType_Hwi;
}
+ else if(taskSCHEDULER_NOT_STARTED == xTaskGetSchedulerState())
+ {
+ osalThreadType = Osal_ThreadType_Main;
+ }
else
{
osalThreadType = Osal_ThreadType_Task;