11.6_1:解决了中断消息队列无法正常接收串口中断的bug,初步实现中断消息队列。

This commit is contained in:
2025-11-06 21:25:30 +08:00
parent 5f408b4ece
commit 3e3e96e017
7 changed files with 104 additions and 71 deletions

View File

@@ -45,7 +45,7 @@ void vLoRaToGateSenIdPkt(uint8_t ucSensorId)
}
}
void vLoRToGateExeIdPkt(uint8_t ucExeId)
void vLoRaToGateExeIdPkt(uint8_t ucExeId)
{
if (ucExeId == xLoRaExecutorID.ucIdLed)
{
@@ -69,3 +69,8 @@ void vLoRToGateExeIdPkt(uint8_t ucExeId)
vUsart3SendArray((uint8_t *)&xLoRaExecutorID.ucIdServo, 1);
}
}
void vLoRaReceivedMesg(void)
{
}

View File

@@ -34,6 +34,8 @@
#define LORA_EXECUTOR_STATUS_ON 0x01
#define LORA_EXECUTOR_STATUS_OFF 0x00
/* LoRa<52><61>ֲ<EFBFBD><D6B2> */
typedef struct {
uint8_t ucLoRaGateAddrHigh;
uint8_t ucLoRaGateAddrLow;
@@ -126,6 +128,7 @@ static LoRaUsart3Rx_t xLoRaUsart3Rx = { 0 };
void vLoRaConnectionPkt(void);
void vLoRaToGateIdPkt(uint8_t ucNodeId);
void vLoRaToGateSenIdPkt(uint8_t ucSensorId);
void vLoRToGateExeIdPkt(uint8_t ucExecutorId);
void vLoRaToGateExeIdPkt(uint8_t ucExecutorId);
void vLoRaReceivedMesg(void);
#endif