亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lcd_isr.c

?? UC_GUI開發(fā)源代碼,里面含有范例,源文件
?? C
字號:
/*
*********************************************************************************************************
*                                             uC/GUI V3.98
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002, Micrium Inc., Weston, FL
*                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed
*              in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File        : LCD_ISR.c
Purpose     : Interrupt service routine for display refresh written in 'C'.
              This routine should be used only as a sample. It shows how to
              write the video data to the display. It normally needs
              to be written in assembler to be fast enough.
----------------------------------------------------------------------
*/

#include "GUI.h"
#include "LCD_Private.h"

/*********************************************************************
*
*       Defines
*
**********************************************************************
*/

/*********************************************************************
*
*       Config defaults
*
* These configuration macros normally should be defined in LCDConf.h.
* The following configuration works on a M16C hardware
*/
#ifndef   LCD_PORT_DATA
  #define LCD_PORT_DATA P7  /* Port used to transfer the data */
#endif

#ifndef   LCD_PORT_CTRL
  #define LCD_PORT_CTRL P8  /* Port used for the control signals */
#endif

#ifndef   MASK_M
  #define MASK_M   (1 << 0) /* Mask to access the M signal of the control port */
#endif

#ifndef   MASK_FLM
  #define MASK_FLM (1 << 1) /* Mask to access the FLM signal (first line) of the control port */
#endif

#ifndef   MASK_CL1
  #define MASK_CL1 (1 << 2) /* Mask to access the line clock signal of the control port */
#endif

#ifndef   MASK_DON
  #define MASK_DON (1 << 3) /* Mask to access the pixel display on signal of the control port */
#endif

#ifndef   MASK_CL2
  #define MASK_CL2 (1 << 4) /* Mask to access the pixel clock signal of the control port */
#endif

/*********************************************************************
*
*       START_TIMER
*
* Purpose:
*   The timer macro is used to start a timer to generate timer interrupts.
*   The function LCD_ISR() should be called in reacton of the timer interrupts.
*   The frequency is set by the function _SetFreq() which is called before
*   this macro is executed.
*/
#ifndef   START_TIMER
  #define START_TIMER()                                              \
    TA1MR = 0;           /* Timer mode register */                   \
                         /* bit 01 : 00 Timer mode */                \
                         /* bit 2  :  0 No puls output */            \
                         /* bit 34 : 0X No gate function */          \
                         /* bit 5  : 0 */                            \
                         /* bit 67 : 00 clock source : fx/2 */       \
    TA1IC.0 = 1;         /* Timer interrupt register, priority 1 */  \
    TABSR  =  (1 << 1)   /* Timer count start flag */
#endif

/*********************************************************************
*
*       STOP_TIMER
*
* Purpose:
*   Stops the timer started with the START_TIMER macro.
*/
#ifndef   STOP_TIMER
  #define STOP_TIMER()                                               \
    TABSR &= ~(1 << 1);  /* Timer count start flag */                \
    P7D    = 0xff;                                                   \
    P8D    = 0xff
#endif

/*********************************************************************
*
*       Internal macros
*/
#define LCD_BYTESPERLINE (((LCD_VXSIZE_PHYS) + 7) / 8)

/*********************************************************************
*
*       Static data
*
**********************************************************************
*/
static U8 LCD_VRAMTYPE * _pData; /* Pointer to the video RAM of the display driver */
static char _Line;               /* Current display line to be accessed */
static char _GrayCnt;            /* Zero based index to currently accessed data pane of the driver */
static char _MCnt;               /* Counter used to decide when the M signal of the control port should be inverted */

/*********************************************************************
*
*       External data
*
**********************************************************************
*/
extern LCD_VRAMTYPE U8  LCD_VRAMTYPE * LCD__apVRam[LCD_BITSPERPIXEL]; /* External VRam panes of the display driver */
extern LCD_VRAMTYPE U16 LCD__aTimerReload[LCD_BITSPERPIXEL];          /* External timer values used to show each pane with a different time */

/*********************************************************************
*
*       Static code
*
**********************************************************************
*/
/*********************************************************************
*
*       _SetFreq
*
* Purpose:
*   Inits the timer used to refresh one display line
*/
void _SetFreq(int f) {
  TA1 = f;
}

