some cleanup

ugfx_release_2.6
Joel Bodenmann 2014-02-01 17:30:02 +01:00
parent 6e893c7efd
commit 42f96a10c5
2 changed files with 9 additions and 10 deletions

View File

@ -15,10 +15,10 @@
#if GFX_USE_OS_FREERTOS
#include "freertos/FreeRTOS.h"
#include "config/FreeRTOSConfig.h"
#include "freertos/semphr.h"
#include "freertos/task.h"
#include "FreeRTOS.h"
#include "FreeRTOSConfig.h"
#include "semphr.h"
#include "task.h"
/*===========================================================================*/
/* Type definitions */

View File

@ -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)