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

SD¿¨µÄдÎļþ ÒÔ¼° CÖÐ#·ûºÅ

Ò»  Ê×ÏÈ×ܽáÒ»ÏÂSD¿¨µÄдÎļþ£¬Ðè×¢ÒâµÄÊÂÏîÈçÏ£º
1. FAT16 дµÄʱºò±ØÐëÖÁÉÙдһ¸öÉÈÇø¡£
2. FAT±í²»ÄÜƵ·±µÄ¶Áд£¬·ñÔò»á³ö´í¡£ÉêÇëеÄÒ»¸ö´Øʱ£¬Ö±½ÓÔÚÕâ¸ö´ØÀïÃ棨¼´ÏÂÒ»´ØºÅ£©µÄдΪ0XFFFF¡£
3. FATËƺõ±ØÐëת»¯³Éu16²ÅÄÜд¡£Ã²ËÆÊÇÕâÑù£¬¾ßÌåû×Ðϸ¿´¡£
4. »ñȡеÄË÷Òý´ØµÄʱºò£¬Ö±½Ó´Ó¾ÉµÄË÷Òý´ØµÄºóÃ濪ʼдеÄË÷Òý´ØºÅ£¬²¢ÔÚеÄË÷Òý´ØºÅÖÐд0XFFFF¡£
5. дFAT1ºóҪдFAT2¡£
6. ÍƼö¼¸¿îºÜ²»´íµÄ¹¤¾ß£ºWinHex.exe¡£°ïÁËÎÒ²»ÉÙ棬¿ÉÒÔ½«FATÀïÃæµÄÊý¾Ý·ÖÎöµÃÒ»Çå¶þ³þ¡£
¶þ  Æä´Î£¬Õâ´ÎÓöµ½ÁËÒ»¸ö·ûºÅ “##”£¬µ½ÍøÉϲéÁ˺ܳ¤Ê±¼ä£¬Ã»ÓкÜÃ÷È·µÄÒâ˼¡£
#     ¾®ºÅ    
#     Ç°¶Ë´¦Àí·ûºÅ
³öÏÖÕâ¸ö·ûºÅµÄ´úÂëÈçÏ£º
 #define P_EP(n) ((USB_EP_EVENT & (1 << (n))) ? USB_EndPoint##n : NULL)
/* USB Endpoint Events Callback Pointers */
void (* const USB_P_EP[16]) (U32 event) = {
P_EP(0),
P_EP(1),
P_EP(2),
P_EP(3),
P_EP(4),
P_EP(5),
P_EP(6),
P_EP(7),
P_EP(8),
P_EP(9),
P_EP(10),
P_EP(11),
P_EP(12),
P_EP(13),
P_EP(14),
P_EP(15),
};
/*
* USB Endpoint 1 Event Callback
* Called automatically on USB Endpoint 1 Event
* Parameter: event
*/
void USB_EndPoint1 (U32 event) {
}
/*
* USB Endpoint 2 Event Callback
* Called automatically on USB Endpoint 2 Event
* Parameter: event
*/
void USB_EndPoint2 (U32 event) {
switch (event) {
case USB_EVT_OUT:
MSC_BulkOut();
break;
case USB_EVT_IN:
MSC_BulkIn();
break;
}
}
ÆäÖеÄÕâ¾ä»° USB_EndPoint##n  £¬ ¸Õ¿ªÊ¼Ã»¿´¶®£¬ºóÀ´¿´¶®ÁË
±È·½ËµNÊÇ1µÄ»°£¬ÄÇôUSB_EndPoint##n¼´±íʾº¯ÊýUSB_EndPoint1¡£
ÕâÖÖд·¨ÕæÊÇÆæ¹Ö£¬µÈÎÒ¸ãÃ÷°×ºóÔÙÀ´Ð´¡£
Èý  ±¸ÍüһЩº¯ÊýÖ¸ÕëÏà¹ØµÄ¶«¶«
int *p; ¡¡¡¡¡¡ pΪָÏòÕûÐÍÁ¿µÄÖ¸Õë±äÁ¿
int *p[n]; ¡¡¡¡pΪָÕëÊý×飬ÓÉn¸öÖ¸ÏòÕûÐÍÁ¿µÄÖ¸ÕëÔªËØ×é³É¡£
int (*p)[n]; ¡¡pΪָÏòÕûÐͶþάÊý×éµÄÖ¸Õë±äÁ¿£¬¶þάÊý×éµÄÁÐÊýΪn
int *p() ¡¡¡¡¡¡pΪ·µ»ØÖ¸ÕëÖµµÄº¯Êý£¬¸ÃÖ¸ÕëÖ¸ÏòÕûÐÍÁ¿
int (*p)() ¡¡¡¡pΪָÏòº¯ÊýµÄÖ¸Õ룬¸Ãº¯Êý·µ»ØÕûÐÍÁ¿
int


Ïà¹ØÎĵµ£º

»ù±¾ÔËËãµ¥ÔªµÄ¸ß²ã´Î×ۺϣºC/C++ to RTL

±¾ÎÄÒÔ¼Ó·¨ÎªÀý£º[code]
//----------------------------------------------------
//adder.c
//---------------------------------------------------
void adder(int a, int b, int *sum)
{
        *sum = a + b;
}
[/code][size=3]
[/size]
HLS¹¤¾ß£¨AutoPilot£©×ÛºÏÖ®ºóµÄ½á¹ ......

ÒÀÈ»CÄÚ´æ

Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ ......

Linux Ï CÓïÑÔ´óÎļþ¶Áд(´óÓÚ4G£©

ÒÔϵÄ×ö·¨ÕûÀí×ÔÂÛ̳ÉϵÄÌû×Ó¡£ 
ÈçºÎcreate´óÎļþ
Òª´ó¾Í·Ç³£´ó£¬1T°É¡£
ÓÐÁ½ÖÖ·½·¨£º
 
Ò».dd
dd if=/dev/zero of=1T.img bs=1G seek=1024 count=0
bs=1G±íʾÿһ´Î¶Áд1GÊý¾Ý£¬count=0±íʾ¶Áд0´Î£¬seek=1024±íʾÂÔ¹ý1024¸öBlock²»Ð´£¬Ç°Ãæblock sizeÊÇ1G£¬ËùÒÔ¹²ÂÔ¹ý1T£¡
ÕâÊÇ´´½¨´óÐÍsparseÎļþ×î¼ ......

LinuxÏÂCÓïÑÔʵÏÖ×Ö·û´®×Ó´®Ìæ»»


    ÓÉÓÚLINUX
CûÓжÔ×Ö·û´®×Ó´®Ìæ»»¹¦ÄÜ,ËùÒÔÎÒ×Ô¼ºÐ´ÁËÒ»¸östr_replaceº¯Êý,ʵÏÖÁË×Ö·û´®Ìæ»».
Çë´ó¼Ò²Î¿¼.
/*
 * FUNCTION     : str_replace
 *
ABSTRACT     : replace child string in a string.
 *
PARAMETER  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