/*********************************************************************
*
*       Exported code
*
**********************************************************************
*/
/*********************************************************************
*
*       LCD_ISR
*
* Purpose:
*   Sends the video data to the display.
*   This routine should be called from an external interrupt service routine.
*/
void LCD_ISR(void) {
  int i = LCD_BYTESPERLINE;
  /* Send data out */
  do {
    U8 Data = *(_pData++);
    #if (LCD_INTERFACEBITS == 4)
      LCD_PORT_CTRL |=  MASK_CL2;  /* Pixel clock signal high */
      LCD_PORT_DATA =   Data >> 4; /* Write the first pixel stored in the upper nibble */
      LCD_PORT_CTRL &= ~MASK_CL2;  /* Pixel clock signal low */
      LCD_PORT_CTRL |=  MASK_CL2;  /* Pixel clock signal high */
      LCD_PORT_DATA =   Data;      /* Write the second pixel stored in the lower nibble */
      LCD_PORT_CTRL &= ~MASK_CL2;  /* Pixel clock signal low */
    #elif (LCD_INTERFACEBITS == 8)
      LCD_PORT_CTRL |=  MASK_CL2;  /* Pixel clock signal high */
      LCD_PORT_DATA =   Data;      /* Write 8 bit pixel data */
      LCD_PORT_CTRL &= ~MASK_CL2;  /* Pixel clock signal low */
    #else
      #error This sample routine does not support this interface yet. Please add the code here.
    #endif
  } while (--i);
  /* Give line signals */
  if (_Line == 0) {
    LCD_PORT_CTRL |=  MASK_FLM; /* First line signal high */
    LCD_PORT_CTRL |=  MASK_CL1; /* Line clock signal high */
    LCD_PORT_CTRL &= ~MASK_CL1; /* Line clock signal low */
    LCD_PORT_CTRL &= ~MASK_FLM; /* First line signal low */
  } else {
    LCD_PORT_CTRL |=  MASK_CL1; /* Line clock signal high */
    LCD_PORT_CTRL &= ~MASK_CL1; /* Line clock signal low */
  }
  /* Invert the M signal regular */
  if (!--_MCnt) {
    _MCnt = 7;
    LCD_PORT_CTRL ^= MASK_M;
  }
  /* If the last line of a pane is written set the data pointer to the first byte of the next pane. */
  if (++_Line == LCD_YSIZE) {
    _Line = 0;
    _GrayCnt ^= 1;
    _SetFreq(LCD__aTimerReload[_GrayCnt]);
    _pData = (U8 LCD_VRAMTYPE *)LCD__apVRam[_GrayCnt]; /* Set the data pointer to the first byte of the right pane */
  }
}

/*********************************************************************
*
*       LCD_X_On
*/
void LCD_X_On(void) {
  _pData = (U8 LCD_VRAMTYPE *)LCD__apVRam[0];          /* Set the data pointer to the first byte of the first pane */
  _SetFreq(LCD__aTimerReload[0]);                      /* Init the timer with the first value */
  START_TIMER();
  LCD_PORT_CTRL |= MASK_DON;
}

/*********************************************************************
*
*       LCD_X_Off
*/
void LCD_X_Off(void) {
  STOP_TIMER();
  LCD_PORT_CTRL &= ~MASK_DON;
}

