diff --git a/.github/lexicon.txt b/.github/lexicon.txt index 853c73f22..76443884e 100644 --- a/.github/lexicon.txt +++ b/.github/lexicon.txt @@ -3089,6 +3089,7 @@ xtaskswaitingtermination xtaskswaitingtoreceive xtaskswaitingtosend xtasktodelete +xtasktomodify xtasktonotify xtasktoquery xtasktoresume diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h index 5016ebf5e..34a14ca63 100644 --- a/include/FreeRTOS.h +++ b/include/FreeRTOS.h @@ -472,6 +472,14 @@ #endif +#ifndef configUSE_CORE_AFFINITY + #define configUSE_CORE_AFFINITY 0 +#endif /* configUSE_CORE_AFFINITY */ + +#ifndef configUSE_MINIMAL_IDLE_HOOK + #define configUSE_MINIMAL_IDLE_HOOK 0 +#endif /* configUSE_MINIMAL_IDLE_HOOK */ + /* The timers module relies on xTaskGetSchedulerState(). */ #if configUSE_TIMERS == 1 diff --git a/include/task.h b/include/task.h index a7e1c795e..d0441f439 100644 --- a/include/task.h +++ b/include/task.h @@ -715,7 +715,7 @@ typedef enum * a call to xTaskCreateRestricted(). These regions can be redefined using * vTaskAllocateMPURegions(). * - * @param xTask The handle of the task being updated. + * @param xTaskToModify The handle of the task being updated. * * @param[in] pxRegions A pointer to a MemoryRegion_t structure that contains the * new memory region definitions. @@ -1321,7 +1321,7 @@ BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION; UBaseType_t uxCoreAffinityMask ); #endif -#if ( configUSE_CORE_AFFINITY == 1 ) +#if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) ) /** * @brief Gets the core affinity mask for a task. diff --git a/portable/MemMang/heap_5.c b/portable/MemMang/heap_5.c index bd641dcdf..24a7adac9 100644 --- a/portable/MemMang/heap_5.c +++ b/portable/MemMang/heap_5.c @@ -120,8 +120,8 @@ * of their memory address. */ typedef struct A_BLOCK_LINK { - struct A_BLOCK_LINK * pxNextFreeBlock; /*<< The next free block in the list. */ - size_t xBlockSize; /*<< The size of the free block. */ + struct A_BLOCK_LINK * pxNextFreeBlock; /**< The next free block in the list. */ + size_t xBlockSize; /**< The size of the free block. */ } BlockLink_t; /*-----------------------------------------------------------*/ diff --git a/portable/ThirdParty/GCC/Posix/port.c b/portable/ThirdParty/GCC/Posix/port.c index 23aec6552..54134873f 100644 --- a/portable/ThirdParty/GCC/Posix/port.c +++ b/portable/ThirdParty/GCC/Posix/port.c @@ -584,12 +584,12 @@ static void prvSetupSignalsAndSchedulerPolicy( void ) } /*-----------------------------------------------------------*/ -unsigned long ulPortGetRunTime( void ) +uint32_t ulPortGetRunTime( void ) { struct tms xTimes; times( &xTimes ); - return ( unsigned long ) xTimes.tms_utime; + return ( uint32_t ) xTimes.tms_utime; } /*-----------------------------------------------------------*/ diff --git a/portable/ThirdParty/GCC/Posix/portmacro.h b/portable/ThirdParty/GCC/Posix/portmacro.h index 154a03975..5e57a050a 100644 --- a/portable/ThirdParty/GCC/Posix/portmacro.h +++ b/portable/ThirdParty/GCC/Posix/portmacro.h @@ -37,6 +37,7 @@ /* *INDENT-ON* */ #include +#include /*----------------------------------------------------------- * Port specific definitions. @@ -126,7 +127,7 @@ extern void vPortCancelThread( void *pxTaskToDelete ); */ #define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) -extern unsigned long ulPortGetRunTime( void ); +extern uint32_t ulPortGetRunTime( void ); #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() /* no-op */ #define portGET_RUN_TIME_COUNTER_VALUE() ulPortGetRunTime()