test: 🐛 恢复原子读取操作,屏蔽slot_ind_flag==1的打印
This commit is contained in:
parent
3c76a6bbcb
commit
441127df95
@ -209,12 +209,12 @@ void *handleUdpTransmission(void *arg)
|
||||
wr_cunt = (wr_cunt + 1) % 20;
|
||||
/************************************************************************************** */
|
||||
// 更新生产者计数
|
||||
// uint8_t w_idx = __atomic_load_n(
|
||||
// (volatile uint8_t *)(map_base_rxf_case52 + 0),
|
||||
// __ATOMIC_ACQUIRE
|
||||
// );
|
||||
uint8_t w_idx = __atomic_load_n(
|
||||
(volatile uint8_t *)(map_base_rxf_case52 + 0),
|
||||
__ATOMIC_ACQUIRE
|
||||
);
|
||||
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;
|
||||
@ -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);
|
||||
|
||||
printf("[rx_callback_data]:slot_ind_flag == 1 \n");
|
||||
// printf("[rx_callback_data]:slot_ind_flag == 1 \n");
|
||||
slot_ind_flag = 1;
|
||||
gu32_value = value;
|
||||
gu32_tick_receive_ctrl = stc_cnt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user