rtx_def.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright (c) 2021-2023 Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the License); you may
  7. * not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  14. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * -----------------------------------------------------------------------------
  19. *
  20. * Project: CMSIS-RTOS RTX
  21. * Title: RTX derived definitions
  22. *
  23. * -----------------------------------------------------------------------------
  24. */
  25. #ifndef RTX_DEF_H_
  26. #define RTX_DEF_H_
  27. #ifdef _RTE_
  28. #include "RTE_Components.h"
  29. #endif
  30. #include "RTX_Config.h"
  31. #if (defined(OS_SAFETY_FEATURES) && (OS_SAFETY_FEATURES != 0))
  32. #define RTX_SAFETY_FEATURES
  33. #if (defined(OS_SAFETY_CLASS) && (OS_SAFETY_CLASS != 0))
  34. #define RTX_SAFETY_CLASS
  35. #endif
  36. #if (defined(OS_EXECUTION_ZONE) && (OS_EXECUTION_ZONE != 0))
  37. #define RTX_EXECUTION_ZONE
  38. #endif
  39. #if (defined(OS_THREAD_WATCHDOG) && (OS_THREAD_WATCHDOG != 0))
  40. #define RTX_THREAD_WATCHDOG
  41. #endif
  42. #if (defined(OS_OBJ_PTR_CHECK) && (OS_OBJ_PTR_CHECK != 0))
  43. #define RTX_OBJ_PTR_CHECK
  44. #endif
  45. #if (defined(OS_SVC_PTR_CHECK) && (OS_SVC_PTR_CHECK != 0))
  46. #define RTX_SVC_PTR_CHECK
  47. #endif
  48. #endif
  49. #if (defined(OS_OBJ_MEM_USAGE) && (OS_OBJ_MEM_USAGE != 0))
  50. #define RTX_OBJ_MEM_USAGE
  51. #endif
  52. #if (defined(OS_STACK_CHECK) && (OS_STACK_CHECK != 0))
  53. #define RTX_STACK_CHECK
  54. #endif
  55. #if (defined(OS_TZ_CONTEXT) && (OS_TZ_CONTEXT != 0))
  56. #define RTX_TZ_CONTEXT
  57. #endif
  58. #ifndef DOMAIN_NS
  59. #ifdef RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS
  60. #define DOMAIN_NS 1
  61. #else
  62. #define DOMAIN_NS 0
  63. #endif
  64. #endif
  65. #endif // RTX_DEF_H_