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
Ïà¹ØÎĵµ£º
±¾ÎÄÒÔ¼Ó·¨ÎªÀý£º[code]
//----------------------------------------------------
//adder.c
//---------------------------------------------------
void adder(int a, int b, int *sum)
{
*sum = a + b;
}
[/code][size=3]
[/size]
HLS¹¤¾ß£¨AutoPilot£©×ÛºÏÖ®ºóµÄ½á¹ ......
#include <iostream>
#include <conio.h>
using namespace std;
typedef struct _INTTEST
{
int a;
}inttest;
int main()
{
inttest* p=new inttest[3];
p[1].a=10;
cou ......
ÒÔϵÄ×ö·¨ÕûÀí×ÔÂÛ̳ÉϵÄÌû×Ó¡£
ÈçºÎ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Îļþ×î¼ ......
extern "C"
extern "C"°üº¬Ë«Öغ¬Ò壬ÆäÒ»£º±»ËüÐÞÊεÄÄ¿±êÊÇ“extern”µÄ£»Æä¶þ£º±»ËüÐÞÊεÄÄ¿±êÊÇ“C”µÄ¡£
1£©±»extern “C”ÏÞ¶¨µÄº¯Êý»ò±äÁ¿ÊÇexternÀàÐ͵ģ»
externÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿É¼ûÐÔ£©µÄ¹Ø¼ü×Ö£¬¸Ã¹Ø¼ü×Ö¸æËß±àÒëÆ÷£¬ÆäÉùÃ÷µÄº¯ ......
ÔÚ C API ÖпÉÓõĺ¯ÊýÁÐÔÚÏÂÃ棬²¢ÇÒÔÚÏÂÒ»½Ú¸üÏêϸµØÃèÊö¡£¼û20.4 C APIº¯ÊýÃèÊö¡£
mysql_affected_rows()
·µ»Ø±»×îеÄUPDATE, DELETE»òINSERT²éѯӰÏìµÄÐÐÊý¡£
mysql_close()
¹Ø±ÕÒ»¸ö·þÎñÆ÷Á¬½Ó¡£
mysql_connect()
Á¬½ÓÒ»¸öMySQL·þÎñÆ÷¡£¸Ãº¯Êý²»ÍƼö£»Ê¹ÓÃmysql_real_connect()´úÌæ¡£
mysql_change_user( ......