CARM User's Guide

Discontinued

_getkey

Summary
#include <stdio.h>

int _getkey ();
Description

The _getkey function waits for a character to be received from the serial port.

Note

  • This routine is implementation-specific and its function may deviate from that described above. Source code is provide in the LIB folder. You may modify the source to customize this function for your particular hardware environment.
Return Value

The _getkey routine returns the received character.

See Also

getchar, putchar, ungetchar

Example
#include <stdio.h>

void test_getkey (void) {
  int c;

  while ((c = _getkey ()) != 0x1B) {
    printf ("key = %c %bu %bx\n", c, c, c);
  }
}