Add the pcTimerGetTimerName() API function.

This commit is contained in:
Richard Barry 2014-03-28 14:41:15 +00:00
parent 887fcd04f4
commit ef7f3c5320
4 changed files with 21 additions and 13 deletions

View file

@ -291,6 +291,8 @@ unsigned portBASE_TYPE xTimer;
( void * ) xTimer, /* An identifier for the timer as all the auto reload timers use the same callback. */
prvAutoReloadTimerCallback ); /* The callback to be called when the timer expires. */
configASSERT( strcmp( pcTimerGetTimerName( xAutoReloadTimers[ xTimer ] ), "FR Timer" ) == 0 );
if( xAutoReloadTimers[ xTimer ] == NULL )
{
xTestStatus = pdFAIL;