编程
文章平均质量分 77
皮皮木子
这个作者很懒,什么都没留下…
展开
-
FreeModbus
mbframe.hConstants which defines the format of a modbus frame.The example is shown for a Modbus RTU/ASCII frame.Note that the Modbus PDU is not dependent on the underlying transport.协议栈定义#define MB_PDU_SIZE_MAX 253 /*!< Maximum size of a PDU. */#原创 2022-04-18 17:17:18 · 761 阅读 · 0 评论 -
FreeRTOS Queue
变量定义typedef void *QueueHandle_t; // Type by which queues are referenced. typedef void *QueueSetHandle_t; // Type by which queue sets are referenced.typedef void *QueueSetMemberHandle_t; /* For internal use only. */#define queueSEND_TO_BACK ((BaseTy原创 2022-04-15 17:32:06 · 385 阅读 · 0 评论 -
FreeRTOS 创建静态任务
FreeRTOS 创建静态任务范例:使用 xTaskCreateStatic 静态创建任务 // Dimensions the buffer that the task being created will use as its stack. #define STACK_SIZE 200 // Structure that will hold the TCB of the task being created. StaticTask_t xTaskBuffer; // Buffer that原创 2022-04-15 16:06:02 · 465 阅读 · 0 评论