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

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

?? pc.c

?? 周立功LPC213X開(kāi)發(fā)板光盤(pán).rar
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
{
//change by cmj
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    


//    PC_ExitFlag  = FALSE;                                  /* Indicate that we are not exiting yet!    */
//    OSTickDOSCtr =     1;                                  /* Initialize the DOS tick counter          */
//    PC_TickISR   = PC_VectGet(VECT_TICK);                  /* Get MS-DOS's tick vector                 */
    
//    PC_VectSet(VECT_DOS_CHAIN, PC_TickISR);                /* Store MS-DOS's tick to chain             */
    
//    setjmp(PC_JumpBuf);                                    /* Capture where we are in DOS              */
//    if (PC_ExitFlag == TRUE) {                             /* See if we are exiting back to DOS        */
//        OS_ENTER_CRITICAL();
//        PC_SetTickRate(18);                                /* Restore tick rate to 18.2 Hz             */
//        OS_EXIT_CRITICAL();
//        PC_VectSet(VECT_TICK, PC_TickISR);                 /* Restore DOS's tick vector                */
//        PC_DispClrScr(DISP_FGND_WHITE + DISP_BGND_BLACK);  /* Clear the display                        */
//        exit(0);                                           /* Return to DOS                            */
//    }
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                       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.
*
* Arguments   : None.
*
* Returns     : None.
*********************************************************************************************************
*/
void PC_ElapsedInit(void)
{
    PC_ElapsedOverhead = 0;
    PC_ElapsedStart();
    PC_ElapsedOverhead = PC_ElapsedStop();
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                         INITIALIZE PC'S TIMER #2
*
* Description : This function initialize the PC's Timer #2 to be used to measure the time between events.
*               Timer #2 will be running when the function returns.
*
* Arguments   : None.
*
* Returns     : None.
*********************************************************************************************************
*/
//change by cmj
        void PC_ElapsedStart(void)
{
    PC_ElapsedOverhead = T0TC;
}

//void PC_ElapsedStart(void)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT8U      data;


//    OS_ENTER_CRITICAL();
//    data  = (INT8U)inp(0x61);                              /* Disable timer #2                         */
//    data &= 0xFE;
//    outp(0x61, data);
//    outp(TICK_T0_8254_CWR,  TICK_T0_8254_CTR2_MODE0);      /* Program timer #2 for Mode 0              */
//    outp(TICK_T0_8254_CTR2, 0xFF);
//    outp(TICK_T0_8254_CTR2, 0xFF);
//    data |= 0x01;                                          /* Start the timer                          */
//    outp(0x61, data);
//    OS_EXIT_CRITICAL();
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                 STOP THE PC'S TIMER #2 AND GET ELAPSED TIME
*
* Description : This function stops the PC's Timer #2, obtains the elapsed counts from when it was
*               started and converts the elapsed counts to micro-seconds.
*
* Arguments   : None.
*
* 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.
*               - 54926 represents 54926S-16 or, 0.838097 which is used to convert timer counts to
*                 micro-seconds.  The clock source for the PC's timer #2 is 1.19318 MHz (or 0.838097 uS)
*********************************************************************************************************
*/
//change by cmj
        INT16U PC_ElapsedStop(void)
{
    return ((T0TC - PC_ElapsedOverhead) / (Fpclk / 1000000));
}

//INT16U PC_ElapsedStop(void)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT8U      data;
//    INT8U      low;
//    INT8U      high;
//    INT16U     cnts;


//    OS_ENTER_CRITICAL();
//    data  = (INT8U)inp(0x61);                                    /* Disable the timer                  */
//    data &= 0xFE;
//    outp(0x61, data);
//    outp(TICK_T0_8254_CWR, TICK_T0_8254_CTR2_LATCH);             /* Latch the timer value              */
//    low  = inp(TICK_T0_8254_CTR2);
//    high = inp(TICK_T0_8254_CTR2);
//    cnts = (INT16U)0xFFFF - (((INT16U)high << 8) + (INT16U)low); /* Compute time it took for operation */
//    OS_EXIT_CRITICAL();
//    return ((INT16U)((INT32U)cnts * 54926L >> 16) - PC_ElapsedOverhead);
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                       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
*********************************************************************************************************
*/
//change by cmj
        void PC_GetDateTime (char *s)
{
    INT32U da_year,da_mon,da_day,ti_hour,ti_min,ti_sec;
    

    ti_sec = SEC;
    ti_min = MIN;
    ti_hour = HOUR;
    da_day = DOM;
    da_mon = MONTH;
    da_year = YEAR;

    sprintf(s, "%04d-%02d-%02d  %02d:%02d:%02d",
               da_year,da_mon,da_day,ti_hour,ti_min,ti_sec);
}

//void PC_GetDateTime (char *s)
//{
//    struct time now;
//    struct date today;


//    gettime(&now);
//    getdate(&today);
//    sprintf(s, "%04d-%02d-%02d  %02d:%02d:%02d",
//               today.da_year,
//               today.da_mon,
//               today.da_day,
//               now.ti_hour,
//               now.ti_min,
//               now.ti_sec);
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                        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
*********************************************************************************************************
*/
//change by cmj
    BOOLEAN PC_GetKey (INT16S *c)
{
    if ((U0LSR & 0x00000001) != 0)
    {
        *c = U0RBR;
        return (TRUE);
    }
    else
    {
        *c = 0x00;
        return (FALSE);
    }
}

//BOOLEAN PC_GetKey (INT16S *c)
//{
//    if (kbhit()) {                                         /* See if a key has been pressed            */
//        *c = (INT16S)getch();                              /* Get key pressed                          */
//        return (TRUE);
//    } else {
//        *c = 0x00;                                         /* No key pressed                           */
//        return (FALSE);
//    }
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                      SET THE PC'S TICK FREQUENCY
*
* Description: This function is called to change the tick rate of a PC.
*
* Arguments  : freq      is the desired frequency of the ticker (in Hz)
*
* Returns    : none
*
* Notes      : 1) The magic number 2386360 is actually twice the input frequency of the 8254 chip which
*                 is always 1.193180 MHz.
*              2) The equation computes the counts needed to load into the 8254.  The strange equation
*                 is actually used to round the number using integer arithmetic.  This is equivalent to
*                 the floating point equation:
*
*                             1193180.0 Hz
*                     count = ------------ + 0.5
*                                 freq
*********************************************************************************************************
*/
//del by cmj
//void PC_SetTickRate (INT16U freq)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U     count;


