Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxµÄ´¥ÃþÆÁÖ®Èý£º½âÎöandroidƽ̨ÉϵÄtslib¹ý³Ì

£¨1£©ÔÚtslibĿ¼ÏÂÓÐÉèÖû·¾³±äÁ¿µÄÎı¾Îļþ£ºsettsenv.sh£¬ÄÚÈÝ£º
export T_ROOT=/system
export LD_LIBRARY_PATH=$T_ROOT/lib
export TSLIB_CONSOLEDEVICE=
export TSLIB_FBDEVICE=/dev/graphics/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/tslib/ts.conf
export TSLIB_CALIBFILE=/data/data/pointercal
É趨µÄTSLIBµÄTSÉ豸£¬FBÉ豸£¬ÅäÖÃÎļþ£¬¶¯Ì¬¿âÎļþµÄ·¾¶¡£µ±È»£¬¾ßÌåµÄÒªÓõĿÉÒÔÔÚ³ÌÐò´úÂëÖÐÖØÐÂÉ趨¡£
£¨2£©tslibĿ¼ÏµÄetcĿ¼ts.confÊÇÅäÖÃÎļþ£¬ÄÚÈÝ£º
# Uncomment if you wish to use the linux input layer event interface
module_raw input1
# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie
# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi
# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00
# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600
# Uncomment if you're using a Hitachi Webpad
# module_raw mk712
# Uncomment if you're using an IBM Arctic II
# module_raw arctic2
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
¿É¼û£¬ÉÏÃæÓкܶàÄ£¿é¿ÉÒÔµ÷Óã¬×îÖÕÊÇÑ¡ÔñÁËinput1£¬Ò²¼´ÊÇlinuxµÄinput»ñÈ¡·½Ê½¡£ÕâЩģ¿éµÄÔ´´úÂëÔÚpluginsĿ¼Ï¶¼Óж¨Òå¡£
£¨3£©·ÖÎöÁ÷³Ì£¬½Ó´¥ÃþÆÁ·ÖÎöÖ®Ò»£¬ÔÚts_mainÖУº
void get_sample (struct tsdev *ts, calibration *cal,   int index, int x, int y, char *name) 
{
       put_cross(x, y, 2 | XORMODE);   //»­Ê®×Ö×ù±ê
       getxy (ts, &cal->x [index], &cal->y [index]); //È¡µÃx,yµÄLCD×ø±êÖµ
       put_cross(x, y, 2 | XORMODE);
       last_x = cal->xfb [index] = x; 
       last_y = cal->yfb [index] = y;        //¸³ÖµcalµÄ´¥ÃþÆÁ×ø±ê
}
£¨4£©½âÎögetxy
struct ts_sample {


Ïà¹ØÎĵµ£º

LINUXÖжϻúÖÆÓëÐźÅ


ÔÚѧϰAPUEʱѧϰÐźűà³Ì£¬ºÜ¶àµØ·½²»ÊÇÀí½â£¬±ã²éÔÄÁËÍøÂçÉϵÄÏà¹Ø×ÊÁÏ£¬×î³£¼ûµÄÒ»¾ä»°¾ÍÊÇ“ÐźÅÊÇÖжϻúÖÆµÄÒ»ÖÖÄ£Ä┣¬¼ÈÈ»Ìáµ½ÁËÖжϣ¬ÄǾÍÊ×ÏÈÁ˽âÁËÒ»ÏÂÖжϵľßÌå·ÖÀàÒÔ¼°ÊµÏÖ£¬×îºóÔÙÕÒ³öÖжϺÍÐźŵÄÇø±ð¡£
LINUXÖжϻúÖÆÓëÐźÅ
ÖжϺÍÒì³£
 

ÖÐ ¶Ï£¨Ò²³ÆÓ²¼þÖжϣ©
¶¨Òå
£ºÖ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Ò»

ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖÆµÄ»ù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖÆµÄ´óÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵöϵͳ
µ÷Óá£
       
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆÎªÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......

linux statº¯Êý½²½â

statº¯Êý½²½â£¨×ª£©
±íÍ·Îļþ:    #include <sys/stat.h>
            #include <unistd.h>
¶¨Ò庯Êý:    int stat(const char *file_name, struct stat *buf);
º¯Êý˵Ã÷:    ͨ¹ýÎļþÃûfilename»ñÈ¡ÎļþÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