osconfig.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /******************************************************************************
  2. ** File: osconfig.h
  3. ** $Id: osconfig.h 1.2 2013/12/16 13:08:05GMT-05:00 acudmore Exp $
  4. **
  5. ** Purpose:
  6. ** This header file contains the OS API configuration parameters.
  7. **
  8. ** Author: A. Cudmore
  9. **
  10. ** Notes:
  11. **
  12. ** $Date: 2013/12/16 13:08:05GMT-05:00 $
  13. ** $Revision: 1.2 $
  14. ** $Log: osconfig.h $
  15. ** Revision 1.2 2013/12/16 13:08:05GMT-05:00 acudmore
  16. ** use OS_FS_PHYS_NAME_LEN macro instead of hard-coded value
  17. ** Revision 1.1 2013/07/19 14:05:44GMT-05:00 acudmore
  18. ** Initial revision
  19. ** Member added to project c:/MKSDATA/MKS-REPOSITORY/MKS-OSAL-REPOSITORY/src/bsp/sis-rtems/config/project.pj
  20. ** Revision 1.8 2011/12/05 12:41:15GMT-05:00 acudmore
  21. ** Removed OS_MEM_TABLE_SIZE parameter
  22. ** Revision 1.7 2009/07/14 14:24:53EDT acudmore
  23. ** Added parameter for local path size.
  24. ** Revision 1.6 2009/07/07 14:01:02EDT acudmore
  25. ** Changed OS_MAX_NUM_OPEN_FILES to 50 to preserve data/telmetry space
  26. ** Revision 1.5 2009/07/07 13:58:22EDT acudmore
  27. ** Added OS_STATIC_LOADER define to switch between static and dynamic loaders.
  28. ** Revision 1.4 2009/06/04 11:43:43EDT rmcgraw
  29. ** DCR8290:1 Increased settings for max tasks,queues,sems and modules
  30. ** Revision 1.3 2008/08/20 15:49:37EDT apcudmore
  31. ** Add OS_MAX_TIMERS parameter for Timer API
  32. ** Revision 1.2 2008/06/20 15:17:56EDT apcudmore
  33. ** Added conditional define for Module Loader API configuration
  34. ** Revision 1.1 2008/04/20 22:35:19EDT ruperera
  35. ** Initial revision
  36. ** Member added to project c:/MKSDATA/MKS-REPOSITORY/MKS-OSAL-REPOSITORY/build/inc/project.pj
  37. ** Revision 1.6 2008/02/12 13:27:59EST apcudmore
  38. ** New API updates:
  39. ** - fixed RTEMS osapi compile error
  40. ** - related makefile fixes
  41. ** - header file parameter update
  42. **
  43. ** Revision 1.1 2005/06/09 10:57:58EDT rperera
  44. ** Initial revision
  45. **
  46. ******************************************************************************/
  47. #ifndef _osconfig_
  48. #define _osconfig_
  49. /*
  50. ** Platform Configuration Parameters for the OS API
  51. */
  52. #define OS_MAX_TASKS 64 /* Not used.*/
  53. #define OS_MAX_QUEUES 64
  54. #define OS_MAX_COUNT_SEMAPHORES 20
  55. #define OS_MAX_BIN_SEMAPHORES 20
  56. #define OS_MAX_MUTEXES 20
  57. /*
  58. ** Maximum length for an absolute path name
  59. */
  60. #define OS_MAX_PATH_LEN 64
  61. /*
  62. ** Maximum length for a local or host path/filename.
  63. ** This parameter can consist of the OSAL filename/path +
  64. ** the host OS physical volume name or path.
  65. */
  66. #define OS_MAX_LOCAL_PATH_LEN (OS_MAX_PATH_LEN + OS_FS_PHYS_NAME_LEN)
  67. /*
  68. ** The maxium length allowed for a object (task,queue....) name
  69. */
  70. #define OS_MAX_API_NAME 20
  71. /*
  72. ** The maximum length for a file name
  73. */
  74. #define OS_MAX_FILE_NAME 20
  75. /*
  76. ** These defines are for OS_printf
  77. */
  78. #define OS_BUFFER_SIZE 172
  79. #define OS_BUFFER_MSG_DEPTH 100
  80. /* This #define turns on a utility task that
  81. * will read the statements to print from
  82. * the OS_printf function. If you want OS_printf
  83. * to print the text out itself, comment this out
  84. *
  85. * NOTE: The Utility Task #defines only have meaning
  86. * on the VxWorks operating systems
  87. */
  88. #define OS_UTILITY_TASK_ON
  89. #ifdef OS_UTILITY_TASK_ON
  90. #define OS_UTILITYTASK_STACK_SIZE 2048
  91. /* some room is left for other lower priority tasks */
  92. #define OS_UTILITYTASK_PRIORITY 245
  93. #endif
  94. /*
  95. ** the size of a command that can be passed to the underlying OS
  96. */
  97. #define OS_MAX_CMD_LEN 1000
  98. /*
  99. ** This define will include the OS network API.
  100. ** It should be turned off for targtets that do not have a network stack or
  101. ** device ( like the basic RAD750 vxWorks BSP )
  102. */
  103. #undef OS_INCLUDE_NETWORK
  104. /*
  105. ** This is the maximum number of open file descriptors allowed at a time
  106. */
  107. #define OS_MAX_NUM_OPEN_FILES 50
  108. /*
  109. ** This defines the filethe input command of OS_ShellOutputToFile
  110. ** is written to in the VxWorks6 port
  111. */
  112. #define OS_SHELL_CMD_INPUT_FILE_NAME "/ram/OS_ShellCmd.in"
  113. /*
  114. ** This define sets the queue implentation of the Linux port to use sockets
  115. ** commenting this out makes the Linux port use the POSIX message queues.
  116. */
  117. /* #define OSAL_SOCKET_QUEUE */
  118. /*
  119. ** Module loader/symbol table is optional
  120. */
  121. #undef OS_INCLUDE_MODULE_LOADER
  122. #ifdef OS_INCLUDE_MODULE_LOADER
  123. /*
  124. ** This define sets the size of the OS Module Table, which keeps track of the loaded modules in
  125. ** the running system. This define must be set high enough to support the maximum number of
  126. ** loadable modules in the system. If the the table is filled up at runtime, a new module load
  127. ** would fail.
  128. */
  129. #define OS_MAX_MODULES 10
  130. /*
  131. ** The Static Loader define is used for switching between the Dynamic and Static loader implementations.
  132. */
  133. /* #define OS_STATIC_LOADER */
  134. #endif
  135. /*
  136. ** This define sets the maximum symbol name string length. It is used in implementations that
  137. ** support the symbols and symbol lookup.
  138. */
  139. #define OS_MAX_SYM_LEN 64
  140. /*
  141. ** This define sets the maximum number of timers available
  142. */
  143. #define OS_MAX_TIMERS 5
  144. #endif