freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于arm的五子棋游戲設(shè)計(參考版)

2024-11-11 22:11本頁面
  

【正文】 } /* ************************************************************************************************************* 函數(shù)名稱 : LCD_CstnOnOff 28 函數(shù)說明 : 打開和關(guān)閉 lcd 。 printk(S3C2410LCD Driver Installed.\n)。 printk(Initializing S3C2410LCD Device\t \t)。 return EBUSY。LCD_fops)。 printk(Registering S3C2410LCD Device\t \t)。 } /* ************************************************************************************************************* 函數(shù)名稱 : int LCDInit(void) 函數(shù)說明 : 注冊 LCD 設(shè)備 輸入?yún)?shù) : 無 輸出參數(shù) : 0,或 EBUSY ************************************************************************************************************* */ int __init LCD_Init(void) { int result。 } /******************************* 函數(shù)名稱 : void Set_Color(int color) 函數(shù)說明 : 設(shè)定顏色的上層函數(shù) 輸入?yún)?shù) : color 輸出參數(shù) : 無 *******************************/ void Set_BkColor(U32 color) { LCD_SetBkColor(LCD_Log2Phy(color))。 } /******************************* 函數(shù)名稱 : void Set_Color(int color) 函數(shù)說明 : 設(shè)定顏色的上層函數(shù) 輸入?yún)?shù) : color 輸出參數(shù) : 無 *******************************/ void Set_Color(U32 color) { LCD_SetColor(LCD_Log2Phy(color))。 PhyColor = Log2Phy(Color)。 return b + (g 5) + (r 11)。 g = g / 4。 r = Color 16。 g = (Color 8 ) amp。 b = Color amp。 LCD_DrawHLine(x0x,y0i, x0+x)。 } x。 i++) { if ((i*i+x*x) sqmax) { if (ximax) { LCD_DrawHLine (x0i+1,y0+x, x0+i1)。 for (i=1。 U16 x = r。 U32 imax = ((int)((int)r*707))/1000+1。 } _DrawPoint(x0,y0,i,y)。 i++) { if ((i*i+y*y) sqmax) { _DrawPoint(x0,y0,i,y)。 for (i=1。 U16 y = r。 U32 imax = ((int)((int)r*707))/1000 + 1。 LCD_DrawPixel(x0yoff,y0xoff)。 LCD_DrawPixel(x0xoff,y0yoff)。 LCD_DrawPixel(x0+yoff,y0xoff)。 24 LCD_DrawPixel(x0xoff,y0+yoff)。 y0++) { LCD_DrawHLine(x0,y0, x1)。 for (。 y0++) LCD_DrawHLine(x0,y0, x1)。 } } /******************************* 函數(shù)名稱 : void LCD_FillRect(U16 x0, U16 y0, U16 x1, U16 y1) 函數(shù)說明 : 填充矩形函數(shù) 輸入?yún)?shù) : x0,y0,x1,y1 輸出參數(shù) : 無 *******************************/ void LCD_FillRect(U16 x0, U16 y0, U16 x1, U16 y1) { for (。 } } /******************************* 函數(shù)名稱 : void LCD_DrawVLine (U16 x, U16 y0, U16 y1) 函數(shù)說明 : 畫豎直線函數(shù) 嵌入式系統(tǒng)原理與應(yīng)用課程設(shè)計 23 輸入?yún)?shù) : x,y,x1 輸出參數(shù) : 無 *******************************/ void LCD_DrawVLine(U16 x0, U16 y0, U16 y1) { while (y0 = y1) { SETPIXEL(x0, y0, LCD_COLOR)。 } /******************************* 函數(shù)名稱 : void LCD_DrawHLine (U16 x0, U16 y, U16 x1) 函數(shù)說明 : 畫水平線函數(shù) 輸入?yún)?shù) : x,y,x1 輸出參數(shù) : 無 *******************************/ void LCD_DrawHLine (U16 x0, U16 y0, U16 x1) { while (x0 = x1) { SETPIXEL(x0, y0, LCD_COLOR)。 return col。 READ_MEM(Off,Data)。 U16 Data。 } /******************************* 函數(shù)名稱 : void LCD_DrawPixel (U16 x, U16 y) 函數(shù)說明 : 畫點函數(shù) 輸入 參數(shù) : x,y 輸出參數(shù) : 無 *******************************/ void LCD_DrawPixel (U16 x, U16 y) { 22 SETPIXEL(x, y, LCD_COLOR)。 } /******************************* 函數(shù)名稱 : static void SetPixel(U16 x,U16 y,int c) 函數(shù)說明 : 針對硬件的畫點 函數(shù) 輸入?yún)?shù) : x,y,c 輸出參數(shù) : 無 *******************************/ static void SetPixel(U16 x, U16 y, U32 c) { tOff Off = XY2OFF(x,y)。 } /******************************* 函數(shù)名稱 : U16 LCD_READ_MEM(U32 off) 函數(shù)說明 : 針對硬件的讀點函數(shù) 輸入?yún)?shù) : x,y,c 輸出參數(shù) : 無 *******************************/ U16 LCD_READ_MEM(U32 off) { return (*((U16*)LCDFRAMEBUFFER + (off)))。i+=2) { *base++ = 0x0ee0。 for(i=0。 Lcd_EnvidOnOff(1)。 // Disable Lcd_PowerEnable(0,1)。=(~7)。 LCDINTMSK|=(3)。 LCDADDR2=M5D( ((U8)0x33800000+(640*480*2))1 )。 LCDCON5=(111)|(19)|(18)|(1)。 LCDCON3=(HBPD_64048019)|(HOZVAL_TFT_6404808)|(HFPD_640480)。 //Initialize VD[23:8] LCDCON1=(CLKVAL_TFT_6404808)|(MVAL_USED7)|(35)|(121)|0。 //Initialize VD[7:0],LCDVF[2:0],VM,VFRAME,VLINE,VCLK,LEND GPDUP=0xffffffff。 GPCUP=0xffffffff。 save_rGPDDAT=GPDDAT。 save_rGPCUP=GPCUP。 save_rGPCCON=GPCCON。 /******************************* 函數(shù)名稱 : U16 LCD_Init(U8 Lcd_Bpp) 函數(shù)說明 : LCD 硬件初始化函數(shù) 輸入?yún)?shù) : 輸出參數(shù) : 無 *******************************/ U16 Setup_LCDInit(void) { long i。 } return 1。 // clear screen return 1。 Set_Color(0xFF0000)。 Set_Color(0xFF)。// draw fillcircle return 1。 Set_Color(0x000000)。 case 6: printk(draw fillcircle\n)。 LCD_FillCircle(p_arga, p_argb, p_argc)。 p_arg =(struct para *)arg。 // draw rect return 1。 Set_Color(0xFF0000)。 case 4: printk(draw rect\n)。 嵌入式系統(tǒng)原理與應(yīng)用課程設(shè)計 19 LCD_DrawCircle(p_arga,p_argb,p_argc)。 LCD_FillRect(0,0,639,479)。 p_arg =(struct para *)arg。 // draw v_line return 1。 // draw v_line LCD_DrawVLine(p_arga+390,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+330,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+270,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+210,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+150,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+90,p_argb,p_argc)。 // draw v_line LCD_DrawVLine(p_arga+30,p_argb,p_argc)。 Set_Color(0xFF0000)。 case 2: printk(draw v_line\n)。// draw h_line LCD_DrawHLine(p_arga,p_argb+
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1