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

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

?? pc.c

?? 嵌入式系統內核模擬器
?? C
字號:
/*Example,porting ucosii to simuos 20041123*/
/*Author:lmjx 
**Email :limiao@yeah.net
**You can FREE use this copy for LEARN or EDUCATE purpose.
**For more information access www.mshowtec.com
**/

#include "../../simulator/export.h"
#include "../example/includes.h"

/*
   *********************************************************************************************************
   *                                        CHECK AND GET KEYBOARD KEY
   *
   * Description: This function checks to see if a key has been pressed at the keyboard and returns TRUE if
   *              so.  Also, if a key is pressed, the key is read and copied where the argument is pointing
   *              to.
   *
   * Arguments  : c     is a pointer to where the read key will be stored.
   *
   * Returns    : TRUE  if a key was pressed
   *              FALSE otherwise
   *********************************************************************************************************
 */
BOOLEAN PC_GetKey(INT16S * c)
{   
 return 1;

}

/*
   *********************************************************************************************************
   *                                 DISPLAY A STRING  AT 'X' & 'Y' COORDINATE
   *
   * Description : This function writes an ASCII string anywhere on the PC's screen.  This function writes
   *               directly to video RAM instead of using the BIOS for speed reasons.  It assumed that the
   *               video adapter is VGA compatible.  Video RAM starts at absolute address 0x000B8000.  Each
   *               character on the screen is composed of two bytes: the ASCII character to appear on the
   *               screen followed by a video attribute.  An attribute of 0x07 displays the character in
   *               WHITE with a black background.
   *
   * Arguments   : x      corresponds to the desired column on the screen.  Valid columns numbers are from
   *                      0 to 79.  Column 0 corresponds to the leftmost column.
   *               y      corresponds to the desired row on the screen.  Valid row numbers are from 0 to 24.
   *                      Line 0 corresponds to the topmost row.
   *               s      Is the ASCII string to display.  You can also specify a string containing
   *                      characters with numeric values higher than 128.  In this case, special character
   *                      based graphics will be displayed.
   *               color  specifies the foreground/background color to use (see PC.H for available choices)
   *
   * Returns     : None
   *********************************************************************************************************
 */
void PC_DispStr(INT8U x, INT8U y, INT8U * s, INT8U color)
{   
}

/*
   *********************************************************************************************************
   *                           DISPLAY A SINGLE CHARACTER AT 'X' & 'Y' COORDINATE
   *
   * Description : This function writes a single character anywhere on the PC's screen.  This function
   *               writes directly to video RAM instead of using the BIOS for speed reasons.  It assumed
   *               that the video adapter is VGA compatible.  Video RAM starts at absolute address
   *               0x000B8000.  Each character on the screen is composed of two bytes: the ASCII character
   *               to appear on the screen followed by a video attribute.  An attribute of 0x07 displays
   *               the character in WHITE with a black background.
   *
   * Arguments   : x      corresponds to the desired column on the screen.  Valid columns numbers are from
   *                      0 to 79.  Column 0 corresponds to the leftmost column.
   *               y      corresponds to the desired row on the screen.  Valid row numbers are from 0 to 24.
   *                      Line 0 corresponds to the topmost row.
   *               c      Is the ASCII character to display.  You can also specify a character with a
   *                      numeric value higher than 128.  In this case, special character based graphics
   *                      will be displayed.
   *               color  specifies the foreground/background color to use (see PC.H for available choices)
   *
   * Returns     : None
   *********************************************************************************************************
 */
void PC_DispChar(INT8U x, INT8U y, INT8U c, INT8U color)
{   
}


/*
   *********************************************************************************************************
   *                                              CLEAR SCREEN
   *
   * Description : This function clears the PC's screen by directly accessing video RAM instead of using
   *               the BIOS.  It assumed that the video adapter is VGA compatible.  Video RAM starts at
   *               absolute address 0x000B8000.  Each character on the screen is composed of two bytes:
   *               the ASCII character to appear on the screen followed by a video attribute.  An attribute
   *               of 0x07 displays the character in WHITE with a black background.
   *
   * Arguments   : color   specifies the foreground/background color combination to use
   *                       (see PC.H for available choices)
   *
   * Returns     : None
   *********************************************************************************************************
 */
void PC_DispClrScr(INT8U color)
{  
}

/*
   *********************************************************************************************************
   *                                       ELAPSED TIME INITIALIZATION
   *
   * Description : This function initialize the elapsed time module by determining how long the START and
   *               STOP functions take to execute.  In other words, this function calibrates this module
   *               to account for the processing time of the START and STOP functions.
   *               Needs to be called only once before any of the timers is started with PC_ElapsedStart().
   *
   * Arguments   : None.
   *
   * Returns     : None.
   *********************************************************************************************************
 */
static INT16U PC_ElapsedOverhead=0;

void PC_ElapsedInit(void)
{  
   static BOOLEAN initDone=FALSE;  

    if (initDone)
    	return;
    PC_ElapsedOverhead = 0;					// Measure the overhead of PC_ElapsedStart
    PC_ElapsedStart();						// ... and PC_ElapsedStop
    PC_ElapsedOverhead = (INT16U) PC_ElapsedStop();
    initDone=TRUE;
}

