您好,歡迎來(lái)電子發(fā)燒友網(wǎng)! ,新用戶(hù)?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>uCOS編程>

ucos關(guān)于intel8051的移植

大?。?/span>79 人氣: 2010-02-08 需要積分:0
{$username}的空間

用戶(hù)級(jí)別:注冊(cè)會(huì)員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

ucos關(guān)于intel8051的移植:/*
*************************************************
*????????????????????????????????????????? PC SUPPORT FUNCTIONS
*
*??????????????????????? (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*?????????????????????????????????????????? All Rights Reserved
*
* File : PC.C
* By?? : Jean J. Labross
*********************************************************
*/

#include "ucos_ii.h"
#include "pc.h"
#include
#include
#include


/*
PC display by KC51 emulation
*/

#define interrupt
#define far?xdata
#define MK_FP(s, o)??((INT8U xdata *)(INT16U)(o))
#define getvect(vect)?((vect=vect),((void*)NULL))
#define setvect(vect, isr)?(vect=vect, isr=isr)
int OSTickDOSCtr;

const char code * const code ExitNotice[]=
{
?"Exit program",
?"Program has terminated",
?"Reset the processor to restart the program"
};

bit kbhit() KCREENTRANT;
INT8U getch() KCREENTRANT;

void exit(INT8U ec) KCREENTRANT
{
?static char str[64];
#if OS_CRITICAL_METHOD == 3
??? OS_CPU_SR cpu_sr;
#endif

??? OS_ENTER_CRITICAL();
?for(;;)

非常好我支持^.^

(7) 100%

不好我反對(duì)

(0) 0%

      發(fā)表評(píng)論

      用戶(hù)評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?