Rework structure and configuration

This commit is contained in:
Henrik Stickann
2022-04-09 21:15:27 +02:00
parent aa63b35e05
commit a4a4851704
13 changed files with 289 additions and 210 deletions

13
include/sta/os2/defs.hpp Normal file
View File

@@ -0,0 +1,13 @@
#ifndef STA_OS2_DEFS_HPP
#define STA_OS2_DEFS_HPP
// See limits defined in cmsis_os2.c
#define STA_OS2_MAX_BITS_TASK_NOTIFY 31U
#define STA_OS2_MAX_BITS_EVENT_GROUPS 24U
#define STA_OS2_THREAD_FLAGS_VALID_BITS ((1UL << STA_OS2_MAX_BITS_TASK_NOTIFY) - 1U)
#define STA_OS2_EVENT_FLAGS_VALID_BITS ((1UL << STA_OS2_MAX_BITS_EVENT_GROUPS) - 1U)
#endif // STA_OS2_DEFS_HPP