Acrosser AR-B1622 Bedienungsanleitung Seite 25

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 26
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 24
AR-B1622 User’s Guide
25
{
int X_Axis,Y_Axis;
char y_n;
X_Axis=wherex(); /* Get Cursor X Axis */
Y_Axis=wherey(); /* Get Cursor Y Axis */
while(1) {
y_n=getche();
if(y_n=='y' || y_n=='Y')
return('y');
else if(y_n=='n' || y_n=='N')
return('n');
else
gotoxy(X_Axis,Y_Axis);
}
}
/*[]======================================================================[]*/
/*|| Function : Enter_Config() ||*/
/*|| Input : BYTE IO_PORT_BASE ||*/
/*|| Change : - ||*/
/*|| Return : - ||*/
/*|| Description: Enter chip configuration key. ||*/
/*[]======================================================================[]*/
void Enter_Config(BYTE IO_PORT_BASE)
{
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);
}
/*[]======================================================================[]*/
/*|| Function : Exit_Config() ||*/
/*|| Input : BYTE IO_PORT_BASE ||*/
/*|| Change : - ||*/
/*|| Return : - ||*/
/*|| Description: Exit chip configuration key. ||*/
/*[]======================================================================[]*/
void Exit_Config(BYTE IO_PORT_BASE)
{
outportb(IO_PORT_BASE,0xAA);
}
/*[]======================================================================[]*/
/*|| Function : Init_SIO() ||*/
/*|| Input : - ||*/
/*|| Change : - ||*/
/*|| Return : character 'y' or 'n' ||*/
/*|| Description: Confirm get 'Y' or 'N' key. ||*/
/*[]======================================================================[]*/
void Init_SIO(BYTE IO_PORT_BASE)
{
/* Set Multi-function Pins to GPIO */
outportb(IO_PORT_BASE,0x2A);
outportb(IO_PORT_BASE+1,(inportb(IO_PORT_BASE+1) | 0xFC));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
Seitenansicht 24
1 2 ... 20 21 22 23 24 25 26

Kommentare zu diesen Handbüchern

Keine Kommentare