RTEMS  5.1
Functions
getchark.c File Reference

Get Character from Stdin. More...

#include <rtems.h>
#include <rtems/bspIo.h>

Functions

int getchark (void)
 Get Character (kernel I/O) More...
 

Detailed Description

Get Character from Stdin.

Function Documentation

◆ getchark()

int getchark ( void  )

Get Character (kernel I/O)

This method polls for a key in the simplest possible fashion from whatever the debug console device is.

Returns
If a character is available, it is returned. Otherwise this method returns -1.
Note
This method uses the BSP_poll_char pointer to a BSP provided method.