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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lcd_reg.c

?? 嵌入式系統(tǒng)
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*-----------------------------------------------------------------------------
@@
@@ (Summary)    : The file to read and write register for LCD controller
@@
@@ (Comment)    :
@@
@@ (Author)     : 
@@
@@ (History)    : Date          Modifier    Comment
@@
@@ (RCS ID)     :
@@
-----------------------------------------------------------------------------*/
#include "type_def.h"
#include "amba_io.h"
#include "dev_def.h"
#include "pio.h"
#include "lcd_sys_def.h"
#include "lcd_def.h"
#include "lcd_param.h"
#include "lcd.h"
#include "lcd_palette.h"
#ifdef WIN32
#include "lcdcemu.h"
#endif//WIN32

/******************************************************************************
@@
@@ [Name]       : apd_LCDEnableIntr
@@
@@ [Summary]    : Enable interrupt of LCD controller
@@
@@ [Argument]   : flg : Interrupt flag to enable
@@                      APD_LCD_INTR_MBERR
@@                      APD_LCD_INTR_VCOMP
@@                      APD_LCD_INTR_LNBU
@@                      APD_LCD_INTR_FUF
@@                      Set the value, which is operated 'or' each symbols,
@@                      to argument when you enable two or more interrupts.
@@                      Example)
@@                      Enable interrupts of AMBA bus error and FIFO underflow.
@@                      APD_LCD_INTR_MBERR | APD_LCD_INTR_FUF
@@
@@ [Return]     : None
@@
@@ [Desc]       : Enable the specified interrupt
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDEnableIntr(APD_LCD_INTR_FLG flg)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_IntrEnable, (unsigned long)flg, LCD_INTR_MASK);
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDDisableIntr
@@
@@ [Summary]    : Disable interrupt for LCD controller
@@
@@ [Argument]   : flg : Interrupt flag to disable
@@                      APD_LCD_INTR_MBERR
@@                      APD_LCD_INTR_VCOMP
@@                      APD_LCD_INTR_LNBU
@@                      APD_LCD_INTR_FUF
@@                      Set the value, which is operated 'or' each symbols,
@@                      to argument when you disable two or more interrupts.
@@                      Example)
@@                      Disable interrupts of AMBA bus error and FIFO
@@                      underflow.
@@                      APD_LCD_INTR_MBERR | APD_LCD_INTR_FUF
@@
@@ [Return]     : None
@@
@@ [Desc]       : Disable the specified interrupt
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDDisableIntr(APD_LCD_INTR_FLG flg)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_IntrEnable, (unsigned long)0, flg & LCD_INTR_MASK);
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDGetEnableIntrState
@@
@@ [Summary]    : Get interrupt enable state of LCD controller
@@
@@ [Argument]   : None
@@
@@ [Return]     : Interrupt enable state.
@@                bit
@@                 4  AMBA bus error interrupt enable
@@                 3  Vertical compare interrupt enable
@@                 2  Next base update interrupt enable
@@                 1  FIFO underflow interrupt enable
@@
@@ [Desc]       : Get state of interrupt enable.
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
unsigned long apd_LCDGetEnableIntrState(void)
{
#ifndef WIN32
    return (apd_ReadReg(LCDC_IntrEnable));
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDClearIntr
@@
@@ [Summary]    : Clear interrupt factor of LCD controller
@@
@@ [Argument]   : flg : Interrupt flag to clear
@@                      APD_LCD_INTR_MBERR
@@                      APD_LCD_INTR_VCOMP
@@                      APD_LCD_INTR_LNBU
@@                      APD_LCD_INTR_FUF
@@                      Set the value, which is operated 'or' each symbols,
@@                      to argument when you clear two or more interrupts.
@@                      Example)
@@                      Clear interrupts of AMBA bus error and FIFO
@@                      underflow.
@@                      APD_LCD_INTR_MBERR | APD_LCD_INTR_FUF
@@
@@ [Return]     : None
@@
@@ [Desc]       : Clear the specified interrupt factor
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDClearIntr(APD_LCD_INTR_FLG flg)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_Status, (unsigned long)flg, LCD_INTR_MASK);
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDGetIntr
@@
@@ [Summary]    : Get interrupt factor of LCD controller
@@
@@ [Argument]   : None
@@
@@ [Return]     : The value of interrupt register for LCD controller
@@                bit
@@                 4  AMBA bus error interrupt
@@                 3  Vertical compare interrupt
@@                 2  Next base update interrupt
@@                 1  FIFO underflow interrupt
@@
@@ [Desc]       : Read interrupt register for LCD controller
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
unsigned long apd_LCDGetIntr(void)
{
#ifndef WIN32
    return(apd_ReadReg(LCDC_Interrupt));
#else//WIN32
    return 0;
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDGetStatus
@@
@@ [Summary]    : Get raw interrupt status for LCD controller
@@
@@ [Argument]   : None
@@
@@ [Return]     : The value of raw interrupt status
@@                bit
@@                 4  AMBA bus error interrupt
@@                 3  Vertical compare interrupt
@@                 2  Next base update interrupt
@@                 1  FIFO underflow interrupt
@@
@@ [Desc]       : Read interrupt status register for LCD controller
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
unsigned long apd_LCDGetStatus(void)
{
#ifndef WIN32
    return(apd_ReadReg(LCDC_Status));
#else//WIN32
    return 0;
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDEnable
@@
@@ [Summary]    : Enable LCD controller
@@
@@ [Argument]   : None
@@
@@ [Return]     : None
@@
@@ [Desc]       : Enable LCD controller
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDEnable(void)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_Control, (unsigned long)LCD_ENABLE, LCD_ENABLEMASK);
#else//WIN32
    lcdemu_LCDEnable();
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDDisable
@@
@@ [Summary]    : Disable LCD controller
@@
@@ [Argument]   : None
@@
@@ [Return]     : None
@@
@@ [Desc]       : Disable LCD controller
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDDisable(void)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_Control, (unsigned long)LCD_DISABLE, LCD_ENABLEMASK);
#else//WIN32
    lcdemu_LCDDisable();
#endif//WIN32
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDOn
@@
@@ [Summary]    : Power LCD panel
@@
@@ [Argument]   : None
@@
@@ [Return]     : None
@@
@@ [Desc]       : Signal which controls to supply power to LCD panel is on.
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]

******************************************************************************/
void apd_LCDOn(void)
{
#ifndef WIN32
    apd_WriteRegByMask(LCDC_Control, (unsigned long)LCD_POWERON, LCD_POWERMASK);
#endif//WIN32
	apd_PIOSetBit(APD_PIOC,2);	//set "LCD_Ctrl" output

}