/*
   *********************************************************************************************************
   *                            START A TIMER FOR EXECUTION TIME MEASUREMENT
   *
   * Description : Trigger the timer to be used to measure the time between events.
   *               Timer will be running when the function returns. 
   *		   Time measurement needs to be initalized before by calling PC_ElapsedInit, only
   *               needed once for all timers together. 
   *
   * Arguments   : n=0...NTIMERS-1 number of timer
   *
   * Returns     : None.
   *********************************************************************************************************
 */
void PC_ElapsedStart()
{   
	INT32U ms;
	ms = 1000/OS_TICKS_PER_SEC;
	starttimer(ms);
}

/*
   *********************************************************************************************************
   *                             STOP A TIMER FOR EXECUTION TIMER MEASUREMENT
   *
   * Description : This function stops the the timer for execution time measurement and computes the
   *               time in microseconds since the timer was started with PC_ElapsedStart.
   *
   * Arguments   : n=0...NTIMERS-1 number of timer.
   *
   * Returns     : The number of micro-seconds since the timer was last started.
   *
   * Notes       : - The returned time accounts for the processing time of the START and STOP functions.
   *               
   *********************************************************************************************************
 */
INT32U PC_ElapsedStop()
{
    stoptimer();
    return curTick*(1000/OS_TICKS_PER_SEC);;
}

/*
*********************************************************************************************************
*                                      SET THE PC'S TICK FREQUENCY
*
*********************************************************************************************************
*/
void PC_SetTickRate (INT32U tickPerSec)
{
    INT32U ms;
    ms = 1000/tickPerSec;
    curTick = 0;
    PC_ElapsedOverhead = 0;
    starttimer(ms);
}
/*
   *********************************************************************************************************
   *                                       GET THE CURRENT DATE AND TIME
   *
   * Description: This function obtains the current date and time from the PC.
   *
   * Arguments  : s     is a pointer to where the ASCII string of the current date and time will be stored.
   *                    You must allocate at least 21 bytes (includes the NUL) of storage in the return
   *                    string.  The date and time will be formatted as follows:
   *
   *                        "YYYY-MM-DD  HH:MM:SS"
   *
   * Returns    : none
   *********************************************************************************************************
 */
void PC_GetDateTime(char *s)
{  
}



/*
*********************************************************************************************************
*                                        INSTALL INTERRUPT VECTOR
*
* Description: This function sets an interrupt vector in the "simulated" interrupt vector table.
*
* Arguments  : vect  is the desired interrupt vector number, a number between 1 and 7.
*              isr   is a pointer to a function to execute when the interrupt or exception occurs.
*
*              Interrupt 0 cannot be set, because it is reserved for the timer interrupt.
*
* Returns    : none
*********************************************************************************************************
*/

void  PC_IntVectSet(INT8U irq, void (*isr)(void))
{   if ((irq >=0) && (irq < 8))
       IntVetTbl[irq]=isr;
}

/*
*********************************************************************************************************
*                                        OBTAIN INTERRUPT VECTOR
*
* Description: This function reads the pointer stored at the specified vector.
*
* Arguments  : vect  is the desired interrupt vector number, a number between 0 and 7.
*
* Returns    : The address of the Interrupt handler stored at the desired vector location.
*********************************************************************************************************
*/

