
Custom Embedded Systems
WIN Enterprises. Inc. MB-73350 User Manual
38
printf("WIN GPIO Program\n");
printf("Usage: GPIO -i (Show GPI Settings)\n");
printf("Usage: GPIO -hx (Set GPO Value to high)\n");
printf(" x = 0 ~ 7\n");
printf("Usage: GPIO -lx (Set GPO Value to low)\n");
printf(" x = 0 ~ 7\n");
}
3.2 Watchdog timer Sample Program for DOS environment
#include <stdio.h>
#include <string.h>
#include <dos.h>
#include <stdlib.h>
#include <inlines/pc.h>
#define index_port 0x2E
//Super IO Index port address
#define data_port 0x2F
//Super IO Data port address
void Enter_sio_config();
void Exit_sio_config();
void help();
int main(int argc, char *argv[])
{
int data_rw8;
if (argc<2){
help();
return;
}