diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-10-19 22:29:35 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-10-19 22:29:35 +0200 |
commit | 46619f60cdc4fdc9a2f8ba859cdbcf81210cc7e5 (patch) | |
tree | 082ae01cd8c02da012558405217717151b2cfdbd /src/gos/gos_ecos.h | |
parent | 32eae604223e53838eae8b69593c73e5c445975b (diff) | |
download | uGFX-46619f60cdc4fdc9a2f8ba859cdbcf81210cc7e5.tar.gz uGFX-46619f60cdc4fdc9a2f8ba859cdbcf81210cc7e5.tar.bz2 uGFX-46619f60cdc4fdc9a2f8ba859cdbcf81210cc7e5.zip |
Adding new THREAD_RETURN macro to other ports
Diffstat (limited to 'src/gos/gos_ecos.h')
-rw-r--r-- | src/gos/gos_ecos.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |