Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1363 → Rev 1362

/demos/trunk/input/initfile.c
50,10 → 50,7
#include <drivers/shark_mouse26.h>
#include <drivers/shark_keyb26.h>
#include <drivers/shark_spk26.h>
#include <drivers/shark_joy26.h>
 
#include <drivers/shark_fb26.h>
 
/*+ sysyem tick in us +*/
#define TICK 0
 
60,23 → 57,13
/*+ RR tick in us +*/
#define RRTICK 10000
 
/*+ Interrup Server */
#define INTDRIVE_Q 1000
#define INTDRIVE_T 10000
#define INTDRIVE_FLAG 0
 
#define FRAME_BUFFER_DEVICE 0
 
void my_close(void *arg)
{
mouse_grxcursor(DISABLE, 0);
 
FB26_close(FRAME_BUFFER_DEVICE);
 
//EVBUG26_close();
KEYB26_close();
MOUSE26_close();
KEYB26_close();
SPEAK26_close();
JOY26_close();
//JOY26_close();
INPUT26_close();
 
kern_printf("S.Ha.R.K. closed.\n\n");
86,7 → 73,7
{
struct multiboot_info *mb = (struct multiboot_info *)arg;
 
INTDRIVE_register_level(INTDRIVE_Q, INTDRIVE_T, INTDRIVE_FLAG);
INTDRIVE_register_level(1000, 10000, 0);
EDF_register_level(EDF_ENABLE_ALL);
CBS_register_level(CBS_ENABLE_ALL, 1);
RR_register_level(RRTICK, RR_MAIN_YES, mb);
108,18 → 95,13
/* keyb_def_map(kparms, KEYMAP_IT);*/
keyb_def_ctrlC(kparms, NULL);
 
mouse_def_threshold(mparms, 5);
mouse_def_xmin(mparms, 0);
mouse_def_ymin(mparms, 0);
mouse_def_xmax(mparms, 639);
mouse_def_ymax(mparms, 479);
 
LINUXC26_register_module();
INPUT26_init();
KEYB26_init(&kparms);
MOUSE26_init(&mparms);
KEYB26_init(&kparms);
SPEAK26_init();
JOY26_init();
//JOY26_init();
//EVBUG26_init();
 
//sys_atrunlevel(my_close, NULL, RUNLEVEL_BEFORE_EXIT);