//    if (freq == 18) {                            /* See if we need to restore the DOS frequency        */
//        count = 0;
//    } else if (freq > 0) {                        
                                                 /* Compute 8254 counts for desired frequency and ...  */
                                                 /* ... round to nearest count                         */
//        count = (INT16U)(((INT32U)2386360L / freq + 1) >> 1); 
//    } else {
//        count = 0;
//    }
//    OS_ENTER_CRITICAL();
//    outp(TICK_T0_8254_CWR,  TICK_T0_8254_CTR0_MODE3); /* Load the 8254 with desired frequency          */  
//    outp(TICK_T0_8254_CTR0, count & 0xFF);            /* Low  byte                                     */
//    outp(TICK_T0_8254_CTR0, (count >> 8) & 0xFF);     /* High byte                                     */
//    OS_EXIT_CRITICAL();
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                        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 255.
*
* Returns    : The address of the Interrupt handler stored at the desired vector location.
*********************************************************************************************************
*/
//del by cmj
//void *PC_VectGet (INT8U vect)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U    *pvect;
//    INT16U     off;
//    INT16U     seg;
    
    
//    pvect = (INT16U *)MK_FP(0x0000, vect * 4);        /* Point into IVT at desired vector location     */
//    OS_ENTER_CRITICAL();
//    off   = *pvect++;                                 /* Obtain the vector's OFFSET                    */
//    seg   = *pvect;                                   /* Obtain the vector's SEGMENT                   */
//    OS_EXIT_CRITICAL();
//    return (MK_FP(seg, off));
//}

