Hi,
At mmf2_video_example_vipnn_rtsp_init.c, there is a function log_service_add_table which will be called before setup RTSP streaming. My questions are
- log_service_add_table is?
- what time fUC will be called?
- how to test fUC?
static void fUC(void *arg)
{
static uint32_t user_cmd = 0;
if (!strcmp(arg, "TD")) {
if (user_cmd & USR_CMD_EXAMPLE_DEINIT) {
printf("invalid state, can not do %s deinit!\r\n", example);
} else {
example_deinit();
user_cmd = USR_CMD_EXAMPLE_DEINIT;
printf("deinit %s\r\n", example);
}
} else if (!strcmp(arg, "TSR")) {
if (user_cmd & USR_CMD_EXAMPLE_DEINIT) {
printf("reinit %s\r\n", example);
sys_reset();
} else {
printf("invalid state, can not do %s reinit!\r\n", example);
}
} else {
printf("invalid cmd");
}
printf("user command 0x%lx\r\n", user_cmd);
}
static log_item_t userctrl_items[] = {
{"UC", fUC, },
};
static void atcmd_userctrl_init(void)
{
log_service_add_table(userctrl_items, sizeof(userctrl_items) / sizeof(userctrl_items[0]));
}
Please help. Thanks.