Quality RTOS & Embedded Software

KERNEL
WHAT'S NEW
December 2021 Releases:
Extended Maintenance Plan (EMP):
FreeRTOS 202111.00 Release:
FreeRTOS LTS libraries:
Symmetric Multi-Processing:

vTimerSetReloadMode
[Timer API]

timers.h
 void vTimerSetReloadMode( TimerHandle_t xTimer,
                           const UBaseType_t uxAutoReload );

Updates the 'mode' of a software timer to be either an auto reload timer or a one-shot timer.

An auto reload timer resets itself each time it expires, causing the timer to expire (and therefore execute its callback) periodically.

A one shot timer does not automatically reset itself, so will only expire (and therefore execute its callback) once unless it is manually restarted.

This API function is only available if the FreeRTOS/Source/timers.c source file is included in the built project.

Parameters:
xTimer   The handle of the timer to update. The handle will have been returned from the call to xTimerCreate() or xTimerCreateStatic() used to create the timer.
uxAutoReload   Set uxAutoReload to pdTRUE to set the timer into auto reload mode, or pdFALSE to set the timer into one shot mode.



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