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

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

?? pc.c

?? 一個UCOS學習的好實例
?? 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一区二区三区免费野_久草精品视频
亚洲另类春色校园小说| 亚洲综合免费观看高清在线观看| 欧美三级电影在线看| 97超碰欧美中文字幕| 日本道在线观看一区二区| 在线观看免费亚洲| 欧美性猛片aaaaaaa做受| 欧美日韩夫妻久久| 欧美mv日韩mv国产网站app| 日韩免费性生活视频播放| 国产婷婷色一区二区三区在线| 久久久久久久久免费| 欧美国产激情一区二区三区蜜月| 国产精品免费免费| 亚洲日穴在线视频| 日本在线播放一区二区三区| 日韩av一二三| 国产精品1区二区.| 色综合久久66| 欧美一级一区二区| 久久精品一区二区三区不卡 | 欧美最猛黑人xxxxx猛交| 91年精品国产| 91精品国产色综合久久不卡蜜臀| 精品国产乱码久久久久久图片 | 久久综合999| 欧美国产一区视频在线观看| 亚洲精品精品亚洲| 久久成人免费网| bt欧美亚洲午夜电影天堂| 精品视频在线免费看| 精品久久久久久久久久久久久久久久久| 久久一日本道色综合| 亚洲视频一区二区在线| 久久99国产精品免费网站| 99久久国产综合精品女不卡| 欧美一区二区精品在线| 中文字幕亚洲区| 久久精品免费观看| 欧美视频在线观看一区二区| 欧美经典三级视频一区二区三区| 亚洲福利视频三区| a级精品国产片在线观看| 欧美一卡二卡三卡四卡| 一区二区日韩av| 国产高清久久久| 欧美日韩大陆一区二区| 亚洲精品成人少妇| 成人免费视频caoporn| 欧美成人精精品一区二区频| 亚洲午夜私人影院| 91麻豆.com| 中文av一区二区| 国产真实乱子伦精品视频| 6080日韩午夜伦伦午夜伦| 亚洲美女免费视频| 99麻豆久久久国产精品免费优播| 精品乱人伦小说| 婷婷综合久久一区二区三区| 在线观看av一区| 国产精品传媒入口麻豆| 国产精品1区2区3区| 精品免费99久久| 激情综合网激情| 精品久久久久久无| 美女一区二区三区在线观看| 777久久久精品| 午夜精品久久久久久久| 欧美日韩一区高清| 亚洲香肠在线观看| 日韩一区国产二区欧美三区| 亚洲狠狠丁香婷婷综合久久久| 成人免费电影视频| 国产精品婷婷午夜在线观看| 成人黄色777网| 中文字幕一区日韩精品欧美| 9久草视频在线视频精品| 亚洲欧美一区二区在线观看| 99久久精品免费看国产| 亚洲精品国产第一综合99久久 | 一区二区三区四区激情| 色香蕉久久蜜桃| 亚洲一区二区精品3399| 欧美精品三级日韩久久| 亚洲 欧美综合在线网络| 3d动漫精品啪啪| 精品午夜一区二区三区在线观看| 精品国产一区久久| 国产精品一卡二卡| 亚洲三级在线免费| 在线综合亚洲欧美在线视频| 麻豆成人在线观看| 欧美国产一区在线| 在线观看一区二区视频| 蜜臀a∨国产成人精品| 国产欧美日韩精品在线| 91色乱码一区二区三区| 亚洲大片免费看| 精品国产露脸精彩对白| 97久久精品人人做人人爽50路 | 日韩免费一区二区| 成人av午夜电影| 亚洲国产精品视频| 国产亚洲精品bt天堂精选| 色94色欧美sute亚洲线路二| 免费观看一级特黄欧美大片| 久久精品亚洲精品国产欧美kt∨| 91在线视频官网| 热久久免费视频| 亚洲精品网站在线观看| 精品久久久久av影院| 欧美色图天堂网| 国产麻豆视频精品| 日韩激情av在线| 亚洲欧洲日本在线| 精品国产青草久久久久福利| 91激情五月电影| 国产91丝袜在线观看| 日韩av中文字幕一区二区| 中文字幕在线不卡国产视频| 欧美成人激情免费网| 91搞黄在线观看| 成人午夜视频福利| 精品在线观看视频| 婷婷久久综合九色综合绿巨人| 中文字幕一区二区三区在线播放| 日韩免费一区二区三区在线播放| 91麻豆国产香蕉久久精品| 国产福利一区二区三区视频在线 | 成人网男人的天堂| 狠狠色综合色综合网络| 日韩精品国产欧美| 亚洲综合色视频| 亚洲精品中文字幕在线观看| 国产精品毛片大码女人| 国产色综合一区| 久久久久国产精品麻豆ai换脸 | 蜜臀va亚洲va欧美va天堂| 一区二区高清免费观看影视大全| 中文字幕精品三区| 国产日韩精品视频一区| 久久婷婷综合激情| 日韩丝袜美女视频| 日韩一区二区三免费高清| 欧美精品一卡二卡| 51精品秘密在线观看| 91精品视频网| 日韩一区二区三区电影在线观看| 欧美高清视频不卡网| 欧美日韩一区不卡| 欧美理论在线播放| 91精品国产综合久久精品app| 欧美日韩免费一区二区三区视频| 在线观看日韩高清av| 在线观看日韩电影| 欧美人与性动xxxx| 日韩视频免费观看高清完整版| 777午夜精品免费视频| 欧美一级片在线| 精品精品国产高清一毛片一天堂| 精品人在线二区三区| 久久精品一二三| 亚洲欧美偷拍卡通变态| 亚洲图片自拍偷拍| 全部av―极品视觉盛宴亚洲| 国产美女久久久久| 99免费精品视频| 欧美日韩大陆一区二区| 精品国产网站在线观看| 亚洲国产高清在线观看视频| 亚洲日韩欧美一区二区在线| 午夜精品影院在线观看| 久久99精品久久久| 成人av网址在线| 欧美男生操女生| 国产视频在线观看一区二区三区| 国产精品的网站| 爽好多水快深点欧美视频| 久久99精品国产麻豆婷婷| 99久久伊人网影院| 欧美绝品在线观看成人午夜影视| 日韩欧美国产一区二区三区| 国产精品二三区| 首页欧美精品中文字幕| 白白色亚洲国产精品| 欧美精品一卡二卡| 中文av一区二区| 日韩二区在线观看| jiyouzz国产精品久久| 欧美一区二区三区性视频| 久久久久久**毛片大全| 一区二区三区不卡视频| 国产精品一级二级三级| 正在播放亚洲一区| 亚洲色图制服丝袜| 激情久久五月天| 欧美日韩国产首页在线观看| 国产欧美一区二区三区鸳鸯浴| 亚洲成人免费在线观看| av亚洲精华国产精华精|