FreeRTOS-Kernel/include
Nicola Fontana b178814998
New API xTaskPeriodicDelay (#1349) (#1368)
* New API xTaskPeriodicDelay (#1349)

New function to be used for periodic tasks to ensure a constant
execution frequency. It is intended to supersede xTaskDelayUntil to
overcome its shortcomings, that is:

- avoid run away of pxPreviousWakeTime (#1339)
- catch up any skipped period immediately (and update pxPreviousWakeTime
  accordingly), notify the caller of the number of periods skipped (by
  returning them) and wait until the next period (it could be less than
  xTimeIncrement if we are close to the next period)
- notify the caller when not enough ticks have been elapsed (by
  returning 0) and handle the situation gracefully (by properly waiting
  until the next wake time)

Signed-off-by: Nicola Fontana <ntd@entidi.it>
Co-authored-by: Kody Stribrny <89810515+kstribrnAmzn@users.noreply.github.com>
2026-08-03 08:04:06 -07:00
..
atomic.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
CMakeLists.txt Fix circular dependency in CMake project (#700) 2023-07-10 15:08:59 -07:00
croutine.h MPLAB PIC32MZ-EF - Adds an assert to catch register overflow (#1265) (#1267) 2025-04-25 17:05:15 +05:30
deprecated_definitions.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
event_groups.h event-groups: Fix multiple definitions (#1307) 2025-08-14 10:40:59 -07:00
FreeRTOS.h New API xTaskPeriodicDelay (#1349) (#1368) 2026-08-03 08:04:06 -07:00
list.h - Fixed the wrong pre-processor comment and function parameters 2026-04-23 12:58:23 -07:00
message_buffer.h fix stream/message buffer type and timeout in example 2026-04-21 14:55:29 -07:00
mpu_prototypes.h fix: Add MPU wrapper for xTimerDelete API (#1412) 2026-07-08 17:38:51 -07:00
mpu_syscall_numbers.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
mpu_wrappers.h Add comment explaining ACL permissions revocation (#1421) 2026-07-23 10:32:25 -07:00
newlib-freertos.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
picolibc-freertos.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
portable.h Disable stack overflow check for MPU ports (#1231) 2025-02-24 21:54:15 +05:30
projdefs.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
queue.h Correct minor mistakes in code comments (#1371) 2026-02-20 11:11:15 -08:00
semphr.h Fix datatype of queue item length macros (#1286) 2025-06-30 18:11:30 +05:30
stack_macros.h Revert "FreeRTOS SMP: direct access to current TCB inside stack macros (#1270)" (#1272) 2025-05-05 15:45:15 +05:30
StackMacros.h Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
stdint.readme Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
stream_buffer.h fix stream/message buffer type and timeout in example 2026-04-21 14:55:29 -07:00
task.h New API xTaskPeriodicDelay (#1349) (#1368) 2026-08-03 08:04:06 -07:00
timers.h fix: Add MPU wrapper for xTimerDelete API (#1412) 2026-07-08 17:38:51 -07:00