📄 usrwindml.c
字号:
/* usrWindML.c - WindML initialization *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01b,17sep02,wdf Added call to sysWindMLDevCreate() when INCLUDE_WINDML_BSP_INPUT_DEVICES is defined.01a,20apr02,jlb written.*//*DESCRIPTIONThis file is used to configure and initialize the WindML support.NOMANUAL*//* include */#include "ugl/sysWindML.h"/* defines */#ifndef INCLUDE_WINDML_BSP_INPUT_DEVICES#ifdef INCLUDE_WINDML_PS2_POINTER#ifndef INCLUDE_WINDML_PS2_KEYBOARD /* If pointer, then we must have keyboard */#define INCLUDE_WINDML_PS2_KEYBOARD#endif /* INCLUDE_WINDML_PS2_KEYBOARD */#endif /* INCLUDE_WINDML_PS2_POINTER */#ifdef INCLUDE_WINDML_PS2_KEYBOARD#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 - system-dependent WindML initialization** This routine initializes WindML.** RETURNS: OK, or ERROR if there is a problem in initializing WindML.** NOMANUAL*/STATUS usrWindMlInit() { /* 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); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -