diff --git a/Source/include/FreeRTOS.h b/Source/include/FreeRTOS.h index 2216767fb..d7609f365 100644 --- a/Source/include/FreeRTOS.h +++ b/Source/include/FreeRTOS.h @@ -409,7 +409,7 @@ typedef portBASE_TYPE (*pdTASK_HOOK_CODE)( void * ); #endif #ifndef pvPortMallocAligned - #define pvPortMallocAligned( xSize, pvBuffer ) pvPortMalloc( xSize ); ( void ) pvBuffer + #define pvPortMallocAligned( x, puxStackBuffer ) ( ( puxStackBuffer == NULL ) ? ( pvPortMalloc( x ) ) : ( puxStackBuffer ) ) #endif #ifndef vPortFreeAligned diff --git a/Source/tasks.c b/Source/tasks.c index 75816f393..3ca53b104 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -72,8 +72,6 @@ task.h is included from an application file. */ */ #define tskIDLE_STACK_SIZE configMINIMAL_STACK_SIZE -#define tskIDLE_PRIORITY ( ( unsigned portBASE_TYPE ) 0 ) - /* * Task control block. A task control block (TCB) is allocated to each task, * and stores the context of the task.