mirror of https://github.com/acidanthera/audk.git
Add SerialPortPoll Api in SerialPortLib to Poll the serial device to see if there is any data waiting.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5624 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bdf37b3c46
commit
a2ddd00bfe
|
@ -70,5 +70,21 @@ SerialPortRead (
|
|||
IN UINTN NumberOfBytes
|
||||
);
|
||||
|
||||
/**
|
||||
Poll the serial device to see if there is any data waiting.
|
||||
|
||||
If there is data waiting to be read from the serial port, then return
|
||||
TRUE. If there is no data waiting to be read from the serial port, then
|
||||
return FALSE.
|
||||
|
||||
@retval TRUE Data is waiting to be read.
|
||||
@retval FALSE There is no data waiting to be read.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
SerialPortPoll (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -73,3 +73,23 @@ SerialPortRead (
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
Poll the serial device to see if there is any data waiting.
|
||||
|
||||
If there is data waiting to be read from the serial port, then return
|
||||
TRUE. If there is no data waiting to be read from the serial port, then
|
||||
return FALSE.
|
||||
|
||||
@retval FALSE There is no data waiting to be read.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
SerialPortPoll (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue