"完成了433多数据同时接收的时候的冲突问题,解决了网络未连接会卡死整个程序的问题“
This commit is contained in:
@ -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 ---------------------------------------------*/
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user