11.12:添加信号量同步机制;完成网关节点对环境节点的执行器控制功能。

This commit is contained in:
2025-11-12 02:22:38 +08:00
parent 998b8a45d0
commit bfc15aaa18
7 changed files with 310 additions and 236 deletions

View File

@@ -4,7 +4,6 @@
#include "stm32f10x.h" // Device header
#include "FreeRTOS.h"
#include "queue.h"
// #include "semphr.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
@@ -15,13 +14,6 @@
#define USART3_GPIO_PIN_ATK_MD0 GPIO_Pin_3 // PB3
#define USART3_QUEUE_LENGTH 256
typedef struct
{
/* data */
uint8_t *ucRxBuffer;
uint8_t ucIndex;
}Usart3RecBuffer_t;
extern QueueHandle_t xQueueUsart3ReHdlr;
void vUsart3Init(uint32_t ulUsart3Baudrate);