some cleanup
This commit is contained in:
parent
6e893c7efd
commit
42f96a10c5
@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
#if GFX_USE_OS_FREERTOS
|
#if GFX_USE_OS_FREERTOS
|
||||||
|
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#include "config/FreeRTOSConfig.h"
|
#include "FreeRTOSConfig.h"
|
||||||
#include "freertos/semphr.h"
|
#include "semphr.h"
|
||||||
#include "freertos/task.h"
|
#include "task.h"
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Type definitions */
|
/* Type definitions */
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
* @file src/gos/freertos.c
|
* @file src/gos/freertos.c
|
||||||
* @brief GOS FreeRTOS Operating System support.
|
* @brief GOS FreeRTOS Operating System support.
|
||||||
*/
|
*/
|
||||||
#include "heivs/config.h"
|
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "heivs/delay.h"
|
|
||||||
#include "freertos/FreeRTOS.h"
|
|
||||||
#include "config/FreeRTOSConfig.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if INCLUDE_vTaskDelay != 1
|
||||||
|
#error "GOS: INCLUDE_vTaskDelay must be defined in FreeRTOSConfig.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if configUSE_MUTEXES != 1
|
#if configUSE_MUTEXES != 1
|
||||||
#error "GOS: configUSE_MUTEXES must be defined in FreeRTOSConfig.h"
|
#error "GOS: configUSE_MUTEXES must be defined in FreeRTOSConfig.h"
|
||||||
#endif
|
#endif
|
||||||
@ -26,8 +26,7 @@
|
|||||||
|
|
||||||
void _gosInit(void)
|
void _gosInit(void)
|
||||||
{
|
{
|
||||||
// IMPORTANT: Check for already started scheduler here!!!
|
// The user must call vTaskStartScheduler() himself before he calls gfxInit().
|
||||||
vTaskStartScheduler();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void* gfxRealloc(void *ptr, size_t oldsz, size_t newsz)
|
void* gfxRealloc(void *ptr, size_t oldsz, size_t newsz)
|
||||||
|
Loading…
Reference in New Issue
Block a user