1# Copyright (c) 2018 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4config CMSIS_RTOS_V1
5	bool "CMSIS RTOS v1 API"
6	depends on THREAD_CUSTOM_DATA
7	depends on POLL
8	depends on THREAD_STACK_INFO
9	help
10	  This enables CMSIS RTOS v1 API support. This is an OS-integration
11	  layer which allows applications using CMSIS RTOS APIs to build on
12	  Zephyr.
13
14if CMSIS_RTOS_V1
15
16config CMSIS_THREAD_MAX_STACK_SIZE
17	int "Max stack size threads can be allocated in CMSIS RTOS application"
18	default 4096 if COVERAGE_GCOV
19	default 512
20	help
21	  Mention max stack size threads can be allocated in CMSIS RTOS application.
22
23config CMSIS_TIMER_MAX_COUNT
24	int "Maximum timer count in CMSIS application"
25	default 5
26	range 0 255
27	help
28	  Mention maximum number of timers in CMSIS compliant application.
29
30config CMSIS_MUTEX_MAX_COUNT
31	int "Maximum mutex count in CMSIS application"
32	default 5
33	range 0 255
34	help
35	  Mention maximum number of mutexes in CMSIS compliant application.
36
37config CMSIS_SEMAPHORE_MAX_COUNT
38	int "Maximum semaphore count in CMSIS application"
39	default 5
40	range 0 255
41	help
42	  Mention maximum number of semaphores in CMSIS compliant application.
43
44endif
45