( void * ) xTimer, /* An identifier for the timer as all the auto reload timers use the same callback. */\r
prvAutoReloadTimerCallback ); /* The callback to be called when the timer expires. */\r
\r
+ configASSERT( strcmp( pcTimerGetTimerName( xAutoReloadTimers[ xTimer ] ), "FR Timer" ) == 0 );\r
+\r
if( xAutoReloadTimers[ xTimer ] == NULL )\r
{\r
xTestStatus = pdFAIL;\r
* <HR>\r
*/\r
\r
-/*\r
-Changes from V3.0.0\r
- + CreationCount sizes changed from unsigned portBASE_TYPE to\r
- unsigned short to minimize the risk of overflowing.\r
- \r
- + Reset of usLastCreationCount added\r
- \r
-Changes from V3.1.0\r
- + Changed the dummy calculation to use variables of type long, rather than\r
- float. This allows the file to be used with ports that do not support\r
- floating point.\r
-\r
-*/\r
\r
#include <stdlib.h>\r
\r
*/\r
BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait );\r
\r
+/**\r
+ * const char * const pcTimerGetTimerName( TimerHandle_t xTimer );\r
+ *\r
+ * Returns the name that was asigned to a timer when the timer was created.\r
+ *\r
+ * @param xTimer The handle of the timer being queried.\r
+ *\r
+ * @return The name asigned to the timer specified by the xTimer parameter.\r
+ */\r
+const char * const pcTimerGetTimerName( TimerHandle_t xTimer );\r
+\r
/*\r
* Functions beyond this part are not part of the public API and are intended\r
* for use by the kernel only.\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
+const char * const pcTimerGetTimerName( TimerHandle_t xTimer )\r
+{\r
+Timer_t *pxTimer = ( Timer_t * ) xTimer;\r
+\r
+ return pxTimer->pcTimerName;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )\r
{\r
BaseType_t xResult;\r