Merge branch 'dev_ck_v2.1_feature#1120#' into 'dev_ck_v2.1'
update New Feature#1120# See merge request ucp/driver/ucp4008_platform_arm!28
This commit is contained in:
commit
305e5255ba
@ -189,7 +189,7 @@ static inline void msg_transfer_queue_polling(void)
|
||||
|
||||
#define CELL_SETUP_TYPE_SIMULATION (0x5a6b7c8d)
|
||||
|
||||
void cell_setup_simulation()
|
||||
void cell_setup_simulation(uint8_t scs_id, uint8_t cell_id, uint32_t run_core)
|
||||
{
|
||||
uint32_t size = 16;
|
||||
char* buf;
|
||||
@ -216,6 +216,10 @@ void cell_setup_simulation()
|
||||
|
||||
*(uint32_t*)(buf + 0) = CELL_SETUP_TYPE_SIMULATION;
|
||||
*(uint32_t*)(buf + 4) = read_stc_local_timer();
|
||||
*(uint32_t*)(buf + 12) = 0; // build cell
|
||||
*(uint32_t*)(buf + 16) = scs_id;
|
||||
*(uint32_t*)(buf + 20) = cell_id;
|
||||
*(uint32_t*)(buf + 24) = run_core;
|
||||
|
||||
ret = msg_transfer_send_msg(handler.value, cu_flag, (uint8_t *)buf, offset, size);
|
||||
ret = msg_transfer_send_end(handler.value,cu_flag);
|
||||
@ -247,8 +251,11 @@ int32_t test_case(uint32_t argc, int32_t* argvp)
|
||||
handler.type_id = CU_SPLIT;
|
||||
|
||||
int32_t ret;
|
||||
uint8_t scs_id = 1; // NR 30K
|
||||
uint8_t cell_id = 0;
|
||||
uint32_t run_ape = 0xF;
|
||||
|
||||
cell_setup_simulation();
|
||||
cell_setup_simulation(scs_id, cell_id, run_ape);
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user