mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-28 05:58:36 -04:00
Kernel source code:
+ Added xPortIsInsideInterrupt() to RVDS ARM CM4F port - the same will get added to other ports in time. Demo application code: + Added first pass Microchip CEC1302 demo for Keil. + Harden the new StaticAllocation.c standard demo tasks against integer promotion rules causing problems on 16-bit architectures.
This commit is contained in:
parent
732778a971
commit
42e73b9b8f
50 changed files with 24413 additions and 30 deletions
|
@ -244,7 +244,7 @@ stalled. */
|
|||
static volatile UBaseType_t uxCycleCounter = 0;
|
||||
|
||||
/* A variable that gets set to pdTRUE if an error is detected. */
|
||||
static BaseType_t xErrorOccurred = pdFALSE;
|
||||
static volatile BaseType_t xErrorOccurred = pdFALSE;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -346,7 +346,7 @@ TickType_t xTickCount;
|
|||
xTickCount = xTaskGetTickCount();
|
||||
xReturned = xSemaphoreTake( xSemaphore, xShortBlockTime );
|
||||
|
||||
if( ( xTaskGetTickCount() - xTickCount) < xShortBlockTime )
|
||||
if( ( ( TickType_t ) ( xTaskGetTickCount() - xTickCount ) ) < xShortBlockTime )
|
||||
{
|
||||
/* Did not block on the semaphore as long as expected. */
|
||||
xErrorOccurred = pdTRUE;
|
||||
|
@ -396,7 +396,7 @@ TickType_t xTickCount;
|
|||
xTickCount = xTaskGetTickCount();
|
||||
xReturned = xSemaphoreTake( xSemaphore, xShortBlockTime );
|
||||
|
||||
if( ( xTaskGetTickCount() - xTickCount) < xShortBlockTime )
|
||||
if( ( ( TickType_t ) ( xTaskGetTickCount() - xTickCount ) ) < xShortBlockTime )
|
||||
{
|
||||
/* Did not block on the semaphore as long as expected. */
|
||||
xErrorOccurred = pdTRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue