Quality RTOS & Embedded Software

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


Loading

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:

http://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/timers.c

Regards.


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


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

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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