Intel 386 Uživatelský manuál Strana 330

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 691
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 329
11-43
ASYNCHRONOUS SERIAL I/O UNIT
/*****************************************************************************
Service_RBF:
Description:
Service routine for interrupts generated by RBF signal. This
routine is used for Interrupt-Driven Serial Reads. It echoes
the typed character to the screen, stopping when it receives
an ESC character.
Parameters:
None
Returns:
None
Assumptions:
None
Syntax:
Not called by user
Real/Protected Mode:
No changes required.
*****************************************************************************/
void Service_RBF (void)
{
/* Read in contents of RBR0 */
rec_buffer = _GetEXRegByte(RBR0);
SerialWriteChar(SIO_0, rec_buffer); // Echo to screen
if ( rec_buffer == 0x1b ) {
/* ESC character received, disable RBF interrupts*/
_SetEXRegByte(IER0, 0x00);
}
}/* Service_RBF */
/*****************************************************************************
SerialWriteStr_Int:
Zobrazit stránku 329
1 2 ... 325 326 327 328 329 330 331 332 333 334 335 ... 690 691

Komentáře k této Příručce

Žádné komentáře