rtx_def.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2021 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_OBJ_MEM_USAGE) && (OS_OBJ_MEM_USAGE != 0))
  32. #define RTX_OBJ_MEM_USAGE
  33. #endif
  34. #if (defined(OS_STACK_CHECK) && (OS_STACK_CHECK != 0))
  35. #define RTX_STACK_CHECK
  36. #endif
  37. #ifdef RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS
  38. #define DOMAIN_NS 1
  39. #endif
  40. #endif // RTX_DEF_H_