下载 FreeRTOS
 

出色的 RTOS & 嵌入式软件

内核
最新资讯
FreeRTOS-Plus-TCP 现具有统一的 IPv4 和 IPv6 功能,支持多接口。
为基于 FreeRTOS 的固件实现防砖化 MCU FOTA:
宣布停止支持 FreeRTOS 202012 LTS。
FreeRTOS 网站现已提供简体中文版本
新的 FreeRTOS Long Term Support 版本现已发布。

xTimerGetReloadMode
uxTimerGetReloadMode
[定时器 API]

task.h

BaseType_t  xTimerGetReloadMode( TimerHandle_t xTimer );
UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer );
查询 xTimer 句柄引用的软件计时器的“模式”。

该模式可以是自动重载定时器(每次到期都会自动重置),或者 一次性计时器(除非手动重新启动,否则仅到期一次)。

xTimerGetReloadMode 和 uxTimerGetReloadMode 仅在其返回类型上有所不同。xTimerGetReloadMode 返回 BaseType_t 以匹配实际返回值 pdTRUE/pdFALSE 的类型。 uxTimerGetReloadMode 是为了向后兼容而提供的, 新的应用程序应该使用 xTimerGetReloadMode 来代替。

这些 API 函数仅在已构建项目中包含 FreeRTOS 'timers.c' 源文件, 并且在 FreeRTOSConfig.h 中将 configUSE_TIMERS 设置为 1 时才可用。

参数:
xTimer 要查询的定时器的句柄。该句柄通过调用用于创建计时器的 xTimerCreate()xTimerCreateStatic() 返回。
返回:
如果句柄为 xTimer 的定时器为自动重载定时器,则返回 pdTRUE,否则返回 pdFALSE。





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