FlashÓëÊýѧ£ºÐÄÐÎÏß
µ±³õ¿´µ½ÕâЩÏßµÄʱºò ÊÇÔÚÒ»¸öÊýѧµÄÍøÉÏ£¬½ñÌìÒ²¶¯ÊÖŪÁËÒ»¸öÐÄÐÎÏß¡£ÄÚÈÝÆäʵºÜ¼òµ¥£¬Ã»ÓÐʲô»¨ÇεĶ«Î÷£¬µ«ÊÇÀûÓü«×ø±ê·½³Ì¿ÉÒÔ½áºÏflash µ±ÖУ¬Í¬ÑùÒ²»áʹÓü«×ø±êµÄ·½³Ì»æÖÆõ¹åÏß¡£ÓÉÓÚÄÜÁ¦ÓÐÏÞ£¬»¹ÊÇÒ»²½²½À´°É¡£
½ñÌìѧÁËÕâ¸ö¶«Î÷¡£ÎÒÃǰѹ«Ê½Õ³ÌùÉÏ£¬¶¼¿ÉÒÔÍøÉÏËÑË÷µ½
//ËÄÖÖ·½ÏòÐÄÐÎÏß
r=a*(1+cos(angle))
r=a*(1-cos(angle))
r=a*(1+sin(angle))
r=a*(1-sin(angle))
ÕâËÄÖֵļ«×ø±ê·½³Ì£¬ÓÐÁËÕâ¸ö·½³ÌÖ®ºó£¬ÎÒÃÇ¿ÉÒÔ½èÖúÕâÖÖ·½³ÌÀ´ÊµÏÖ»æÖÆÒ»¸öÐÄÐΡ£ÎÒÀÁµÃÒ»µãûÓÐÌî³äÑÕÉ«£¬ÓÐÐËȤ¿ÉÒÔ²¹³ä¡£
Õâ´ÎÎÒÃÇʹÓõÄPointÀ൱ÖÐÒ»¸ö¼«×ø±êת»»µÄ·½·¨À´Ãèµã¡£
var point:Point=Point.polar(r,angle);//¼«×ø±êת»»µÑ¿¨¶û×ø±ê
Õâ¸ö·½·¨¿ÉÒÔ½«¼«×ø±êת»»ÎÒÃdz£ÓõÄ×ø±êϵ¡£ÕâÑùÎÒÃÇ¿ÉÒÔÀûÓûæͼapi Ãè»æÿһ¸öµã¡£
ÎÒÃÇÀûÓÃÕâ¸ö·½·¨£¬½«Ëû×öÒ»¸ö¼òµ¥Ãèµã¶¯»¡£ÈçÏ´úÂë
ÆäÖÐÿһ¸ö¹«Ê½ÀïÃæÐÄÐεķ½ÏòÒ²²»»áÏàͬµÄ¡£
²»·Á×Ô¼º¿ÉÒÔ²âÊÔһϡ£ºÃ£¬ÀÛÁË ÂíÉÏ˯¾õ¡£µÚ¶þÌìÔÙ²¹³ä¡£
package
{
//ËÄÖÖ·½ÏòÐÄÐÎÏß
//r=a*(1+cos(angle))
//r=a*(1-cos(angle))
//r=a*(1+sin(angle))
//r=a*(1-sin(angle))
import flash.display.Sprite;
import flash.events.*;
import flash.geom.Point;
import flash.display.Graphics;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class Main extends Sprite
{
private var pen:Sprite=new Sprite();
private var bmp:BitmapData;
private var n:int=0;//ÊýÁ¿
private var maxStep:int=100;
public function Main()
{
addChild(pen);
addEventListener(Event.ENTER_FRAME,Run);
}
//»æÖÆÐÄÐÎÏß
private function Run(event:Event):void
{
(n<=maxStep) ? drawHeart(n,100,new Point(250,200)) : stopDraw();
n++;
}
//Í£Ö¹»æÖÆ
private function stopDraw():void
{
removeEventListener(Event.ENTER_FRAME,Run);
trace("Í£Ö¹");
}
//»æÖÆÐÄÐÎ
private function drawHeart(num:int,radius:Number,p:Point):void
{
var angle:Number =2*Math.PI /maxStep * num;
var r:Number = radius*(1+Math.sin(angle));//¹«Ê½
var point:Point=Point.polar(r,angle);//¼«×ø±êת»»µÑ¿¨¶û×ø±ê
Ïà¹ØÎĵµ£º
ÔÚÕâÀïÖ÷ÒªÃèÊö
v3
µÄ
mtd
£¬ÔÚ
linux
µÄ
MTD
×Óϵͳµ±ÖУº
Linux MTD
É豸µÄ
NOR
¡¡
Flash
оƬÇý¶¯×ñÑ
CFI
½Ó¿Ú±ê×¼£¬ÆäÇý¶¯³ÌÐòλÓÚ
drivers/mtd/chips
×ÓĿ¼Ï¡£
NAND
ÐÍ
Flash
µÄÇý¶¯³ÌÐòÔòλÓÚ
/drivers/mtd/nand
×ÓĿ¼ÏÂMap
ÖеÄ
bankwidth
ÊÇ×ÜÏßλ¿í£¬
device_typ ......
1 FlashÀàÐÍÓë¼¼ÊõÌصã
FlashÖ÷Òª·ÖΪNORºÍNANDÁ½Àà¡£ÏÂÃæ¶Ô¶þÕß×÷½ÏΪÏêϸµÄ±È½Ï¡£
1.1 ÐÔÄܱȽÏ
Flash ÉÁ´æÊÇ·ÇÒ×ʧ´æ´¢Æ÷£¬¿ÉÒÔ¶Ô´æ´¢Æ÷µ¥Ôª¿é½øÐвÁдºÍÔÙ±à³Ì¡£ÈκÎFlashÆ÷¼þ½øÐÐдÈë²Ù×÷Ç°±ØÐëÏÈÖ´ÐвÁ³ý¡£NANDÆ÷¼þÖ´ÐвÁ³ý²Ù×÷Ê®·Ö¼òµ¥£»¶ø NORÔòÒªÇóÔÚ½øÐвÁ³ýÇ°£¬ÏÈÒª½«Ä¿±ê¿éÄÚËùÓеÄλ¶¼Ð´Îª0 ......
NAND Flash µÄÊý¾ÝÊÇÒÔbit µÄ·½Ê½±£´æÔÚmemory cell£¬Ò»°ãÀ´Ëµ£¬Ò»¸öcell ÖÐÖ»ÄÜ´æ´¢Ò»¸öbit¡£ÕâЩcell ÒÔ8 ¸ö»òÕß16 ¸öΪµ¥Î»£¬Á¬³Ébit line£¬ÐγÉËùνµÄbyte(x8)/word(x16)£¬Õâ¾ÍÊÇNAND Device µÄλ¿í¡£ÕâЩLine »áÔÙ×é³ÉPage.
(Nand Flash ÓжàÖֽṹ£¬ÎÒʹÓõÄNand Flash ÊÇK9F1208,ÏÂÃæÄÚÈÝÕë¶ÔÈýÐǵÄK9F1208 ......
À§ÈŶàʱµÄflash cs3µ¼ÈëÎÊÌâÖÕÓÚÔÚ¸ßÈËÖ¸µãϽâ¾öÁË¡£ºÃ¸ßÐË°¡£¡
ÎÊÌ⣺´ò¿ªflash cs3 µã»÷“µ¼Èë-¡·µ¼Èëµ½¿â”Èç¹û³öÏÖ
ÄÚ´æ²»ÄÜ“read“µÄÎÊÌâ¡£¿ÉÒÔ³¢ÊÔÒ»ÏÂÏÂÃæµÄ·½·¨¡£
½â¾ö·½·¨£º
1.ÍøÉÏÓÐÖÖ˵·¨ÊÇÄãÏÂÔصÄflash cs3Ì«¹ýÍêÃÀ£¨ÍêÕû°æµÄ£©£¬¿ÉÄÜ»á³öÏÖÕâÖÖÎÊÌ⣬ËùÒÔ½¨ÒéÄã¿ÉÒÔ»»Ò»¸ö¾«¼ò° ......
ÉùÒô³åÍ»£º
µ÷ÊԺüÆËã»úÒÔºó·¢ÏÖ×Ô¼ºµÄ²¥·ÅÆ÷²¥·ÅÒôÀÖµÄʱºò´ò¿ªÓÅ¿áûÓÐÉùÒô£¬¶ø´ò¿ªÓÅ¿áµÄʱºò×Ô¼ºµÄ²¥·ÅÆ÷¾¹È»Ò²Ã»ÓÐÁËÉùÒô£¬´ÓÍøÉϲ鵽ÊÇÒòΪÉùÒô³åÍ»ÇÀÕ¼Éù¿¨µÄÎÊÌâ¡£
´ÓÊ×Ñ¡ÏîÖÐÑ¡ÔñÒôЧ£¬°ÑËùÓеÄÊäÈëģʽ¶¼¸ÄΪALSA¾Í¿ÉÒÔ°ÑÎÊÌâ½â¾öÁË¡£²»´í°É£¡
u ......