mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
MSP430:
Add additional NOPs as required by hardware manual. Microblaze: Previously a task inherited the exception enable state from the context from which xTaskCreate() was called. Now tasks all have exceptions enabled if they are enabled in the hardware. Windows/GCC: Improve the implementation of portGET_HIGHEST_PRIORITY. Common code: Simplify the pointer use in xQueueGenericCreate() Demo apps: Remove jpg images that were used to create web pages. Fix capitalisation issues in some demos where some header files are incldued with the wrong case, preventing building on Linux. Remove the Microblaze demos that are using obsolete tools. Update main_blinky for the Windows port demo to include a software timer example.
This commit is contained in:
parent
95b73d40d9
commit
d3e053568d
157 changed files with 157 additions and 65765 deletions
|
@ -315,7 +315,6 @@ QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseT
|
|||
Queue_t *pxNewQueue;
|
||||
size_t xQueueSizeInBytes;
|
||||
QueueHandle_t xReturn = NULL;
|
||||
int8_t *pcAllocatedBuffer;
|
||||
|
||||
/* Remove compiler warnings about unused parameters should
|
||||
configUSE_TRACE_FACILITY not be set to 1. */
|
||||
|
@ -336,12 +335,10 @@ int8_t *pcAllocatedBuffer;
|
|||
}
|
||||
|
||||
/* Allocate the new queue structure and storage area. */
|
||||
pcAllocatedBuffer = ( int8_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes );
|
||||
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes );
|
||||
|
||||
if( pcAllocatedBuffer != NULL )
|
||||
if( pxNewQueue != NULL )
|
||||
{
|
||||
pxNewQueue = ( Queue_t * ) pcAllocatedBuffer; /*lint !e826 MISRA The buffer cannot be too small because it was dimensioned by sizeof( Queue_t ) + xQueueSizeInBytes. */
|
||||
|
||||
if( uxItemSize == ( UBaseType_t ) 0 )
|
||||
{
|
||||
/* No RAM was allocated for the queue storage area, but PC head
|
||||
|
@ -353,8 +350,8 @@ int8_t *pcAllocatedBuffer;
|
|||
else
|
||||
{
|
||||
/* Jump past the queue structure to find the location of the queue
|
||||
storage area - adding the padding bytes to get a better alignment. */
|
||||
pxNewQueue->pcHead = pcAllocatedBuffer + sizeof( Queue_t );
|
||||
storage area. */
|
||||
pxNewQueue->pcHead = ( ( int8_t * ) pxNewQueue ) + sizeof( Queue_t );
|
||||
}
|
||||
|
||||
/* Initialise the queue members as described above where the queue type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue