feat: 🎨 添加一些注释
This commit is contained in:
parent
51590f712e
commit
a709f689c5
@ -191,7 +191,7 @@ void *handleUdpTransmission(void *arg)
|
||||
{
|
||||
slot_ind_flag = 0;
|
||||
/************************************************************************************** */
|
||||
// wr 16016*64(byte) [8008] 2字节复制,一次while循环会写入 1/64 的数据,触发条件为slot_ind_flag
|
||||
// wr 16016*64(byte) [8008] 2字节复制,一次while循环会写入 1/20 的数据,触发条件为slot_ind_flag
|
||||
size_t buffer_start = data_index;// 当前数据读取的起始索引
|
||||
size_t elements_remaining = 65535 - buffer_start;// 从buffer_start到数组末尾的剩余元素数
|
||||
size_t elements_to_copy = (elements_remaining >= 8008) ? 8008 : elements_remaining; // 剩余
|
||||
@ -240,7 +240,7 @@ void *handleUdpTransmission(void *arg)
|
||||
}
|
||||
// 更新r_idx,如果到头
|
||||
r_idx = r_idx % 8;
|
||||
} else {
|
||||
} else { //r_idx > w_idx
|
||||
printf("[while(1)]: w_idx < r_idx\n");
|
||||
printf("[while(1)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
|
||||
// 取完末尾
|
||||
@ -585,7 +585,7 @@ int32_t test_case(uint32_t argc, int32_t* argvp)
|
||||
// int32_t ret;
|
||||
uint8_t scs_id = 1; // NR 30K // 0; // NR 15K
|
||||
uint8_t cell_id = 0; //0xFF;
|
||||
uint32_t run_ape = 0x11;
|
||||
uint32_t run_ape = 0x11; //0x11
|
||||
// uint32_t run_ape = 0x1; // 0;
|
||||
uint8_t frame_type = 0; // fdd
|
||||
cell_setup_simulation(scs_id, cell_id, run_ape, frame_type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user