Quality RTOS & Embedded Software

FreeRTOS Extended Maintenance Program (EMP) registration now open.
FreeRTOS-Plus-TCP v3.0.0 released:
Featured FreeRTOS IoT Integrations:
Delta Over-the-Air Updates:
December 2021 Releases:

[Timer API]

 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.

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.