/******************************************************************************
@@
@@ [Name]       : apd_LCDOff
@@
@@ [Summary]    : Turn off power to LCD panel
@@
@@ [Argument]   : None
@@
@@ [Return]     : None
@@
@@ [Desc]       : Signal which controls to supply power to LCD panel is off.
@@
@@ [History]    : Date      Modifier    Comment
@@
@@ [END]
******************************************************************************/
void apd_LCDOff(void)
{
    apd_WriteRegByMask(LCDC_Control, (unsigned long)LCD_POWEROFF, LCD_POWERMASK);
    apd_PIOClrBit(APD_PIOC,2);	//clear "LCD_Ctrl" output.
}

/******************************************************************************
@@
@@ [Name]       : apd_LCDIPCEnable
@@
@@ [Summary]    : Enable LCD interface peripheral control
@@
@@ [Argument]   : state : The value to enable output control
@@                        APD_LCD_IPC_SPS
@@                        APD_LCD_IPC_CLS
@@                        APD_LCD_IPC_UBL
@@                        APD_LCD_IPC_DISP
@@                        APD_LCD_IPC_EN0
@@                        APD_LCD_IPC_EN1
@@                        APD_LCD_IPC_EN2
@@                        APD_LCD_IPC_EN3
@@                        Set the value, which is operated 'or' each symbols,
@@                        to argument when you enable two or more output
@@                        controls.
@@                        Example)
@@                        enable output controls of SPS and CLS
@@                        APD_LCD_IPC_SPS | APD_LCD_IPC_CLS
@@
@@ [Return]     : None
@@
@@ [Desc]       : Enable the corresponding enable bits of LCD interface
@@                peripheral control to the argument.
@@
@@ [History]    : Date        Modifier        Comment
@@
@@ [END]
******************************************************************************/
/*#ifdef LH79531		// GongXiaoXiong 28/10/2002
void apd_LCDIPCEnable(APD_LCD_IPC_OUT_TYPE  state)
{
    unsigned long mask;

    mask = state & LCDIPC_ENABLEMASK;
    apd_WriteRegByMask(LCDIPC_Control, state, mask);
}
#endif
*/
/******************************************************************************
@@
@@ [Name]       : apd_LCDIPCDisable
@@
@@ [Summary]    : Disable LCD interface peripheral control
@@
@@ [Argument]   : state : The value to disable output control
@@                        APD_LCD_IPC_SPS
@@                        APD_LCD_IPC_CLS
@@                        APD_LCD_IPC_UBL
@@                        APD_LCD_IPC_DISP
@@                        APD_LCD_IPC_EN0

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区蜜桃| 久久久国产精品午夜一区ai换脸| 亚洲男人都懂的| 99久久精品国产精品久久| 中文字幕av不卡| 色综合久久综合网欧美综合网| **欧美大码日韩| 在线欧美小视频| 偷拍自拍另类欧美| 欧美变态tickling挠脚心| 国内久久精品视频| 国产精品乱码妇女bbbb| 91福利社在线观看| 五月激情六月综合| 久久久久久亚洲综合| 成人丝袜18视频在线观看| 一级中文字幕一区二区| 欧美日韩国产一二三| 久久福利资源站| 中文字幕在线一区免费| 欧美日韩精品系列| 国产精品69毛片高清亚洲| 亚洲男人的天堂在线观看| 欧美丰满少妇xxxbbb| 国产精品一级二级三级| 一区二区三区在线影院| 日韩欧美中文字幕一区| a亚洲天堂av| 麻豆成人在线观看| 亚洲三级免费电影| 欧美一区二区福利在线| 成人免费不卡视频| 爽好多水快深点欧美视频| 337p日本欧洲亚洲大胆精品 | 激情亚洲综合在线| 亚洲卡通动漫在线| 久久品道一品道久久精品| 91蜜桃在线免费视频| 免费观看成人av| 亚洲精品菠萝久久久久久久| 精品国产91洋老外米糕| 欧美亚洲动漫制服丝袜| 成人免费高清视频| 久久国产婷婷国产香蕉| 亚洲大尺度视频在线观看| 中文子幕无线码一区tr| 日韩视频一区二区三区| 91福利在线看| 波多野结衣一区二区三区| 另类中文字幕网| 亚洲国产日韩综合久久精品| 中文字幕av一区二区三区高| 精品久久久久久最新网址| 91传媒视频在线播放| 成人教育av在线| 国产精品一级二级三级| 蜜桃视频在线一区| 日韩精品高清不卡| 亚洲免费观看高清完整| 欧美国产禁国产网站cc| 精品福利一区二区三区免费视频| 欧美无砖专区一中文字| www.激情成人| 国产寡妇亲子伦一区二区| 毛片一区二区三区| 亚洲成av人片一区二区| 一区二区三区国产精华| 亚洲日本在线观看| 中文字幕亚洲成人| 国产精品久线在线观看| 国产精品视频你懂的| 国产欧美一区二区精品性色| 精品久久久久久久久久久久包黑料 | av日韩在线网站| 国产成人aaaa| 国产不卡视频一区| 成人在线视频一区二区| 福利电影一区二区| 成人性生交大合| 99精品久久免费看蜜臀剧情介绍| 成人白浆超碰人人人人| 94-欧美-setu| 91色视频在线| 欧美撒尿777hd撒尿| 欧美日韩在线播放| 欧美日韩成人高清| 91麻豆精品国产91久久久 | 日韩欧美电影在线| 日韩精品一区二区三区中文精品| 日韩三级.com| 久久久精品影视| 国产精品电影一区二区三区| 亚洲柠檬福利资源导航| 亚洲国产视频在线| 美女在线视频一区| 国产成人在线免费| 色婷婷综合激情| 欧美精品色综合| 26uuu亚洲| 国产精品久久久久久户外露出| 亚洲国产精品高清| 亚洲综合免费观看高清在线观看| 日韩影院精彩在线| 国产一区二区三区在线观看免费视频| 国产不卡视频在线播放| 色狠狠综合天天综合综合| 欧美精品第1页| 久久九九久精品国产免费直播| 国产精品久久毛片av大全日韩| 亚洲国产成人porn| 精品一区二区在线免费观看| 91丨九色丨黑人外教| 7777精品伊人久久久大香线蕉超级流畅| 欧美变态tickling挠脚心| 国产精品区一区二区三区| 亚洲电影一级黄| 国产精品66部| 欧美精品一卡两卡| 中文av一区二区| 日韩激情在线观看| 99久久99久久精品国产片果冻| 欧美老肥妇做.爰bbww视频| 久久久影院官网| 亚洲图片欧美综合| 成人一区二区三区视频| 欧美色图一区二区三区| 久久亚洲精精品中文字幕早川悠里| 中文字幕一区二区三区精华液| 日韩国产欧美在线播放| av成人免费在线观看| 日韩三级电影网址| 一区二区三区中文在线观看| 丰满少妇在线播放bd日韩电影| 欧美日产国产精品| 亚洲欧美日韩国产综合在线| 久久成人久久鬼色| 欧美色电影在线| 国产精品美女一区二区三区| 免费高清在线一区| 欧美视频一区在线| 亚洲天堂网中文字| 成人性生交大合| 亚洲精品一区二区三区蜜桃下载| 亚洲高清中文字幕| 91污在线观看| 国产精品三级久久久久三级| 国产一区二区免费视频| 欧美高清性hdvideosex| 亚洲欧美日韩国产中文在线| 成人免费视频国产在线观看| 日韩精品中文字幕一区二区三区 | 精品处破学生在线二十三| 亚洲午夜视频在线观看| 色综合一个色综合亚洲| 国产精品理论在线观看| 国产福利一区二区三区视频在线| 日韩欧美精品在线视频| 婷婷丁香激情综合| 欧美日韩一区中文字幕| 樱桃视频在线观看一区| 色综合视频在线观看| 成人欧美一区二区三区白人| 国产不卡视频在线播放| 国产丝袜美腿一区二区三区| 国产综合久久久久影院| 精品剧情在线观看| 国产乱码精品一区二区三区五月婷| 精品国产污污免费网站入口 | 亚洲高清三级视频| 欧洲人成人精品| 亚洲地区一二三色| 69堂亚洲精品首页| 麻豆精品一区二区| 精品国产凹凸成av人导航| 国产美女一区二区三区| 国产欧美一二三区| 99国产精品视频免费观看| 亚洲天堂精品在线观看| 欧美综合一区二区三区| 亚洲国产一区二区在线播放| 这里是久久伊人| 国产在线精品一区二区夜色| 国产欧美日韩不卡| 99re视频这里只有精品| 亚洲精品免费在线播放| 欧美中文字幕一区二区三区| 午夜国产不卡在线观看视频| 欧美丰满少妇xxxbbb| 美女视频第一区二区三区免费观看网站 | 日韩精品中文字幕在线一区| 国产一区二区在线视频| 国产日产精品一区| 色先锋资源久久综合| 亚洲第一久久影院| 久久婷婷国产综合国色天香 | 亚洲一二三四久久| 欧美一区二区三区小说| 国产精品99久久久久| 日韩理论在线观看| 欧美一区二区人人喊爽|