ucos关于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(;;)
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !