From 9826378b9608362c4ad6efa3271e6f6de1e2b30e Mon Sep 17 00:00:00 2001 From: inmarket Date: Tue, 29 Jul 2014 12:00:47 +1000 Subject: Operating System initialisation can now be turned off in gfxconf.h --- src/gos/ecos.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gos/ecos.c') 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) -- cgit v1.2.3