1.修复Recv_symb freqoff数据输出地址错误的问题, 2.新增关闭APE5的宏
This commit is contained in:
parent
a9cc2350f1
commit
f5d71cf4d2
@ -17,7 +17,7 @@ void FreOff_Proc(
|
||||
uint32_t time_data_ddr_ptr;
|
||||
uint32_t time_data_length;
|
||||
uint32_t time_data_dm3_ptr = ((((uint32_t)&temp_dm3_ptr[0] + 4095)>>12)<<12);
|
||||
uint32_t res_ptr = RECEIVER_SYMB_OUT;
|
||||
uint32_t res_ptr = COMPENSATED_DATA_DDR_PTR;
|
||||
uint32_t time0, time1;
|
||||
time0 = Time_offset(0);
|
||||
// Read Global Buff
|
||||
@ -84,17 +84,17 @@ void FreOff_Proc(
|
||||
TRACE_MAX(TRACE_RECEIVER_SYMB_ADDR, 9, time1-time0);
|
||||
time0 = time1;
|
||||
|
||||
// Low-pass Filter
|
||||
if(storedfreoffestvalue > 600000){
|
||||
storedfreoffestvalue = freEstOutAddr[0];
|
||||
}
|
||||
else{
|
||||
storedfreoffestvalue = 0.7*storedfreoffestvalue + 0.3*freEstOutAddr[0];
|
||||
}
|
||||
freEstOutAddr[0] = storedfreoffestvalue;
|
||||
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 12, freEstOutAddr[0]);
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 13, 0xa0870);
|
||||
// // Low-pass Filter
|
||||
// if(storedfreoffestvalue > 600000){
|
||||
// storedfreoffestvalue = freEstOutAddr[0];
|
||||
// }
|
||||
// else{
|
||||
// storedfreoffestvalue = 0.7*storedfreoffestvalue + 0.3*freEstOutAddr[0];
|
||||
// }
|
||||
// freEstOutAddr[0] = storedfreoffestvalue;
|
||||
LOG_ERROR_S("5 %d\n", freEstOutAddr[0] );
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 12, freEstOutAddr[0]);
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 13, 0xa0870);
|
||||
|
||||
freEstOutAddr[0] = storedfreoffestvalue;
|
||||
|
||||
@ -133,10 +133,11 @@ void FreOff_Proc(
|
||||
1);
|
||||
|
||||
WAIT_MPU_STOP;
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 17, *fre_comp_exp_ptr);
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 18, *(fre_comp_exp_ptr+1));
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 19, *(fre_comp_exp_ptr+2));
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 20, *freEstOutAddr);
|
||||
LOG_ERROR_S("6 %d %d %d %d\n", *fre_comp_exp_ptr,*(fre_comp_exp_ptr+1), *(fre_comp_exp_ptr+2), *freEstOutAddr );
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 17, *fre_comp_exp_ptr);
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 18, *(fre_comp_exp_ptr+1));
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 19, *(fre_comp_exp_ptr+2));
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 20, *freEstOutAddr);
|
||||
|
||||
|
||||
freOffComp(ConfigAddr_comp,
|
||||
@ -149,11 +150,11 @@ void FreOff_Proc(
|
||||
SVRReg[0] = MPU_ADDR(ConfigAddr_comp);
|
||||
freOffCompAsm1(SVRReg);
|
||||
WAIT_MPU_STOP;
|
||||
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 21, *output_data_ptr);
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 22, *(output_data_ptr+1));
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 23, *(output_data_ptr+2));
|
||||
TRACE(TRACE_RECEIVER_SYMB_ADDR, 24, *(output_data_ptr+3));
|
||||
LOG_ERROR_S("7 %d %d %d %d\n", *output_data_ptr,*(output_data_ptr+1), *(output_data_ptr+2), *(output_data_ptr+3) );
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 21, *output_data_ptr);
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 22, *(output_data_ptr+1));
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 23, *(output_data_ptr+2));
|
||||
// TRACE(TRACE_RECEIVER_SYMB_ADDR, 24, *(output_data_ptr+3));
|
||||
|
||||
ape_csu_dma_1D_L2G_ch0ch1_transfer((uint64_t)DM_TO_CSU_ADDR((uint32_t)output_data_ptr),
|
||||
(uint64_t)(res_ptr + res_ptr_offset),
|
||||
|
@ -22,12 +22,18 @@
|
||||
*/
|
||||
void Receiver_Symb_Task(receiver_sync2symb_t* msg_ptr, uint32_t msg_len)
|
||||
{
|
||||
|
||||
uint32_t core_id = get_core_id();
|
||||
#ifdef CLOSE_APE3
|
||||
//先调一个核
|
||||
uint32_t core_id = get_core_id();
|
||||
|
||||
if(3 == core_id)
|
||||
return ;
|
||||
#endif
|
||||
#ifdef CLOSE_APE5
|
||||
//先调一个核
|
||||
|
||||
if(5 == core_id)
|
||||
return ;
|
||||
#endif
|
||||
uint16_t start_slot = TIME_SLOT();
|
||||
g_time_start[0] = TIME_NS();
|
||||
|
@ -24,6 +24,7 @@
|
||||
#define CLOSE_AI_PROCECING
|
||||
|
||||
/*核3暂时不工作,方便直接绝对地址打点*/
|
||||
// #define CLOSE_APE3
|
||||
// #define CLOSE_APE3
|
||||
//#define CLOSE_APE5
|
||||
|
||||
#endif /*_TEST_MACRO_H_*/
|
Loading…
x
Reference in New Issue
Block a user