Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # Copyright (c) 2018 Intel Corporation
  2. # SPDX-License-Identifier: Apache-2.0
  3. config CMSIS_RTOS_V2
  4. bool "CMSIS RTOS v2 API"
  5. depends on POLL
  6. depends on THREAD_NAME
  7. depends on THREAD_STACK_INFO
  8. depends on THREAD_MONITOR
  9. depends on INIT_STACKS
  10. depends on NUM_PREEMPT_PRIORITIES >= 56
  11. help
  12. This enables CMSIS RTOS v2 API support. This is an OS-integration
  13. layer which allows applications using CMSIS RTOS V2 APIs to build
  14. on Zephyr.
  15. if CMSIS_RTOS_V2
  16. config CMSIS_V2_THREAD_MAX_COUNT
  17. int "Maximum thread count in CMSIS RTOS V2 application"
  18. default 15
  19. range 0 255
  20. help
  21. Mention max number of threads in CMSIS RTOS V2 compliant application.
  22. There's a limitation on the number of threads due to memory
  23. related constraints.
  24. config CMSIS_V2_THREAD_DYNAMIC_MAX_COUNT
  25. int "Maximum dynamic thread count in CMSIS RTOS V2 application"
  26. default 0
  27. range 0 255
  28. help
  29. Mention max number of dynamic threads in CMSIS RTOS V2 compliant
  30. application. There's a limitation on the number of threads due to memory
  31. related constraints. Dynamic threads are a subset of all other CMSIS
  32. threads i.e. they also count towards that maximum too.
  33. config CMSIS_V2_THREAD_MAX_STACK_SIZE
  34. int "Max stack size threads can be allocated in CMSIS RTOS V2 application"
  35. default 4096 if COVERAGE
  36. default 512
  37. help
  38. Mention max stack size threads can be allocated in CMSIS RTOS V2 application.
  39. config CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE
  40. int "Dynamic stack size threads are allocated in CMSIS RTOS V2 application"
  41. default 4096 if COVERAGE
  42. default 512
  43. help
  44. Mention dynamic stack size threads are allocated in CMSIS RTOS V2 application.
  45. config CMSIS_V2_TIMER_MAX_COUNT
  46. int "Maximum timer count in CMSIS RTOS V2 application"
  47. default 5
  48. range 0 255
  49. help
  50. Mention maximum number of timers in CMSIS RTOS V2 compliant application.
  51. config CMSIS_V2_MUTEX_MAX_COUNT
  52. int "Maximum mutex count in CMSIS RTOS V2 application"
  53. default 5
  54. range 0 255
  55. help
  56. Mention max number of mutexes in CMSIS RTOS V2 compliant application.
  57. config CMSIS_V2_SEMAPHORE_MAX_COUNT
  58. int "Maximum semaphore count in CMSIS RTOS V2 application"
  59. default 5
  60. range 0 255
  61. help
  62. Mention max number of semaphores in CMSIS RTOS V2 compliant application.
  63. config CMSIS_V2_MEM_SLAB_MAX_COUNT
  64. int "Maximum mem slab count in CMSIS RTOS V2 application"
  65. default 5
  66. range 0 255
  67. help
  68. Mention maximum number of memory slabs in CMSIS RTOS V2 compliant application.
  69. config CMSIS_V2_MEM_SLAB_MAX_DYNAMIC_SIZE
  70. int "Maximum dynamic mem slab/pool size in CMSIS RTOS V2 application"
  71. default 0
  72. help
  73. Mention maximum dynamic size of memory slabs/pools in CMSIS RTOS V2 compliant application.
  74. config CMSIS_V2_MSGQ_MAX_COUNT
  75. int "Maximum message queue count in CMSIS RTOS V2 application"
  76. default 5
  77. range 0 255
  78. help
  79. Mention maximum number of message queues in CMSIS RTOS V2 compliant application.
  80. config CMSIS_V2_MSGQ_MAX_DYNAMIC_SIZE
  81. int "Maximum dynamic message queue size in CMSIS RTOS V2 application"
  82. default 0
  83. help
  84. Mention maximum dynamic size of message queues in CMSIS RTOS V2 compliant application.
  85. config CMSIS_V2_EVT_FLAGS_MAX_COUNT
  86. int "Maximum event flags count in CMSIS RTOS V2 application"
  87. default 5
  88. range 0 255
  89. help
  90. Mention maximum number of event flags in CMSIS RTOS V2 compliant application.
  91. endif