Quality RTOS & Embedded Software

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


Question on xTimerStart returned type

Posted by learningperson on October 12, 2017

Hello, I'm completely new, (at the level of beginning at reading the manual) and I kindly request some information.

Question: In the "Mastering the FreeRTOS TM Real Time Kernel" copy 161204, Listing 74 documentation, should the discription of xTimerStart have a returned value of BaseTypet instead of TimerHandlet?

TimerHandlet xTimerStart( TimerHandlet xTimer, TickTypet xTicksToWait ); // what is on Listing 74. BaseTypet xTimerStart( TimerHandlet xTimer, TickTypet xTicksToWait ); // what I think it should be.

BaseTypet would be consistant with the example code in listing 75: BaseTypet xTimer1Started, xTimer2Started;

And BaseType_t would be consistant with table 28: returned value of pdPASS or pdFALSE.

For example: pdPASS or pdFAIL is of type BaseType_t in the listing 13 documentation for xTaskCreate:

BaseTypet xTaskCreate( TaskFunctiont pvTaskCode, const char * const pcName, uint16t usStackDepth, void *pvParameters, UBaseTypet uxPriority, TaskHandle_t *pxCreatedTask );

Thank you in advance for your help.

Question on xTimerStart returned type

Posted by rtel on October 15, 2017

Apologies for the delay in replying - you are right - it is an error in the book text as the return type is BaseType_t. You can see the actual function in FreeRTOS/source/include/timers.h.

Question on xTimerStart returned type

Posted by learningperson on October 17, 2017

Thank you for helping me. I think the book is very well written.

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

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

Latest News

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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.


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


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