1.解决数组g_rru_msg_data的地址4字节对齐问题 2.函数set_cpri_rru_msg增加大小端转换功能 3.更新25G宽带信号case72

This commit is contained in:
cheng.wan 2023-12-08 15:50:48 +08:00
parent 2fb248bace
commit 48ffee72b7
6 changed files with 124826 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#include "osp_type_def.h"
#define APE_CFG_FILE_NAME_LEN (32) //(64) /* 为节省内存开销文件名长度由64->32字节 */
#define APE_CFG_FILE_NAME_LEN (64)
#define APE_CFG_FILE_NUM (64)
#define OSP_CFG_FLAG_START (0xB0B0B0B0) /* 默认Flag表示等待读配置文件 */

View File

@ -14,6 +14,8 @@
#include "typedef.h"
#define CPRI_RRU_MSG_LEN 164
#define SWAP32(A) ((((uint32_t)(A) & 0xff000000) >> 24) | (((uint32_t)(A) & 0x00ff0000) >> 8) | (((uint32_t)(A) & 0x0000ff00) << 8) | (((uint32_t)(A) & 0x000000ff) << 24))
typedef struct CpriRruMsg
{
uint32_t msg_addr;

View File

@ -3588,7 +3588,7 @@ void HeaderTxRam_init(uint32_t vendor)
__ucps2_synch(f_SM);
do_write(&gVendorFlag,vendor);
}
uint8_t SECTION_ALIGNED g_rru_msg_data[CPRI_RRU_MSG_LEN];
uint8_t g_rru_msg_data[CPRI_RRU_MSG_LEN];
int32_t set_cpri_rru_msg(CpriRruMsg_t rru_msg)
{
@ -3596,9 +3596,13 @@ int32_t set_cpri_rru_msg(CpriRruMsg_t rru_msg)
{
return -1;
}
memcpy_ucp(&g_rru_msg_data, (uint8_t*)rru_msg.msg_addr, rru_msg.msg_len);
for(int i=0; i<41; i++)
{
*((uint32_t *)&g_rru_msg_data[0] + i) = SWAP32(*((uint32_t *)rru_msg.msg_addr + i));
}
// memcpy_ucp(&g_rru_msg_data, (uint8_t*)rru_msg.msg_addr, rru_msg.msg_len);
return 0;
}
uint32_t get_cpri_rru_msg_addr()

View File

@ -0,0 +1,2 @@
#if 1 频点3.35001G的数据;
#else:频点2.6g的数据