case MODE_STN_1BIT:
// LCDBASEU,LCDBASEL register has to be changed before 12 words before the end of VLINE.
// In mono mode, x=320 is 10 words, So, We can't change LCDBASEU,LCDBASEL
// during LINECNT=1~0 at mono mode.
// The processor mode should be superviser mode.
SET_IF();
#if (LCD_XSIZE_STN<512)
while((rLCDCON1>>18)<=1); // if x<512
#else
while((rLCDCON1>>18)==0); // if x>512 ((12+4)*32)
#endif
addr=(U32)frameBuffer1Bit+(vx/8)+vy*(SCR_XSIZE_STN/8);
rLCDSADDR1= ( (addr>>22)<<21 ) | M5D(addr>>1);
rLCDSADDR2= M5D( ((addr+(SCR_XSIZE_STN*LCD_YSIZE_STN/8))>>1) );
CLR_IF();
break;
其中SET_IF();和CLR_IF();怎么找不到定义,是不是宏?还是ADS的关键词?
请大侠指教!