1.将APE_CFG_FILE_NAME_LEN由64恢复为32(之前误改) 2.删除重复定义的g_rru_msg_data 3.读物理层控制字信息改为使用do_read_volatile方式

This commit is contained in:
cheng.wan 2023-12-08 19:17:34 +08:00
parent 48ffee72b7
commit 00d662b168
2 changed files with 3614 additions and 3612 deletions

View File

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

View File

@ -3588,23 +3588,25 @@ 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)
{
if ((0 == rru_msg.msg_addr) || (0 == rru_msg.msg_len))
if((0 == rru_msg.msg_addr) || (0 == rru_msg.msg_len))
{
return -1;
}
for(int i=0; i<41; i++)
{
*((uint32_t *)&g_rru_msg_data[0] + i) = SWAP32(*((uint32_t *)rru_msg.msg_addr + i));
*((uint32_t *)&g_rru_msg_data[0] + i) = SWAP32(do_read_volatile(rru_msg.msg_addr + i*4));
}
// 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()
{
return (uint32_t)g_rru_msg_data;