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

LinuxÏ´®¿Ú±à³ÌÖ®Ò»£º»ù´¡ÉèÖú¯Êý

1£¬´®¿Ú²Ù×÷ÐèÒªµÄÍ·Îļþ
¡¡¡¡#include¡¡¡¡ <stdio.h>¡¡¡¡¡¡/* ±ê×¼ÊäÈëÊä³ö¶¨Òå */
¡¡¡¡#include¡¡¡¡ <stdlib.h>¡¡¡¡ /* ±ê×¼º¯Êý¿â¶¨Òå */
¡¡¡¡#include¡¡¡¡ <unistd.h>¡¡¡¡ /* Unix ±ê×¼º¯Êý¶¨Òå */
¡¡¡¡#include¡¡¡¡ <sys/types.h>¡¡
¡¡¡¡#include¡¡¡¡ <sys/stat.h>¡¡
¡¡¡¡#include¡¡¡¡ <fcntl.h>¡¡¡¡¡¡/* Îļþ¿ØÖƶ¨Òå */
¡¡¡¡#include¡¡¡¡ <termios.h>¡¡¡¡/*ÖÕ¶Ë¿ØÖƶ¨Òå */
¡¡¡¡#include¡¡¡¡ <errno.h>¡¡¡¡¡¡/* ´íÎóºÅ¶¨Òå */
2£¬´ò¿ª´®¿Ú
¡¡¡¡ÔÚ Linux Ï´®¿ÚÎļþÊÇλÓÚ/devϵġ£´®¿ÚһΪ/dev/ttyS0£¬´®¿Ú¶þΪ/dev/ttyS1¡£´ò¿ª´®¿ÚÊÇͨ¹ýʹÓñê×¼µÄÎļþ´ò¿ªº¯Êý²Ù×÷£º ¡¡¡¡      int fd;¡¡¡¡/* ÒÔ¶Áд·½Ê½´ò¿ª´®¿Ú */
¡¡¡¡fd = open( "/dev/ttyS0",O_RDWR);
¡¡¡¡if (-1 == fd)
¡¡¡¡{ ¡¡
¡¡¡¡¡¡¡¡perror(" Ìáʾ´íÎó£¡");       /* ²»ÄÜ´ò¿ª´®¿ÚÒ» */
¡¡¡¡}
3£¬´®¿Ú½á¹¹Ìå¼°²ÎÊý
     ´®¿ÚµÄÉèÖÃÖ÷ÒªÊÇÉèÖà struct termios ½á¹¹ÌåµÄ¸÷³ÉÔ±Öµ¡£ 
   ¡¡struct termio
¡¡¡¡{
¡¡¡¡¡¡¡¡unsigned short¡¡c_iflag;¡¡¡¡¡¡¡¡/* ÊäÈëģʽ±êÖ¾ */¡¡
¡¡¡¡¡¡¡¡unsigned short¡¡c_oflag;¡¡¡¡¡¡¡¡/* Êä³öģʽ±êÖ¾ */¡¡
¡¡¡¡¡¡¡¡unsigned short¡¡c_cflag;¡¡¡¡¡¡¡¡/* ¿ØÖÆÄ£Ê½±êÖ¾ */¡¡
¡¡¡¡¡¡¡¡unsigned short¡¡c_lflag;¡¡¡¡¡¡¡¡/* local mode flags */¡¡
¡¡¡¡¡¡¡¡unsigned char¡¡ c_line;¡¡¡¡¡¡¡¡ /* line discipline */¡¡
¡¡¡¡¡¡¡¡unsigned char¡¡ c_cc[NCC];¡¡¡¡¡¡/* control characters */
¡¡¡¡};
      ÔÚÕâ¸ö½á¹¹ÖÐ×îÎªÖØÒªµÄÊÇc_cflag£¬Í¨¹ý¶ÔËüµÄ¸³Öµ£¬Óû§¿ÉÒÔÉèÖò¨ÌØÂÊ¡¢×Ö·û´óС¡¢ Êý¾Ýλ¡¢Í£Ö¹Î»¡¢ÆæÅ¼Ð£ÑéλºÍÓ²¼þÁ÷¿ØµÈ¡£ÁíÍâc_iflag ºÍc_cc Ò²ÊDZȽϳ£ÓõıêÖ¾¡£ÔÚ´ËÖ÷Òª¶ÔÕâ3 ¸ö³ÉÔ±½øÐÐÏêϸ˵Ã÷¡£
     £¨1£©c_cflagÖ§³ÖµÄ³£Á¿Ãû³Æ
         CBAUD ²¨ÌØÂʵÄλÑÚÂë
           B0 0²¨ÌØÂÊ£¨·ÅÆúDTR£©
           B1800 1800²¨ÌØÂÊ
           B2400 2400²¨ÌØÂÊ
   &nbs