/*************************** End of file ****************************/
	 	 			 		    	 				 	  			   	 	 	 	 	 	  	  	      	   		 	 	 		  		  	 		 	  	  			     			       	   	 			  		    	 	     	 				  	 					 	 			   	  	  			 				 		 	 	 			     			 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线视频观看58| 亚洲午夜国产一区99re久久| 91丨九色丨黑人外教| 日韩高清一区在线| 亚洲日本免费电影| 久久伊人蜜桃av一区二区| 在线中文字幕一区| 丁香桃色午夜亚洲一区二区三区| 午夜国产不卡在线观看视频| 中文字幕乱码日本亚洲一区二区| 欧美一区三区二区| 欧美羞羞免费网站| 91在线观看下载| 国产一区二区91| 久久国产三级精品| 日韩精品午夜视频| 一区二区免费看| 中文字幕在线不卡一区| 久久这里只有精品首页| 日韩午夜在线观看视频| 欧美日韩一级片在线观看| 91麻豆精品一区二区三区| 国产成人三级在线观看| 精品亚洲成a人| 美女一区二区三区| 日韩精品成人一区二区三区| 亚洲三级电影网站| 久久久天堂av| 欧美精品一区视频| 精品国产露脸精彩对白| 欧美成人高清电影在线| 日韩欧美在线网站| 欧美一区二区免费视频| 欧美日韩亚洲丝袜制服| 欧亚一区二区三区| 91国产成人在线| 欧美在线视频日韩| 欧美日韩精品一区二区天天拍小说| 在线免费观看一区| 精品视频全国免费看| 欧美日韩高清一区二区三区| 欧美私模裸体表演在线观看| 欧美日韩国产一区| 欧美一卡二卡在线| 精品国产第一区二区三区观看体验 | 成人免费看的视频| 高清在线不卡av| 成人av在线资源| 91社区在线播放| 在线精品观看国产| 欧美剧情片在线观看| 欧美一区二区三区在线观看| 日韩欧美激情四射| 国产三级精品视频| 亚洲欧洲日产国产综合网| 亚洲女子a中天字幕| 亚洲第一久久影院| 日韩不卡手机在线v区| 蜜桃传媒麻豆第一区在线观看| 精品综合免费视频观看| 国产成人精品三级| 色屁屁一区二区| 91麻豆精品国产91久久久久久久久 | 国产精品综合视频| 91影视在线播放| 欧美日韩精品一区二区三区蜜桃 | 91在线观看成人| 91官网在线观看| 日韩精品一区二区三区swag| 久久免费国产精品| 亚洲精品免费电影| 青青草97国产精品免费观看| 国产精品亚洲专一区二区三区| 99re热这里只有精品免费视频| 欧美色男人天堂| 日韩欧美的一区| 中文字幕一区免费在线观看| 午夜久久电影网| 国产91露脸合集magnet| 色av综合在线| 久久精品亚洲麻豆av一区二区| 亚洲视频图片小说| 奇米影视一区二区三区小说| 高清不卡一区二区| 在线成人免费视频| 国产女同互慰高潮91漫画| 亚洲一区二区三区不卡国产欧美| 另类调教123区| 91免费观看视频在线| 26uuu亚洲综合色| 亚洲成人一区二区| 成人av电影观看| 精品乱人伦一区二区三区| 亚洲免费av观看| 国产老妇另类xxxxx| 在线不卡免费欧美| 亚洲欧美日韩国产另类专区| 美腿丝袜在线亚洲一区| 色老综合老女人久久久| 久久九九影视网| 美女在线视频一区| 欧美日韩一区二区三区视频| 国产精品国产自产拍高清av| 久久福利视频一区二区| 欧美日韩午夜在线视频| 中文字幕一区二区三区在线不卡 | 欧洲av一区二区嗯嗯嗯啊| 欧美国产一区在线| 美女看a上一区| 欧美日韩成人综合在线一区二区| 国产精品久久久一区麻豆最新章节| 免费久久精品视频| 欧美中文字幕亚洲一区二区va在线 | 97精品超碰一区二区三区| 久久综合成人精品亚洲另类欧美| 日韩av在线发布| 欧美亚洲动漫精品| 亚洲欧洲综合另类在线| 成人黄页在线观看| 中文字幕精品在线不卡| 国产一区二区免费看| 日韩女优av电影| 蜜臀av一区二区| 正在播放一区二区| 亚洲大片在线观看| 欧美午夜精品理论片a级按摩| 亚洲欧美日韩久久| 99久久精品免费| 国产精品乱码久久久久久| 国产福利91精品| 久久久综合视频| 国产精品88888| 中文字幕成人网| 成人美女视频在线看| 中文久久乱码一区二区| 高清在线不卡av| 成人欧美一区二区三区黑人麻豆 | 成人av在线资源| 最新久久zyz资源站| www.亚洲免费av| 亚洲私人影院在线观看| 96av麻豆蜜桃一区二区| 亚洲一区免费视频| 欧美高清你懂得| 精品一区二区av| 国产女同互慰高潮91漫画| www.成人网.com| 亚洲一区二区三区在线| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品灌醉下药二区| 99久免费精品视频在线观看| 亚洲九九爱视频| 欧美久久婷婷综合色| 久久国产免费看| 国产精品嫩草影院com| 91丨九色丨蝌蚪富婆spa| 亚洲午夜免费电影| 精品少妇一区二区三区免费观看| 国产精品综合一区二区三区| 中文字幕在线视频一区| 色狠狠桃花综合| 日韩不卡一二三区| 亚洲国产精品成人综合| 91福利在线导航| 美国三级日本三级久久99| 国产日韩成人精品| 欧美亚洲国产一区二区三区va| 麻豆精品国产91久久久久久| 国产亚洲欧美日韩日本| 色综合视频在线观看| 午夜精品福利一区二区三区蜜桃| 日韩精品综合一本久道在线视频| 国产成人精品亚洲日本在线桃色| 中文字幕在线观看一区二区| 在线电影国产精品| 成人av在线观| 日韩成人dvd| 亚洲国产精品ⅴa在线观看| 欧美丝袜丝交足nylons| 国产精品一卡二卡在线观看| 一区二区高清视频在线观看| 精品免费99久久| 欧美系列在线观看| 国产91清纯白嫩初高中在线观看| 亚洲国产成人91porn| 国产午夜精品久久| 欧美视频自拍偷拍| 成人免费av在线| 美女网站一区二区| 亚洲专区一二三| 国产婷婷色一区二区三区四区| 欧美日韩一区在线| 91在线国内视频| 国产一区二区导航在线播放| 亚洲一二三区视频在线观看| 国产精品伦理一区二区| 欧美tickling网站挠脚心| 欧美日韩一区二区电影| 91在线视频在线| 成人午夜激情片|