Quality RTOS & Embedded Software

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


Loading

Calling xTimerStart in timer callback

Posted by freertos99 on February 27, 2019

Hello Experts, Would like to know your opinion on below scenario. 1) Create the timer Z via xTimerCreate() 2) Start the timer Z via xTimerStart() 3) When timer expires the callback routine is called. 4) Inside callback routine again start the same timer Z via xTimerStart().

Is step 4) Okay? Or do you see any side effects in this? Please let me know. Thanks for your time.


Calling xTimerStart in timer callback

Posted by rtel on February 27, 2019

4) is only ok if you have a block time of 0, otherwise you risk deadlock if the timer command queue is full.


Calling xTimerStart in timer callback

Posted by freertos99 on February 28, 2019

Thanks for the clarification.


Calling xTimerStart in timer callback

Posted by freertos99 on February 28, 2019


[ 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.


Careers

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

Mediatek

Renesas

RISC-V

SiFIve RISC-V

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