修改TX任务启动定时偏移50->200

This commit is contained in:
HUOHUO 2025-06-13 07:56:15 -07:00
parent 32a3d8739f
commit 49b3a79afe
7 changed files with 22 additions and 6 deletions

View File

@ -35,7 +35,7 @@ void ape0_event_task(uint32_t addr, uint32_t size)
osp_task_info_ex mgr_task1 =
{PHY_TASK_SLOT_IND, "Slot_ind", PHY_TASK_PRI_SLOT_IND, 2048, OSP_TIMER_TYPE, 0x000, 0x3FF, 0, NULLPTR, (OSP_TASKENTRY_FUNC)Slot_ind_Task};
osp_task_info_ex mgr_task2 =
{PHY_TASK_TRANSIMITTER, "Transmitter", PHY_TASK_PRI_TRANSMITTER, 4096, OSP_TIMER_TYPE, 0x000, 0x3FF, 50, (OSP_TASKINIT_FUNC)Transmitter_Init, (OSP_TASKENTRY_FUNC)Transmitter_Task};
{PHY_TASK_TRANSIMITTER, "Transmitter", PHY_TASK_PRI_TRANSMITTER, 4096, OSP_TIMER_TYPE, 0x000, 0x3FF, 200, (OSP_TASKINIT_FUNC)Transmitter_Init, (OSP_TASKENTRY_FUNC)Transmitter_Task};
osp_task_info_ex mgr_task3 =
{PHY_TASK_TEST, "Test_Task", PHY_TASK_PRI_TEST, 4096, OSP_TIMER_TYPE, 0x000, 0x3FF, 50, NULL, (OSP_TASKENTRY_FUNC)Test_Task};

View File

@ -162,7 +162,6 @@ void Receiver_Bit_Proc(
counter = 0;
else
counter = counter + 1;
LOG_ERROR_S("CNT%d\n",counter);
STORE_EX_W(res_counter_ptr, counter);

View File

@ -625,8 +625,8 @@ void Receiver_Fine_Sync_Proc(uint32_t sfn, uint32_t slot, uint32_t proc_type)
data_send2symb_task[task_idx].transform_para_imag[3] = transform_get_thita4_imag();
g_proc_id++;
LOG_ERROR_S("data1 %d 0x%08x %d 0x%08x %d\n", proc_head, data_send2symb_task[task_idx].data_section0_ptr, frame_head_offset,
(data_send2symb_task[task_idx].data_section0_ptr + (data_send2symb_task[task_idx].data_section0_length<<2)), data_send2symb_task[task_idx].data_section1_length);
//LOG_ERROR_S("data1 %d 0x%08x %d 0x%08x %d\n", proc_head, data_send2symb_task[task_idx].data_section0_ptr, frame_head_offset,
// (data_send2symb_task[task_idx].data_section0_ptr + (data_send2symb_task[task_idx].data_section0_length<<2)), data_send2symb_task[task_idx].data_section1_length);
//为了适配SYMB接口如果数据是两段搬移成一块
if(2 == data_send2symb_task[task_idx].num_data_section)

View File

@ -26,7 +26,19 @@ void Receiver_Sync_Task()
uint16_t end_us;
RUN_CNT(TRACE_RECEIVER_SYNC_ADDR, 0);
// volatile uint32_t temp = LOAD_EX_W(JESD_NRFDD_RX_SLOT_EVEN_DATA_ADDR);
// volatile uint32_t temp1;
// while(1)
// {
// temp1 = LOAD_EX_W(JESD_NRFDD_RX_SLOT_EVEN_DATA_ADDR);
// if(temp != temp1)
// {
// uint32_t a = get_tx_nr_slot_cycle();
// uint32_t b = get_tx_nr_slot();
// LOG_ERROR_S("%d %d\n", b, a);
// temp = temp1;
// }
// }
//6. 计算流程
Receiver_Sync_Proc();

View File

@ -209,6 +209,11 @@ void Receiver_First_Sync_Proc(receiver_sync2first_sync_t* msg_ptr, uint32_t msg_
(61440)<<2,
DMA_TAG_G2G,
1);
volatile uint32_t wait_time = Time_offset(0);
while(wait_time < 500000)
{
wait_time = Time_offset(0);
}
ape_csu_dma_1D_G2L_ch2ch3_transfer((uint64_t)(src_addr1),
(uint64_t)JESD_NRFDD_RX_SLOT_SRC1_DATA_ADDR,//第一次固定搬移到dm0
(2048)<<2,

Binary file not shown.

Binary file not shown.