From 6bcca7af856b3401a574dae43a362ee487d7b17a Mon Sep 17 00:00:00 2001 From: dario Date: Thu, 9 Nov 2023 18:20:48 +0100 Subject: [PATCH] Removed terminate flag from threads --- include/sta/rtos/thread.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/sta/rtos/thread.hpp b/include/sta/rtos/thread.hpp index 5d6c849..1e4d2b7 100644 --- a/include/sta/rtos/thread.hpp +++ b/include/sta/rtos/thread.hpp @@ -14,7 +14,7 @@ /** * @brief Number of bits in task notification flags used internally. */ -#define STA_RTOS_MAX_BITS_THREAD_SYS_NOTIFY 2U +#define STA_RTOS_MAX_BITS_THREAD_SYS_NOTIFY 1U /** * @brief Number of user usable bits in task notification flags. */ @@ -34,15 +34,10 @@ */ #define STA_RTOS_THREAD_FLAG_ERROR_CODE ( 1UL << 31 ) -/** - * @brief Request thread termination. - */ -#define STA_RTOS_THREAD_FLAG_TERMINATE ( 1UL << 30 ) - /** * @brief Request thread start. */ -#define STA_RTOS_THREAD_FLAG_START ( 1UL << 29 ) +#define STA_RTOS_THREAD_FLAG_START ( 1UL << 30 ) #define STA_RTOS_THREAD_FLAGS_ERROR_CODE_BITS UINT32_C( 0x0000000F )