返回信息流程序就是想打印BIOS中的时间:年
原程序如下:
#include <stdio.h>
#include <vxworks.h>
#include <sysLib.h>
#include <time.h>
void biostime()
{
struct tm ahora;
int cYear;
sysOutByte(0x70,0x09);
cYear=sysInByte(0x71);
ahora.tm_year = 100 + (cYear&0x0F) + 10*((cYear&0xF0)>>4);
printf("%d",ahora.tm_year);
}
编译和Build都没有错误,但Download时报如下错误:
Errors while downloading C:/Tornado2.2/target/proj/time/SIMNTgnu/time.out:
_sysOutByte
_sysInByte
有同学知道这是怎么回事吗?谢谢啦!
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #3390同步于 2008/12/29
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖
请教一个tornado download的错误问题
ninadw
2008/12/29镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。