mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Work-in-progress check in of MicroBlaze Kintex7 demo.
This commit is contained in:
parent
96e72413f7
commit
3012d9b94d
19 changed files with 7584 additions and 34 deletions
|
@ -512,7 +512,7 @@ TickType_t xTimeNow;
|
|||
/* No mutual exclusion on xOkToGiveMutex, but this is only test code (and
|
||||
only executed on a 32-bit architecture) so ignore that in this case. */
|
||||
xTimeNow = xTaskGetTickCountFromISR();
|
||||
if( ( xTimeNow - xLastGiveTime ) >= pdMS_TO_TICKS( intsemINTERRUPT_MUTEX_GIVE_PERIOD_MS ) )
|
||||
if( ( ( TickType_t ) ( xTimeNow - xLastGiveTime ) ) >= pdMS_TO_TICKS( intsemINTERRUPT_MUTEX_GIVE_PERIOD_MS ) )
|
||||
{
|
||||
configASSERT( xISRMutex );
|
||||
if( xOkToGiveMutex != pdFALSE )
|
||||
|
|
|
@ -395,10 +395,14 @@ static void prvTest3_CheckAutoReloadExpireRates( void )
|
|||
{
|
||||
uint8_t ucMaxAllowableValue, ucMinAllowableValue, ucTimer;
|
||||
TickType_t xBlockPeriod, xTimerPeriod, xExpectedNumber;
|
||||
UBaseType_t uxOriginalPriority;
|
||||
|
||||
/* Check the auto reload timers expire at the expected rates. */
|
||||
|
||||
|
||||
/* Check the auto reload timers expire at the expected rates. Do this at a
|
||||
high priority for maximum accuracy. This is ok as most of the time is spent
|
||||
in the Blocked state. */
|
||||
uxOriginalPriority = uxTaskPriorityGet( NULL );
|
||||
vTaskPrioritySet( NULL, ( configMAX_PRIORITIES - 1 ) );
|
||||
|
||||
/* Delaying for configTIMER_QUEUE_LENGTH * xBasePeriod ticks should allow
|
||||
all the auto reload timers to expire at least once. */
|
||||
xBlockPeriod = ( ( TickType_t ) configTIMER_QUEUE_LENGTH ) * xBasePeriod;
|
||||
|
@ -425,6 +429,9 @@ TickType_t xBlockPeriod, xTimerPeriod, xExpectedNumber;
|
|||
}
|
||||
}
|
||||
|
||||
/* Return to the original priority. */
|
||||
vTaskPrioritySet( NULL, uxOriginalPriority );
|
||||
|
||||
if( xTestStatus == pdPASS )
|
||||
{
|
||||
/* No errors have been reported so increment the loop counter so the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue