1. pet rfm1 has no shell cmd, don't call spu_shell_task()
2. update the spu_shell_task dadian's information 3. adjust the initialization: osp_var_init() should call before ape_stc_init()
This commit is contained in:
parent
56dbf9a1be
commit
88d47d6557
@ -39,9 +39,10 @@ void soc_drv_init(void)
|
|||||||
|
|
||||||
pet_sm_init();
|
pet_sm_init();
|
||||||
|
|
||||||
|
osp_var_init();
|
||||||
|
|
||||||
ape_stc_init();
|
ape_stc_init();
|
||||||
|
|
||||||
osp_var_init();
|
|
||||||
UCP_PRINT_EMPTY("stc timer init. \r\n");
|
UCP_PRINT_EMPTY("stc timer init. \r\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1017,14 +1017,14 @@ void spu_shell_task(void)
|
|||||||
uint8_t u8loop = g_core_id + 12;
|
uint8_t u8loop = g_core_id + 12;
|
||||||
spu_sw_msg_info_t *psw_msg = NULL;
|
spu_sw_msg_info_t *psw_msg = NULL;
|
||||||
|
|
||||||
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 20), ++gu32_osp_shell_task_cnt);
|
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 16), ++gu32_osp_shell_task_cnt);
|
||||||
|
|
||||||
/* 从软队列里取出 */
|
/* 从软队列里取出 */
|
||||||
if(0 == spu_sw_deque(u8loop, (uint32_t **)&psw_msg))
|
if(0 == spu_sw_deque(u8loop, (uint32_t **)&psw_msg))
|
||||||
{
|
{
|
||||||
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 21), psw_msg);
|
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 17), psw_msg);
|
||||||
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 22), &psw_msg);
|
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 18), &psw_msg);
|
||||||
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 23), ++gu32_osp_shell_task_rev);
|
debug_write(DBG_DDR_COMMON_IDX(g_core_id, 19), ++gu32_osp_shell_task_rev);
|
||||||
spu_shell_proc(psw_msg);
|
spu_shell_proc(psw_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ int32_t main(int32_t argc, char* argv[])
|
|||||||
while(1) {
|
while(1) {
|
||||||
msg_transfer_queue_polling();
|
msg_transfer_queue_polling();
|
||||||
msg_transfer_enqueue();
|
msg_transfer_enqueue();
|
||||||
spu_shell_task();
|
//spu_shell_task(); /* pet_rfm1: no shell cmd, don't call spu_shell_task */
|
||||||
//msg_transfer_queue_recfg();
|
//msg_transfer_queue_recfg();
|
||||||
//heart_beat_write();
|
//heart_beat_write();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user