/*
*********************************************************************************************************
*                                        INSTALL INTERRUPT VECTOR
*
* Description: This function sets an interrupt vector in the interrupt vector table.
*
* Arguments  : vect  is the desired interrupt vector number, a number between 0 and 255.
*              isr   is a pointer to a function to execute when the interrupt or exception occurs.
*
* Returns    : none
*********************************************************************************************************
*/
//del by cmj
//void PC_VectSet (INT8U vect, void (*isr)(void))
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U    *pvect;
    
    
//    pvect    = (INT16U *)MK_FP(0x0000, vect * 4);     /* Point into IVT at desired vector location     */
//    OS_ENTER_CRITICAL();
//    *pvect++ = (INT16U)FP_OFF(isr);                   /* Store ISR offset                              */
//    *pvect   = (INT16U)FP_SEG(isr);                   /* Store ISR segment                             */
//    OS_EXIT_CRITICAL();
//}


//add by cmj
        INT8U random(INT8U seed)
{
    uint16 temp;

    temp = rand();
    temp = temp % seed;
	return temp;
}

/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色噜噜| 99精品视频中文字幕| 依依成人精品视频| 午夜免费久久看| 蜜桃视频在线观看一区二区| 日韩高清不卡一区| 亚洲已满18点击进入久久| 久久综合99re88久久爱| 日韩欧美一区在线观看| 欧美片网站yy| 69堂国产成人免费视频| 色呦呦网站一区| 91久久奴性调教| 91国产视频在线观看| 欧美日韩在线不卡| 欧美猛男gaygay网站| 欧美午夜电影网| 欧美日本在线播放| 欧美在线小视频| 欧美欧美午夜aⅴ在线观看| 欧美日韩精品一区二区三区| 91激情在线视频| 欧美亚州韩日在线看免费版国语版| 91小视频在线| 在线成人免费视频| 欧美人狂配大交3d怪物一区| 91福利区一区二区三区| 欧美综合色免费| 欧美人伦禁忌dvd放荡欲情| 欧美日韩国产高清一区二区 | 精品国产免费一区二区三区四区| 日韩亚洲欧美高清| 久久精品免视看| 国产精品美女久久久久久2018| 亚洲欧美国产毛片在线| 亚洲不卡一区二区三区| 精品亚洲成a人| 丁香激情综合国产| 欧美性极品少妇| 亚洲精品在线电影| 亚洲男同1069视频| 久久av中文字幕片| 欧美亚洲国产一卡| 久久久777精品电影网影网| 日韩美女精品在线| 美国三级日本三级久久99 | 精品影院一区二区久久久| 不卡大黄网站免费看| 精品久久一二三区| 男人的天堂久久精品| 欧美日韩免费高清一区色橹橹| 日韩美女视频一区| 99riav久久精品riav| 18成人在线观看| 99vv1com这只有精品| 日韩毛片在线免费观看| 紧缚捆绑精品一区二区| 成+人+亚洲+综合天堂| 久久综合色8888| 精品一区二区国语对白| 在线电影一区二区三区| 一区二区三区在线高清| 99久久亚洲一区二区三区青草| 欧美精品一区二区三区四区| 九色综合狠狠综合久久| 日韩亚洲欧美中文三级| 欧美a级理论片| 精品少妇一区二区三区免费观看| 午夜视频一区二区三区| 欧美色综合天天久久综合精品| 亚洲欧美偷拍卡通变态| 91女厕偷拍女厕偷拍高清| 亚洲精品欧美在线| 欧美美女一区二区在线观看| 亚洲三级久久久| 欧美乱熟臀69xxxxxx| 亚洲一区二区视频| 色综合久久66| 日韩激情视频网站| 国产午夜亚洲精品理论片色戒| 久久国产精品99精品国产 | 在线欧美小视频| 天使萌一区二区三区免费观看| 日韩精品一区二区三区在线观看| 精品一区二区三区免费毛片爱 | 欧美国产精品中文字幕| 9久草视频在线视频精品| 婷婷六月综合亚洲| 久久精品一区二区三区四区| 99国产精品久久久久久久久久| 午夜日韩在线观看| 国产精品午夜在线观看| 欧美日韩第一区日日骚| 成人精品免费看| 日韩精品一级二级| 亚洲欧美日韩成人高清在线一区| 日韩视频123| 欧美最新大片在线看| 成人免费视频视频| 国产一区二区精品久久91| 亚洲va国产va欧美va观看| 国产精品另类一区| 日韩欧美精品在线| 91.xcao| 欧美专区在线观看一区| 豆国产96在线|亚洲| 麻豆91精品91久久久的内涵| 亚洲综合色成人| 一级精品视频在线观看宜春院 | 欧美日韩一区在线观看| av资源站一区| 成人深夜福利app| 成人在线视频一区| 国产精品456露脸| 国产精品1区2区3区| 国产在线精品一区二区夜色| 日韩国产精品91| 日本亚洲最大的色成网站www| 亚洲综合色成人| 亚洲国产精品久久不卡毛片| 综合婷婷亚洲小说| 亚洲综合视频网| 亚洲www啪成人一区二区麻豆| 亚洲123区在线观看| 亚洲国产精品一区二区尤物区| 一区二区三区四区乱视频| 亚洲综合激情另类小说区| 亚洲狠狠爱一区二区三区| 亚洲成人在线免费| 奇米影视在线99精品| 韩国毛片一区二区三区| 国产91精品免费| 91电影在线观看| 亚洲人成网站色在线观看| 99视频有精品| 69久久夜色精品国产69蝌蚪网| 久久天堂av综合合色蜜桃网| 国产精品免费看片| 日日骚欧美日韩| 福利一区福利二区| 一色屋精品亚洲香蕉网站| 性久久久久久久久久久久| 国产精品一二三区| 欧美性感一类影片在线播放| 在线综合+亚洲+欧美中文字幕| 国产日产亚洲精品系列| 日本三级亚洲精品| av一区二区不卡| 日韩一区二区视频| 一区二区三区不卡视频| 国产成人免费在线观看不卡| 欧美视频一区二| 日韩码欧中文字| 成人午夜短视频| 2021久久国产精品不只是精品| 亚洲狠狠爱一区二区三区| 白白色 亚洲乱淫| 欧美mv和日韩mv国产网站| 午夜不卡在线视频| 在线观看日韩电影| 亚洲色图另类专区| 91在线视频免费观看| 中文字幕av一区 二区| 国产曰批免费观看久久久| 91精品国产综合久久蜜臀| 亚洲综合视频在线| 欧洲国内综合视频| 亚洲国产毛片aaaaa无费看| 99国产精品久久久久久久久久久| 亚洲国产精品成人综合色在线婷婷 | 成人自拍视频在线观看| 国产色婷婷亚洲99精品小说| 国产精品自拍三区| 久久亚洲综合色| 高清av一区二区| 中文字幕综合网| 制服丝袜av成人在线看| 蜜桃视频在线一区| 久久久91精品国产一区二区三区| 国产精品一区二区91| 国产精品久久久99| 欧美三级一区二区| 久久99久久精品| 中文字幕一区二区三区四区| 日本道免费精品一区二区三区| 一区二区三区影院| 欧美日韩高清在线| 国产河南妇女毛片精品久久久| 亚洲日本欧美天堂| 欧美一区二区三区爱爱| 成人综合婷婷国产精品久久 | 亚洲色图20p| 日韩精品中文字幕在线一区| 成人久久久精品乱码一区二区三区 | 偷偷要91色婷婷| 中文字幕在线视频一区| 制服丝袜在线91| 99国产精品99久久久久久| 久久国产日韩欧美精品| 亚洲色图在线看|