Wdt0 windows ce example – AAEON PFM-535S User Manual
Page 41
Advertising
P C / 1 0 4 C P U M o d u l e
P F M - 5 3 5 S
Appendix A Programming the Watchdog Timer A-8
WDT0 Windows CE Example
#include "stdafx.h"
unsigned char inportb(int addr)
{
__asm
{
push edx
mov edx, DWORD PTR addr
in al, dx
and eax, 0xff
pop edx
}
}
void outportb(int addr, unsigned char val)
{
__asm
{
push edx
mov edx, DWORD PTR addr
mov al, BYTE PTR val
out dx, al
pop edx
}
}
void main(void)
Advertising