Hi, all

I want to write a watchdog program on an Advantech board(X86 based) with
CE.net 4.2 and eVC 4.0. I tried to use _outp() to write a char to a
specific I/O address in a time interval. But the compiler cannot identify
this function. Should I implement the two function with in-line assembly by
myself?

maverick

Re: how to use _outp() and _inp()? by Raphael

Raphael
Tue Dec 14 04:57:22 CST 2004

Maverick wrote:
> I want to write a watchdog program on an Advantech board(X86
based)
> with CE.net 4.2 and eVC 4.0. I tried to use _outp() to write a
> char to a specific I/O address in a time interval. But the
compiler
> cannot identify this function. Should I implement the two
function
> with in-line assembly by myself?

If you want to :)

But its already done for you. Look for the READ_PORT_UCHAR and
WRITE_PORT_UCHAR macros...