/*****************************************************************************
** File: OS_resource.h
**
** Description: OS resource header file
**
** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
**
** Author : anlzhao
**
** $Id: OS_resource.h,v 1.6 2009/10/22 00:42:28 qinhe Exp $
*****************************************************************************/
#ifndef __AI_OSAL_H__
#define __AI_OSAL_H__

#ifdef __cplusplus
extern "C" {
#endif

/* FM Component */
/* Name of the Semaphore used to guard the critical section of frame work task */
#define FW_SEM_NAME					("FW_SEM")
#define FW_SEM_MAX						(1)
#define FW_SEM_INITIAL					(1)

/* Name of framework task */
#define FW_TASK_NAME					"FW_TASK"
#define FW_TASK_STK_SIZE				(16 *1024)
#define FW_TASK_PRIORITY				(4)
#define FW_TASK_FLAG					(TRUE)

/* Framework task queue name */
#define FW_QUEUE_NAME					("FW_QUEUE")
#define FW_QUEUE_MSG_SIZE				(sizeof(FW_msg_t))
#define FW_QUEUE_TIMEOUT				(GL_INFINITE_WAIT)
#define FW_QUEUE_MSG_CNT				(100)
#define FW_QUEUE_MSG_URGENT_CNT		(0)


#ifdef __cplusplus
}
#endif

#endif //__AI_OSAL_H__

