?? usrwindml.c
字號:
/* usrWindMl.c - configuration file for WindML *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01b,16sep02,wdf Added ability to initialize input drivers that are BSP specific.01a,10dec01,jlb written*//*DESCRIPTIONThis file is included in usrConfig.c, via usrExtra.c.This file contains routines that configure and initialize the WindML multimedia package.INTERNALSEE ALSO usrExtra.c.I WindMl User's Guide*/#ifndef __INCusrWindmlc#define __INCusrWindmlc#include "vxWorks.h"#include "ugl/sysWindML.h"/* defines *//* If using the Intel 8042 (most likely an emulated device), then the * driver, needs to be loaded. Also if the device names have not been * defined, provide a default name. */#ifndef INCLUDE_WINDML_BSP_INPUT_DEVICES#ifdef INCLUDE_WINDML_PS2_POINTER#ifndef INCLUDE_WINDML_PS2_KEYBOARD /* If pointer, tehn we must have keyboard */#define INCLUDE_WINDML_PS2_KEYBOARD#endif /* INCLUDE_WINDML_PS2_KEYBOARD */#ifndef WINDML_POINTER_DEV_NAME#define WINDML_POINTER_DEV_NAME "/pointer/0"#endif /* WINDML_POINTER_DEV_NAME */#endif /* INCLUDE_WINDML_PS2_POINTER */#ifdef INCLUDE_WINDML_PS2_KEYBOARD#ifndef WINDML_KEYBOARD_DEV_NAME#define WINDML_KEYBOARD_DEV_NAME "/keyboard/0"#endif /* WINDML_KEYBOARD_DEV_NAME */#include "serial/i8042KbdMse.c"#endif /* INCLUDE_WINDML_PS2_KEYBOARD */#ifdef INCLUDE_WINDML_ASSABET_TSextern int assabetTsDevCreate (char * name);#endif /* INCLUDE_WINDML_ASSABET_TS */#endif /* INCLUDE_WINDML_BSP_INPUT_DEVICES *//******************************************************************************** usrWindMlInit - configure and initialize WindML components** This routine configures and initializes the WindML multimedia package. The* WindML package is built such that the low level device drivers are always* built into the VxWorks kernel. The device handlers and the application* library may be built into the VxWorks boot image of be downloaded. ** RETURNS: OK or ERROR.*/STATUS usrWindMlInit (void) { /* If INCLUDE_WINDML_BSP_INPUT_DEVICES is defined then the BSP has its * own drivers and call syWindMLDevCreate (in sysWindML.c) and allow it * to create the keyboard and mouse devices. Otherwise if WindML is * using the PS2 (i8042 or emulated device), initialize the device for * the keyboard and the mouse, as appropriatly. If the VxWorks * PC Console is defined, then the i8042 for the keyboard device has * been initialized. */#ifdef INCLUDE_WINDML_BSP_INPUT_DEVICES sysWindMLDevCreate();#else /*INCLUDE_WINDML_BSP_INPUT_DEVICES */#ifdef INCLUDE_WINDML_PS2_KEYBOARD#ifndef INCLUDE_PC_CONSOLE i8042KbdDevCreate (WINDML_KEYBOARD_DEV_NAME);#endif /* INCLUDE_PC_CONSOLE */#ifdef INCLUDE_WINDML_PS2_POINTER i8042MseDevCreate (WINDML_POINTER_DEV_NAME);#endif /* INCLUDE_WINDML_PS2_POINTER */#endif /* INCLUDE_WINDML_PS2_KEYBOARD */#ifdef INCLUDE_WINDML_ASSABET_TS assabetTsDevCreate (WINDML_POINTER_DEV_NAME);#endif /* INCLUDE_WINDML_ASSABET_TS */#endif /* INCLUDE_WINDML_BSP_INPUT_DEVICES */ return (OK); }#endif /* __INCusrWindmlc */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -