#include #include #include extern int csi_init(int argc, const char **argv); extern int msh_exec(char *cmd, int length); int app_entry(void *param) { #ifdef CONFIG_DRIVERS_VIN int ret; ret = csi_init(0, NULL); if (ret) { rpmsg_notify("rt-media", NULL, 0); printf("csi init fail!\n"); } #if 1 rpmsg_notify("twi0", NULL, 0); rpmsg_notify("twi1", NULL, 0); rpmsg_notify("tdm0", NULL, 0); rpmsg_notify("isp0", NULL, 0); rpmsg_notify("isp1", NULL, 0); rpmsg_notify("isp2", NULL, 0); rpmsg_notify("scaler0", NULL, 0); rpmsg_notify("scaler1", NULL, 0); rpmsg_notify("scaler2", NULL, 0); rpmsg_notify("scaler4", NULL, 0); rpmsg_notify("scaler5", NULL, 0); rpmsg_notify("scaler6", NULL, 0); rpmsg_notify("scaler8", NULL, 0); rpmsg_notify("scaler9", NULL, 0); rpmsg_notify("scaler10", NULL, 0); rpmsg_notify("scaler12", NULL, 0); rpmsg_notify("scaler13", NULL, 0); rpmsg_notify("scaler14", NULL, 0); rpmsg_notify("vinc0", NULL, 0); rpmsg_notify("vinc1", NULL, 0); rpmsg_notify("vinc2", NULL, 0); rpmsg_notify("vinc4", NULL, 0); rpmsg_notify("vinc5", NULL, 0); rpmsg_notify("vinc6", NULL, 0); rpmsg_notify("vinc8", NULL, 0); rpmsg_notify("vinc9", NULL, 0); rpmsg_notify("vinc10", NULL, 0); rpmsg_notify("vinc12", NULL, 0); rpmsg_notify("vinc13", NULL, 0); rpmsg_notify("vinc14", NULL, 0); #endif #else hal_msleep(200); rpmsg_notify("rt-media", NULL, 0); #endif //msh_exec("dmesg", strlen("dmesg")); return 0; }