aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-01 17:30:02 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-01 17:30:02 +0100
commit42f96a10c5eed41dcebc039e255dd8b8466a9a76 (patch)
treec4c183430ce29e63813f527e8c19294a4d3a864b /src/gos
parent6e893c7efd56a89b452e84421f5235e5cbaf6867 (diff)
downloaduGFX-42f96a10c5eed41dcebc039e255dd8b8466a9a76.tar.gz
uGFX-42f96a10c5eed41dcebc039e255dd8b8466a9a76.tar.bz2
uGFX-42f96a10c5eed41dcebc039e255dd8b8466a9a76.zip
some cleanup
Diffstat (limited to 'src/gos')
-rw-r--r--src/gos/freertos.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gos/freertos.c b/src/gos/freertos.c
index 9b22af1b..25166f18 100644
--- a/src/gos/freertos.c
+++ b/src/gos/freertos.c
@@ -9,13 +9,13 @@
* @file src/gos/freertos.c
* @brief GOS FreeRTOS Operating System support.
*/
-#include "heivs/config.h"
#include "gfx.h"
-#include "heivs/delay.h"
-#include "freertos/FreeRTOS.h"
-#include "config/FreeRTOSConfig.h"
#include <string.h>
+#if INCLUDE_vTaskDelay != 1
+ #error "GOS: INCLUDE_vTaskDelay must be defined in FreeRTOSConfig.h"
+#endif
+
#if configUSE_MUTEXES != 1
#error "GOS: configUSE_MUTEXES must be defined in FreeRTOSConfig.h"
#endif
@@ -26,8 +26,7 @@
void _gosInit(void)
{
- // IMPORTANT: Check for already started scheduler here!!!
- vTaskStartScheduler();
+ // The user must call vTaskStartScheduler() himself before he calls gfxInit().
}
void* gfxRealloc(void *ptr, size_t oldsz, size_t newsz)