From 46619f60cdc4fdc9a2f8ba859cdbcf81210cc7e5 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 19 Oct 2015 22:29:35 +0200 Subject: Adding new THREAD_RETURN macro to other ports --- src/gos/gos_ecos.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gos/gos_ecos.h') diff --git a/src/gos/gos_ecos.h b/src/gos/gos_ecos.h index be9037b6..cd5678df 100644 --- a/src/gos/gos_ecos.h +++ b/src/gos/gos_ecos.h @@ -46,6 +46,7 @@ typedef cyg_handle_t gfxThreadHandle; #define DECLARE_THREAD_STACK(name, sz) struct { cyg_thread t; unsigned char stk[sz]; } name[1] #define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t fnName(cyg_addrword_t param) +#define THREAD_RETURN(retval) typedef struct { cyg_sem_t sem; -- cgit v1.2.3