beautypg.com

Gpio ,watchdog programming, Gpio sample code, Ar-b8601 user manual – Acrosser AR-N8601 User Manual

Page 13

background image

AR-B8601 User Manual

13


3

GPIO ,WATCHDOG PROGRAMMING

GPIO Sample Code

//===========================================================================

// Turbo C++ Version 3.0 Copyright(c) 1990, 1992 by Borland International,Inc.

//===========================================================================

// Describe : GPIO10~GPIO17 Test utility for W83697HF.

// Date : 06/26/2009

// Author : Willy

//===========================================================================

#include

#include

void Show_Help();

void Show_Fail();

void Show_Pass();

//===========================================================================

// Main procedure

//===========================================================================

int main(int argc)

{

unsigned char

IO_PORT_BASE=0x2E; // DATA_PORT = IO_PORT_BASE + 1;

unsigned char data;

int result=0;

if ( argc > 1 )

{ Show_Help(); return 1; }

clrscr();

textcolor(WHITE);

gotoxy(1, 1); cprintf("<>==========================================================================<>");

gotoxy(1, 2); cprintf("|| W83697HF GPIO Test Utility v1.0 Acrosser Technology Co., Ltd. ||");

gotoxy(1, 3); cprintf("<>==========================================================================<>");