天嵌 ARM开发社区

 找回密码
 注册
查看: 1512|回复: 0

#if (LCD_XSIZE_TFT<32)

[复制链接]
一表羊才 发表于 2010-7-1 15:55:40 | 显示全部楼层 |阅读模式
各位大侠     请问下面这个函数中的   #if (LCD_XSIZE_TFT<32)    是什么意思!!


void Lcd_MoveViewPort(int vx,int vy)
{
        U32 addr;

        SET_IF();
        #if (LCD_XSIZE_TFT<32)
                while((rLCDCON1>>18)<=1); // if x<32
        #else       
                while((rLCDCON1>>18)==0); // if x>32
        #endif
   
        addr=(U32)LCD_BUFFER+(vx*2)+vy*(SCR_XSIZE_TFT*2);
       
        rLCDSADDR1= ( (addr>>22)<<21 ) | M5D(addr>>1);
       
        rLCDSADDR2= M5D(((addr+(SCR_XSIZE_TFT*LCD_YSIZE_TFT*2))>>1));
       
        CLR_IF();
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-6-12 01:24 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表