或以为孤权重,妄相忖度
发布时间:2012-12-29 17:02:19
一、核心数据结构串口驱动有3个核心数据结构,它们都定义在<#include linux/serial_core.h>1、uart_driveruart_driver包含了串口设备名、串口驱动名、主次设备号、串口控制台(可选)等信息,还封装了tty_driver(底层串口驱动无需关心tty_driver)。 struct uart_driver { struct module *owner; &n......【阅读全文】
meifeng32009-07-21 22:18
以下是QTOPIA的初始化脚本 #!/bin/sh export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export QTDIR=/opt/qtopia export QPEDIR=/opt/qtopia export PATH=$QTDIR/bin:$PATH export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH export QWS_DISPLAY="linuxFB:mmWidth35:mmHeight45:0" TS_INFO_FILE=/sys/devices/virtual/input/input0/uevent if [ -e $TS_INFO_FILE -a "/bin/grep -q TouchScreen < $TS_INFO_FILE" ]; then export QWS_MOUSE_PROTO="TPanel:/dev/input/event0 USB:/dev/input/mice" if [ -e /etc/pointercal -a ! -s /etc/pointercal ] ; then rm /etc/pointercal fi else export QWS_MOUSE_PROTO="USB:/dev/input/mice" >/etc/pointercal fi unset TS_INFO_FILE export QWS_KEYBOARD=TTY:/dev/tty1 #export KDEDIR=/opt/kde export HOME=/root /opt/qtopia/bin/qpe & #exec $QPEDIR/bin/qpe & 1>/dev/null 2>/dev/null