Ïà¹ØÎĵµ£º

linux×ÀÃæ±ÚÖ½×Ô¶¯»»£¨ÀàËÆÓÚwindows7±ÚÖ½×Ô¶¯»»£©

¸´ÖÆÒÔÏÂÄÚÈÝ£¬±£´æÎª  py ºó׺µÄÎļþ£¬¿½±´µ½wallpaperÎļþ¼Ð£¬½øÈëÎļþ¼Ð£¬ÒÔpythonÔËÐУ¬Ñ¡È¡xmlΪ±ÚÖ½
#!/usr/bin/env python2.6
# -*- coding: utf-8 -*-
# Ubuntu 9.10 dynamic wallpaper maker_Can be used in all the distributions of linux
#
# Auto generate a configuration file which you can use ......

Linux É豸Çý¶¯³ÌÐò½ø½×£¨0£©

ºÜ¾ÃûÓÐд¼¼Êõ²©ÎÄÁË£¬´ÓÕâÀ↑ʼÎÒµÄÑо¿ÉúÉúÑÄ£¬×ªÑÛ¾ÍÒªÔÚÖ°³¡ÉÏÑø¼Òºý¿Ú£¬Éú»îÕæµÄ²»ÈÝÒ×£¬ÐҺû¹Óм¼ÊõÏà°éΪÎé¡£
ÓÉÓÚ¹¤×÷µÄ¹ØÏµ£¬ÖÕÓÚ½Ó´¥µ½linuxÍøÂçºÍkernelµÄ±à³Ì£¬×ÜÌåÀ´Ëµ×ÜÊÇÒ»¸öºÃµÄÆõ»ú¡£ÈÃÎÒÄܹ»ÉîÈë²Ù×÷ϵͳÄںˡ£×ö¹ýÒ»¶Îʱ¼äµÄÓû§³ÌÐòµÄ¿ª·¢£¬×ÜÊÇÔÚWindowsƽ̨ÉÏ£¬ÖÕÓÚÓлú»áÔÚlinuxÉÏ×öµã¶«Î÷£¬»¹Ê ......

ÓÃSVNͬVMWAREÉϵÄLinux¹²Ïí´úÂ뿪·¢

LINUX£¨ÔËÐÐÔÚVWMARE£©ÉÏ×Ô´øµÄSVN£¬WindowsÉÏ×°µÄÊÇTortoiseSVN-1.6.7.18415-win32-svn-1.6.9.msi¡£
ÔÚLinuxÉÏÅäÖÃSNV¡£
1¡¢´´½¨repository¡£
> svnadmin create /myhome/svnhome/project
ÆäÖÐsvnhomeÊÇ·ÅsvnµÄĿ¼£¬ÏÂÒ»¼¶ÊDz»Í¬µÄrepositoryÃû¡£
2¡¢×¼±¸ºÃÔ´´úÂë¡£°´ÏÂÁÐĿ¼Åźá£
project/branches
project/ ......

linuxÃüÁî


< type="text/javascript"><!--
google_ad_client = "pub-3936520987820628";
//250x250, ´´½¨ÓÚ 07-12-28
google_ad_slot = "5080959190";
google_ad_width = 250;
google_ad_height = 250;
//-->
< src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javasc ......

linuxÄÚºËÒÆÖ²s3c2410£¬ÒÆÖ²Õýʽ¿ªÊ¼2

ÄÚºËÆô¶¯µÄÏÖÔÚÒѾ­ÊÇ¿ªÊ¼Ö´Ðк¯Êýstart_kernelº¯ÊýÁË¡£start_kernelº¯ÊýÔÚinit/main.cÖж¨Òå¡£start_kernelº¯ÊýÖ»ÊÇÍê³É
ÏàÓ¦µÄ½á¹¹µÄ³õʼ»¯ÈÎÎñ¡£
    printk(KERN_NOTICE);
    printk(linux_banner);
    setup_arch(&command_line);
ÔÚubootµÄÒ»Ö±¹ý³ÌÖУ¬uboo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