diff options
Diffstat (limited to 'src/gos/gos.h')
-rw-r--r-- | src/gos/gos.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gos/gos.h b/src/gos/gos.h index 9d32867a..af9486f8 100644 --- a/src/gos/gos.h +++ b/src/gos/gos.h @@ -69,6 +69,16 @@ */ #define DECLARE_THREAD_STACK(name, sz) uint8_t name[sz]; + /* + * @brief Return from a thread + * + * @details Some underlying operating systems allow to return a value from a thread while others don't. + * For systems that don't allow to return a value from a thread function this call is simply ignored. + * + * @param[in] reval The value which should be returned + */ + #define THREAD_RETURN(retval); + /** * @name Various platform (and operating system) constants * @note Your platform may use slightly different definitions to these @@ -464,6 +474,8 @@ #include "src/gos/gos_ecos.h" #elif GFX_USE_OS_ARDUINO #include "src/gos/gos_arduino.h" +#elif GFX_USE_OS_CMSIS + #include "src/gos/gos_cmsis.h" #elif GFX_USE_OS_KEIL #include "src/gos/gos_keil.h" #else |