Skip to content

Commit

Permalink
Added v2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Aug 6, 2024
1 parent 4a2a9db commit e92bf55
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions FreeRTOS/Test/Target/tests/smp/crit_speed/crit_speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,21 @@ static void Test_CriticalSectionSpeed( void )
/* Test taskENTER_CRITICAL() elapsed time */
uxTemp = portTEST_GET_TIME();

vTaskEnterCritical();
#if ( portGRANULAR_LOCKING == 1 )
taskENTER_CRITICAL();
#else
vTaskEnterCritical();
#endif
uxEntryElapsedCumulative += ( portTEST_GET_TIME() - uxTemp );

/* Test taskEXIT_CRITICAL elapsed time */
uxTemp = portTEST_GET_TIME();

vTaskExitCritical();
#if ( portGRANULAR_LOCKING == 1 )
taskEXIT_CRITICAL();
#else
vTaskExitCritical();
#endif
uxExitElapsedCumulative += ( portTEST_GET_TIME() - uxTemp );
}

Expand Down

0 comments on commit e92bf55

Please sign in to comment.