void *PC_IntVectGet(INT8U irq)
{   if (irq < 8)
       return IntVetTbl[irq];
    else
       return NULL;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本va欧美va精品发布| 久久99精品久久久久久动态图 | 国产欧美精品在线观看| 亚洲综合网站在线观看| 国产91精品一区二区麻豆亚洲| 色偷偷88欧美精品久久久| 精品区一区二区| 日本欧美加勒比视频| 99久久综合精品| 国产日韩综合av| 玖玖九九国产精品| 欧美精品日韩一本| 亚洲综合在线五月| 色综合天天做天天爱| www激情久久| 看电视剧不卡顿的网站| 在线成人小视频| 亚洲电影你懂得| 欧美色男人天堂| 洋洋成人永久网站入口| 99久久免费国产| 日韩理论电影院| 97久久超碰精品国产| 国产精品免费免费| 成人激情图片网| 国产精品久久久久久久午夜片| 狠狠色综合日日| 精品国产亚洲在线| 国产曰批免费观看久久久| 日韩美女天天操| 韩国v欧美v亚洲v日本v| 久久综合色一综合色88| 久久精品国产成人一区二区三区 | jlzzjlzz亚洲日本少妇| 国产日韩欧美制服另类| 九九国产精品视频| www国产精品av| 国产一区二区三区四| 国产欧美精品区一区二区三区| 国产aⅴ综合色| 国产精品二三区| 成人午夜视频网站| 中文字幕+乱码+中文字幕一区| 老司机精品视频一区二区三区| 91精品国产综合久久福利| 青青草原综合久久大伊人精品优势| 欧美日韩一区二区电影| 五月天精品一区二区三区| 欧美精品黑人性xxxx| 日本中文字幕一区| 久久精品夜夜夜夜久久| 99在线热播精品免费| 樱花影视一区二区| 日韩一区二区三区在线视频| 国产呦萝稀缺另类资源| 中文字幕免费一区| 欧美亚洲禁片免费| 看片网站欧美日韩| 自拍偷拍亚洲激情| 3d成人h动漫网站入口| 韩国一区二区视频| 尤物av一区二区| 亚洲精品一线二线三线无人区| 成人教育av在线| 天天色天天爱天天射综合| 久久精品综合网| 欧美日韩国产乱码电影| 国产一区中文字幕| 亚洲大片在线观看| 亚洲国产精品国自产拍av| 色婷婷综合视频在线观看| 美日韩一区二区| 中文字幕一区二区三区在线不卡| 欧美日韩精品一区二区| 成人性色生活片| 美国毛片一区二区三区| 亚洲三级电影网站| 亚洲精品在线观看网站| 欧美精三区欧美精三区| 高清不卡在线观看av| 免费人成黄页网站在线一区二区| 最新国产の精品合集bt伙计| 欧美一区二区三区在线观看视频 | 国产精品色婷婷| 宅男在线国产精品| 91蜜桃免费观看视频| 精品亚洲aⅴ乱码一区二区三区| 一区二区三区四区视频精品免费 | 欧美精品在线观看播放| 成人午夜私人影院| 国产一本一道久久香蕉| 日韩高清电影一区| 一区二区三区国产| 中文字幕亚洲不卡| 国产日韩精品一区二区三区在线| 91精品国产一区二区三区蜜臀| 欧美自拍丝袜亚洲| 99久久精品一区| 国产91露脸合集magnet| 国产一区二区三区精品欧美日韩一区二区三区 | 91精品欧美一区二区三区综合在| 91在线视频观看| 成人av在线影院| 国产高清成人在线| 国产精品自拍三区| 国产成人精品亚洲777人妖| 日韩中文字幕不卡| 日韩精品欧美精品| 六月婷婷色综合| 日本欧美在线看| 免费欧美日韩国产三级电影| 日韩综合小视频| 日本在线观看不卡视频| 美日韩一区二区| 国产一区二区三区免费看| 国内外精品视频| 国产成人鲁色资源国产91色综| 精品一区二区三区视频| 国产精品77777竹菊影视小说| 国产精品18久久久久久vr| 成人免费高清视频在线观看| 懂色av噜噜一区二区三区av| 成人黄色777网| 91国产丝袜在线播放| 欧美视频第二页| 91精品国产综合久久蜜臀| 精品国产伦一区二区三区观看方式| 欧美大片国产精品| 欧美激情综合五月色丁香小说| 国产精品久久久久一区| 亚洲视频免费在线| 亚洲国产精品一区二区久久| 丝袜亚洲另类欧美| 韩国女主播成人在线| av毛片久久久久**hd| 欧美亚洲免费在线一区| 欧美电影免费观看完整版| 中文字幕不卡三区| 午夜久久久久久久久| 久草精品在线观看| 一本到高清视频免费精品| 91麻豆精品91久久久久同性| 欧美不卡激情三级在线观看| 中文字幕在线不卡一区| 午夜久久久影院| 国产福利91精品| 欧美性生活大片视频| 26uuu久久天堂性欧美| 亚洲女性喷水在线观看一区| 视频一区二区不卡| 成人av小说网| 色偷偷成人一区二区三区91| 欧美一级在线观看| 亚洲美女电影在线| 久久精品国产久精国产爱| www.66久久| 精品乱码亚洲一区二区不卡| 亚洲欧洲av另类| 久久精品99久久久| 欧美亚洲国产bt| 国产精品入口麻豆原神| 奇米影视一区二区三区小说| av中文一区二区三区| 日韩欧美www| 亚洲综合一二三区| 成人性视频免费网站| 欧美区视频在线观看| 国产精品视频免费| 韩国精品久久久| 91精品国产综合久久婷婷香蕉| 亚洲日本中文字幕区| 福利一区二区在线观看| 欧美一级日韩一级| 中文字幕一区在线| 极品少妇一区二区| 欧美一区二区三区视频在线| 樱桃视频在线观看一区| 99国产精品久| 精品国产精品网麻豆系列| 婷婷综合五月天| 欧美三级蜜桃2在线观看| 久久久久久久久久久黄色| 日韩电影在线一区二区| 欧美日韩免费一区二区三区 | 亚洲午夜免费电影| 成人午夜激情影院| www国产精品av| 国产一区二区三区免费在线观看| 欧美一级片免费看| 偷拍与自拍一区| 在线电影院国产精品| 亚洲高清中文字幕| 欧美蜜桃一区二区三区| 亚洲国产日韩a在线播放| 91色婷婷久久久久合中文| 国产精品第一页第二页第三页| 国产黄人亚洲片| 欧美经典一区二区| 国产成人在线视频免费播放| 久久女同互慰一区二区三区|