test: 🐛 恢复原子读取操作,屏蔽slot_ind_flag==1的打印

This commit is contained in:
yuanQie 2025-05-26 22:23:49 +08:00
parent 3c76a6bbcb
commit 441127df95

View File

@ -209,12 +209,12 @@ void *handleUdpTransmission(void *arg)
wr_cunt = (wr_cunt + 1) % 20; wr_cunt = (wr_cunt + 1) % 20;
/************************************************************************************** */ /************************************************************************************** */
// 更新生产者计数 // 更新生产者计数
// uint8_t w_idx = __atomic_load_n( uint8_t w_idx = __atomic_load_n(
// (volatile uint8_t *)(map_base_rxf_case52 + 0), (volatile uint8_t *)(map_base_rxf_case52 + 0),
// __ATOMIC_ACQUIRE __ATOMIC_ACQUIRE
// ); );
printf("[test 03]\n"); printf("[test 03]\n");
uint8_t w_idx = *((volatile uint8_t *)map_base_rxf_case52); // uint8_t w_idx = *((volatile uint8_t *)map_base_rxf_case52);
/************************************************************************************** */ /************************************************************************************** */
// 尝试读取 // 尝试读取
uint8_t block_n = 0; uint8_t block_n = 0;
@ -298,7 +298,7 @@ uint32_t rx_callback_data(const char* buf,uint32_t payloadSize)
uint32_t tick_from_tx_ctrl = *(uint32_t *)(buf+4); uint32_t tick_from_tx_ctrl = *(uint32_t *)(buf+4);
printf("[rx_callback_data]:slot_ind_flag == 1 \n"); // printf("[rx_callback_data]:slot_ind_flag == 1 \n");
slot_ind_flag = 1; slot_ind_flag = 1;
gu32_value = value; gu32_value = value;
gu32_tick_receive_ctrl = stc_cnt; gu32_tick_receive_ctrl = stc_cnt;