mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-12 02:36:00 +00:00
17 lines
466 B
C++
17 lines
466 B
C++
/**
|
|
* @brief Constants and macros for use with CMSIS RTOS2.
|
|
*/
|
|
#ifndef STA_RTOS2_DEFS_HPP
|
|
#define STA_RTOS2_DEFS_HPP
|
|
|
|
|
|
// See limits defined in cmsis_os2.c
|
|
#define STA_RTOS2_MAX_BITS_TASK_NOTIFY 31U
|
|
#define STA_RTOS2_MAX_BITS_EVENT_GROUPS 24U
|
|
|
|
#define STA_RTOS2_THREAD_FLAGS_VALID_BITS ((1UL << STA_RTOS2_MAX_BITS_TASK_NOTIFY) - 1U)
|
|
#define STA_RTOS2_EVENT_FLAGS_VALID_BITS ((1UL << STA_RTOS2_MAX_BITS_EVENT_GROUPS) - 1U)
|
|
|
|
|
|
#endif // STA_RTOS2_DEFS_HPP
|