/* Initialise the task handle callback for a given priority.  */
static int task_init_handler(void)
/* Initialise the task handle callback for a given priority.  */
static int task_init_handler(void)
{
    TQB.task_Q[p] = (os_event_t *) malloc( sizeof(os_event_t)*qlen );
    if (TQB.task_Q[p]) {
      os_memset(TQB.task_Q[p], 0, sizeof(os_event_t)*qlen);
      system_os_task(platform_task_dispatch, p, TQB.task_Q[p], TASK_DEFAULT_QUEUE_LEN);
    } else {
      NODE_DBG ( "Malloc failure in platform_task_init_handler" );
      return PLATFORM_ERR;
    }
  }
}