Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

#include "demo.h"
#include <kernel/func.h>
#include <string.h>
#include <stdlib.h>
#include <drivers/keyb.h>
#include <drivers/glib.h>






/* graphic mutex... */
mutex_t mutex;


void app_mutex_init(mutex_t *m);

void my_close(void *arg)
{
        grx_close();
}
/*
void endfun(KEY_EVT *k)
{
    grx_close();
    cprintf("Ctrl-Brk pressed! Ending...\n");
    sys_end();
}

void zerofun(KEY_EVT *k)
{
  int i;
  for (i=0; i<MAX_PROC; i++) jet_delstat(i);
}
*/
int main(int argc, char **argv)
{
    int modenum;

    KEY_EVT k;

    struct sigaction action;

    srand(4);
   

    sys_atrunlevel(my_close, NULL, RUNLEVEL_BEFORE_EXIT);


    modenum = grx_getmode(800, 600, 16); //(640, 480, 16);
    grx_setmode(modenum);
    /* init the graphic mutex */
    app_mutex_init(&mutex); 

    grx_text("HARTIK 4.0 " , 0,0, rgb16(0,255,0),BLACK);
    grx_text("Thesis Demo", 0,8, rgb16(0,255,0), BLACK);



    init_framegrabber(); /* fra le altre cose attiva i task della camera */
    PXC_Start();

    group_activate(1);

    return 0;
}