FreeRTOS202212 ‐ 定时器结构体定义
2023-12-18 21:53:18
FreeRTOS202212-定时器结构体
/*-----------------------------------------------------------*/
/* The definition of the timers themselves. */
/*定时器本身的定义*/
typedef struct tmrTimerControl /* The old naming convention is used to prevent breaking kernel aware debuggers. */
/*旧的命名约定用于防止破坏内核感知调试器*/
{
const char * pcTimerName; /*<< Text name. This is not used by the kernel, it is included simply to make debugging easier. */
/*lint !e971 Unqualified char types are allowed for strings and single characters only. */
/*<<文本名称。内核不使用它,它只是为了让调试更容易。e971不合格的字符类型只允许用于字符串和单个字符*/
ListItem_t xTimerListItem; /*<< Standard linked list item as used by all kernel features for event management. */
/*<<所有内核功能用于事件管理的标准链表项*/
TickType_t xTimerPeriodInTicks; /*<< How quickly and often the timer expires. */
/*<<定时器过期的速度和频率*/
void * pvTimerID; /*<< An ID to identify the timer. This allows the timer to be identified when the same callback is used for multiple timers. */
/*<<用于识别定时器的ID。这允许在同一回调用于多个定时器时识别定时器*/
TimerCallbackFunction_t pxCallbackFunction; /*<< The function that will be called when the timer expires. */
/*<<定时器到期时将调用的函数*/
#if ( configUSE_TRACE_FACILITY == 1 )
UBaseType_t uxTimerNumber; /*<< An ID assigned by trace tools such as FreeRTOS+Trace */
/*<<FreeRTOS+trace等跟踪工具分配的ID*/
#endif
uint8_t ucStatus; /*<< Holds bits to say if the timer was statically allocated or not, and if it is active or not. */
/*<<保留位,表示计时器是否静态分配,以及它是否处于活动状态*/
} xTIMER;
/* The old xTIMER name is maintained above then typedefed to the new Timer_t name below to enable the use of older kernel aware debuggers. */
/*旧的xTIMER名称保持在上面,然后将其类型defed为下面的新Timer_t名称,以启用旧的内核感知调试器*/
typedef xTIMER Timer_t;
文章来源:https://blog.csdn.net/weixin_43420126/article/details/135071176
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!