"完成了433多数据同时接收的时候的冲突问题,解决了网络未连接会卡死整个程序的问题“

This commit is contained in:
2026-05-08 18:49:05 +08:00
parent 6c56fe8a60
commit 6e2b13dbb3
6 changed files with 71 additions and 43 deletions

View File

@ -73,7 +73,7 @@ extern "C" {
🚀 核心身份标识:烧录不同设备时,请务必修改这个数字!
比如设备A烧录时改为 0x01设备B烧录时改为 0x02
========================================================= */
#define MY_DEVICE_ID 0x01
#define MY_DEVICE_ID 0x02
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/

View File

@ -64,6 +64,8 @@ typedef struct {
uint32_t tx_count;
uint32_t error_count;
bool initialized;
volatile bool csma_backoff_active;
volatile uint32_t csma_backoff_until;
} uart_port_context_t;
void MultiUART_Init(void);