Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Get name of the timer

Posted by lantczak on March 28, 2014

Hi, I'm using version 8.0. How can I get name of the timer?

As I see there is no API for this. To read timer name I have to made some "magic" cast "(char *) timerHandler" and hope that internal "xTIMER" structure organization will not be changed in future.

Note: My solution => I added function char *pcTimerGetTimerName( TimerHandle_t xTimer ); to timer.c. It would be nice to have that kind of function in official build

Best regards Lukasz Antczak

Get name of the timer

Posted by rtel on March 28, 2014

I have just updated timers.c to include the function pcTimerGetTimerName(). You can safely add the same function to your code as timers.c is already checked into SVN so the function will be in the next version. You can search for the function's [extremely simple] implementation on the following link:



[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo, Nuvoton Cortex-M23 demo & STM32H745 dual core (AMP) demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner