6. Appendix
PT-955SxX User’s manual
81
Status LED
The operation of the status LED can be controlled from user applications.
The following is a sample program created in an MS-DOS environment with MSC version 8.03.
This program makes the status LED blink once per second for approximately 10 seconds.
#include <stdio.h>
#include <time.h>
#include <dos.h>
#include <io.h>
#define IDX
0x2e
#define DAT
IDX+1
#define IOWAIT
outp( 0xed, 0x00 )
/* READ WD83627 CR */
int
get_reg( int adr )
{
IOWAIT;
outp( IDX, adr );
IOWAIT;
return inp( DAT );
}
/* WRITE WD83627 CR */
void set_reg( int adr, int dat )
{
IOWAIT;
outp( IDX, adr );
IOWAIT;
outp( DAT, dat );
}
/* WD83627 SET LOGICAL DEV */
void set_ldev( int dev )
{
set_reg( 7, dev );
}
/* OPEN WD83627 CR */
void open_dev( void )
{
IOWAIT;
outp( IDX, 0x87 );
IOWAIT;
outp( IDX, 0x87 );
}
/* CLOSE WD83627 CR */
Содержание PT-955SHX
Страница 1: ...IPC Series PANEL PC 955S Series Fanless Atom N2600 1 60GHz User s Manual CONTEC CO LTD...
Страница 7: ...vi PT 955SxX User s manual...
Страница 29: ...3 Hardware Setup 22 PT 955SxX User s manual...
Страница 39: ...4 Each Component Function 32 PT 955SxX User s manual...
Страница 71: ...5 BIOS Setup 64 PT 955SxX User s manual...
Страница 94: ......