
Custom Embedded Systems
WIN Enterprises. Inc. MB-73350 User Manual
31
3.1 GPIO 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
#define GPIO_port 0x378
#define GPIO_read_port GPI 3
void Enter_sio_config();
void Exit_sio_config();
void ENABLE_GPIO();
CN23
2
1
11
12