diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-07-29 12:00:47 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-07-29 12:00:47 +1000 |
commit | 9826378b9608362c4ad6efa3271e6f6de1e2b30e (patch) | |
tree | a0e4bc643f420dda032f90bf6423ee64728209d2 /src/gos/ecos.c | |
parent | 4ce658b022bbafe129d5ed3a571017c7d34b3892 (diff) | |
download | uGFX-9826378b9608362c4ad6efa3271e6f6de1e2b30e.tar.gz uGFX-9826378b9608362c4ad6efa3271e6f6de1e2b30e.tar.bz2 uGFX-9826378b9608362c4ad6efa3271e6f6de1e2b30e.zip |
Operating System initialisation can now be turned off in gfxconf.h
Diffstat (limited to 'src/gos/ecos.c')
-rw-r--r-- | src/gos/ecos.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gos/ecos.c b/src/gos/ecos.c index 5b94497a..16ce821b 100644 --- a/src/gos/ecos.c +++ b/src/gos/ecos.c @@ -11,8 +11,11 @@ void _gosInit(void) { - /* Don't initialise if the user already has */ - //cyg_scheduler_start(); + #if !GFX_NO_OS_INIT + #error "GOS: Operating System initialization for eCos is not yet implemented in uGFX. Please set GFX_NO_OS_INIT to TRUE in your gfxconf.h" + #else + #warning "GOS: Operating System initialization has been turned off. Make sure you call cyg_scheduler_start() before gfxInit() in your application!" + #endif } void _gosDeinit(void) |