示例#1
0
文件: app2.cpp 项目: sarachour/siact
int main(){
	double tims[3];
	PIN_BIND_MODEL(1);
	PIN_START_TIMER(0);
	PIN_START_TIMER(1);
	app1();
	PIN_STOP_TIMER(1,&tims[1]);
	PIN_START_TIMER(2);
	app2();
	PIN_STOP_TIMER(2,&tims[2]);
	PIN_STOP_TIMER(0,&tims[0]);
	printf("Timer 0:%f\n", tims[0]);
	printf("Timer 1:%f\n", tims[1]);
	printf("Timer 2:%f\n", tims[2]);
	PIN_START_TIMER(0);
	PIN_START_TIMER(1);
	app1();
	PIN_STOP_TIMER(1,&tims[1]);
	PIN_START_TIMER(2);
	app2();
	PIN_STOP_TIMER(2,&tims[2]);
	PIN_STOP_TIMER(0,&tims[0]);
	printf("Timer 0:%f\n", tims[0]);
	printf("Timer 1:%f\n", tims[1]);
	printf("Timer 2:%f\n", tims[2]);
}
示例#2
0
文件: app1.cpp 项目: sarachour/siact
int main(){
	PIN_BIND_MODEL(1);
	printf("# START TASK\n");
	pin_start_inject_errors();
	app1();
	pin_start_inject_errors();
	printf("# END TASK\n");
}
示例#3
0
文件: demo.c 项目: SourcexRobin/Lenix
void        User_initial(void)
{
    //Tty_echo_hook_set(TTY_MAJOR,Con_print_char);
    graph_t             *   graph = Graph_get(0);
    Graph_initial();
    
    if( Vga_initial(graph) != RESULT_SUCCEED)
        return ;

    graph->g_mode_set(graph,VESA_MODE_640_480_64K);

    Window_initial();

    app1(NULL);
    //Proc_create("app1",60,3,app1,0,
    //    MAKE_STACK(app_stack1,USER_APP_STACK),
    //    STACK_SIZE(app_stack1,USER_APP_STACK));

}