Rename to STA RTOS

This commit is contained in:
Henrik Stickann
2022-05-10 16:18:55 +02:00
parent 802999f2f6
commit 5e2296a028
23 changed files with 493 additions and 491 deletions

53
include/sta/rtos/defs.hpp Normal file
View File

@@ -0,0 +1,53 @@
/**
* @file
* @brief Constants and macros for use with CMSIS RTOS2.
*/
#ifndef STA_RTOS_DEFS_HPP
#define STA_RTOS_DEFS_HPP
/**
* @defgroup STA_RTOS RTOS
* @brief STA RTOS library.
*/
/**
* @defgroup STA_RTOS_API API
* @ingroup STA_RTOS
* @brief Public interface.
*/
/**
* @defgroup STA_RTOS_BuildConfig Build config
* @ingroup STA_RTOS
* @brief Build configuration options.
*/
/**
* @ingroup STA_RTOS_API
* @{
*/
// See limits defined in cmsis_os2.c
/**
* @brief Number of usable bits in task notification flags.
*/
#define STA_RTOS_MAX_BITS_TASK_NOTIFY 31U
/**
* @brief Number of usable bits in event group flags.
*/
#define STA_RTOS_MAX_BITS_EVENT_GROUPS 24U
/**
* @brief Mask for valid task notification flag bits.
*/
#define STA_RTOS_THREAD_FLAGS_VALID_BITS ( ( 1UL << STA_RTOS_MAX_BITS_TASK_NOTIFY ) - 1U )
/**
* @brief Mask for valid event group flag bits.
*/
#define STA_RTOS_EVENT_FLAGS_VALID_BITS ( ( 1UL << STA_RTOS_MAX_BITS_EVENT_GROUPS ) - 1U )
/** @} */
#endif // STA_RTOS_DEFS_HPP