ai_osal.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*****************************************************************************
  2. ** File: OS_resource.h
  3. **
  4. ** Description: OS resource header file
  5. **
  6. ** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
  7. **
  8. ** Author : anlzhao
  9. **
  10. ** $Id: OS_resource.h,v 1.6 2009/10/22 00:42:28 qinhe Exp $
  11. *****************************************************************************/
  12. #ifndef __AI_OSAL_H__
  13. #define __AI_OSAL_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* FM Component */
  18. /* Name of the Semaphore used to guard the critical section of frame work task */
  19. #define FW_SEM_NAME ("FW_SEM")
  20. #define FW_SEM_MAX (1)
  21. #define FW_SEM_INITIAL (1)
  22. /* Name of framework task */
  23. #define FW_TASK_NAME "FW_TASK"
  24. #define FW_TASK_STK_SIZE (16 *1024)
  25. #define FW_TASK_PRIORITY (4)
  26. #define FW_TASK_FLAG (TRUE)
  27. /* Framework task queue name */
  28. #define FW_QUEUE_NAME ("FW_QUEUE")
  29. #define FW_QUEUE_MSG_SIZE (sizeof(FW_msg_t))
  30. #define FW_QUEUE_TIMEOUT (GL_INFINITE_WAIT)
  31. #define FW_QUEUE_MSG_CNT (100)
  32. #define FW_QUEUE_MSG_URGENT_CNT (0)
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif //__AI_OSAL_H__