atheros_wifi/custom_src/osal/osal.c
A_STATUS qosal_task_create ( A_VOID  Task(A_UINT32),
                             char *task_name,
                             int stack_size, A_VOID *param,
                             unsigned long task_priority,
                             qosal_task_handle *task_handle,
                             A_BOOL auto_start) {
  A_STATUS       osal_ret = A_OK;
  osThreadAttr_t thread_attr;

  if (task_priority <= (unsigned long)(osPriorityRealtime7)) {
    thread_attr.name       = task_name;
    thread_attr.attr_bits  = 0;
    thread_attr.cb_mem     = NULL;
    thread_attr.cb_size    = 0;
    thread_attr.stack_mem  = NULL;
    thread_attr.stack_size = stack_size;
    thread_attr.priority   = (osPriority_t)task_priority;
    thread_attr.tz_module  = 0;

    *task_handle = osThreadNew((osThreadFunc_t)Task, param, &thread_attr);
    if(*task_handle == NULL) {
      osal_ret = A_ERROR;
    }
  }
  return osal_ret;
}
/* 
 * Description: This function is used for creating an RTOS task 
 * 
 * Params: Task entry function
 *         Function arguments
 *         Task name
 *         Stack size 
 *         Task priority 
 *         Task handle
 *         Blocking Flag
 * Returns:  A_OK if Success, A_ERROR if Fail 
 */
This function is used for creating an RTOS task

Task entry function
Function arguments
Task name
Stack size
Task priority
Task handle
Blocking Flag
Returns:  A_OK if Success, A_ERROR if Fail
This function is used for creating an RTOS task Task entry function Function arguments Task name Stack size Task priority Task handle Blocking Flag Returns : A_OK if Success A_ERROR if Fail
A_STATUS qosal_task_create ( A_VOID  Task(A_UINT32),
                             char *task_name,
                             int stack_size, A_VOID *param,
                             unsigned long task_priority,
                             qosal_task_handle *task_handle,
                             A_BOOL auto_start) {
  A_STATUS       osal_ret = A_OK;
  osThreadAttr_t thread_attr;
  if (task_priority <= (unsigned long)(osPriorityRealtime7)) {
    thread_attr.name       = task_name;
    thread_attr.attr_bits  = 0;
    thread_attr.cb_mem     = NULL;
    thread_attr.cb_size    = 0;
    thread_attr.stack_mem  = NULL;
    thread_attr.stack_size = stack_size;
    thread_attr.priority   = (osPriority_t)task_priority;
    thread_attr.tz_module  = 0;
    *task_handle = osThreadNew((osThreadFunc_t)Task, param, &thread_attr);
    if(*task_handle == NULL) {
      osal_ret = A_ERROR;
    }
  }
  return osal_ret;
}
A_STATUS qosal_task_create ( A_VOID Task ( A_UINT32 ) , char * task_name , int stack_size , A_VOID * param , unsigned long task_priority , qosal_task_handle * task_handle , A_BOOL auto_start ) { A_STATUS osal_ret = A_OK ; osThreadAttr_t thread_attr ; if ( task_priority <= ( unsigned long ) ( osPriorityRealtime7 ) ) { thread_attr . name = task_name ; thread_attr . attr_bits = 0 ; thread_attr . cb_mem = NULL ; thread_attr . cb_size = 0 ; thread_attr . stack_mem = NULL ; thread_attr . stack_size = stack_size ; thread_attr . priority = ( osPriority_t ) task_priority ; thread_attr . tz_module = 0 ; * task_handle = osThreadNew ( ( osThreadFunc_t ) Task , param , & thread_attr ) ; if ( * task_handle == NULL ) { osal_ret = A_ERROR ; } } return osal_ret ; }
Description: This function is used for creating an RTOS task
Description : This function is used for creating an RTOS task