sync(system): update front board system configuration.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
obj-y += main.o
|
||||
|
||||
ifeq ($(CONFIG_FF_TRACE),y)
|
||||
subdir-ccflags-y += -finstrument-functions
|
||||
endif
|
||||
45
lichee/melis-v3.0/source/projects/v851s3-e907-sl100-front-board/src/main.c
Executable file
45
lichee/melis-v3.0/source/projects/v851s3-e907-sl100-front-board/src/main.c
Executable file
@@ -0,0 +1,45 @@
|
||||
#include <stdio.h>
|
||||
#include <hal_timer.h>
|
||||
#include <openamp/sunxi_helper/openamp.h>
|
||||
|
||||
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("scaler0", NULL, 0);
|
||||
rpmsg_notify("scaler1", NULL, 0);
|
||||
rpmsg_notify("scaler4", NULL, 0);
|
||||
rpmsg_notify("scaler5", NULL, 0);
|
||||
rpmsg_notify("scaler8", NULL, 0);
|
||||
rpmsg_notify("scaler9", NULL, 0);
|
||||
rpmsg_notify("scaler12", NULL, 0);
|
||||
rpmsg_notify("vinc0", NULL, 0);
|
||||
rpmsg_notify("vinc1", NULL, 0);
|
||||
rpmsg_notify("vinc4", NULL, 0);
|
||||
rpmsg_notify("vinc5", NULL, 0);
|
||||
rpmsg_notify("vinc8", NULL, 0);
|
||||
rpmsg_notify("vinc9", NULL, 0);
|
||||
rpmsg_notify("vinc12", NULL, 0);
|
||||
#endif
|
||||
#else
|
||||
hal_msleep(200);
|
||||
rpmsg_notify("rt-media", NULL, 0);
|
||||
#endif
|
||||
//msh_exec("dmesg", strlen("dmesg"));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user