Merge branch 'dev_ck_v2.1_bug#1373#' into 'dev_ck_v2.1'
merge dev_ck_v2.1_bug#1373# to dev_ck_v2.1 See merge request ucp/driver/ucp4008_platform_spu!71
This commit is contained in:
commit
9e61eb299c
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "osp_type_def.h"
|
#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 APE_CFG_FILE_NUM (64)
|
||||||
|
|
||||||
#define OSP_CFG_FLAG_START (0xB0B0B0B0) /* 默认Flag,表示等待读配置文件 */
|
#define OSP_CFG_FLAG_START (0xB0B0B0B0) /* 默认Flag,表示等待读配置文件 */
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
#include "typedef.h"
|
#include "typedef.h"
|
||||||
|
|
||||||
#define CPRI_RRU_MSG_LEN 164
|
#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
|
typedef struct CpriRruMsg
|
||||||
{
|
{
|
||||||
uint32_t msg_addr;
|
uint32_t msg_addr;
|
||||||
|
@ -3588,7 +3588,7 @@ void HeaderTxRam_init(uint32_t vendor)
|
|||||||
__ucps2_synch(f_SM);
|
__ucps2_synch(f_SM);
|
||||||
do_write(&gVendorFlag,vendor);
|
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];
|
uint8_t g_rru_msg_data[CPRI_RRU_MSG_LEN];
|
||||||
int32_t set_cpri_rru_msg(CpriRruMsg_t rru_msg)
|
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;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
uint32_t get_cpri_rru_msg_addr()
|
uint32_t get_cpri_rru_msg_addr()
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
#if 1 :频点3.35001G的数据;
|
||||||
|
#else:频点2.6g的数据
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user